i18n(zh-tw): add configuring-astro.mdx#13446
i18n(zh-tw): add configuring-astro.mdx#13446hank00111 wants to merge 1 commit intowithastro:mainfrom
configuring-astro.mdx#13446Conversation
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
|
||
| 只有在你有東西要設定時才需要它,但大多數專案都會使用。`defineConfig()` 輔助函式在你的 IDE 中提供自動 IntelliSense,也是你加入所有組態選項的地方,用來告訴 Astro 如何建置並將你的專案算繪成 HTML。 | ||
|
|
||
| 我們推薦在大多數情況下使用預設的 `.mjs` 檔案格式,或者如果你想在組態檔中撰寫 TypeScript,則使用 `.ts`。不過也支援 `astro.config.js`。 |
There was a problem hiding this comment.
| 我們推薦在大多數情況下使用預設的 `.mjs` 檔案格式,或者如果你想在組態檔中撰寫 TypeScript,則使用 `.ts`。不過也支援 `astro.config.js`。 | |
| 我們推薦在大多數情況下使用預設的 `.mjs` 檔案格式,或者如果你想在組態檔中撰寫 TypeScript,則使用 `.ts`。不過 `astro.config.js` 也是支援的。 |
|
|
||
| ### 加入部署網域 | ||
|
|
||
| 為了產生 sitemap 和建立 canonical URL,請在 [`site`](/zh-tw/reference/configuration-reference/#site) 選項中設定你的部署網址。如果你要部署到一個路徑(例如 `www.example.com/docs`),也可以為專案根目錄設定 [`base`](/zh-tw/reference/configuration-reference/#base)。 |
There was a problem hiding this comment.
canonical URL 我搜尋的結果好像有一個主要的譯名叫標準網址
|
|
||
| ### 加入網站中繼資料 | ||
|
|
||
| Astro 不會用組態檔來處理常見的 SEO 或 meta 資料,只處理建置專案程式碼並將其算繪成 HTML 所需的資訊。 |
There was a problem hiding this comment.
| Astro 不會用組態檔來處理常見的 SEO 或 meta 資料,只處理建置專案程式碼並將其算繪成 HTML 所需的資訊。 | |
| Astro 不會將組態檔用於常見的 SEO 或 meta 資料,只用於建置專案程式碼並將其算繪成 HTML 所需的資訊。 |
|
|
||
| 每個 Astro 起始模板都在你的專案中包含一個 `tsconfig.json` 檔案。Astro 的[元件腳本](/zh-tw/basics/astro-components/#元件腳本)就是 TypeScript,它提供了 Astro 的編輯器工具支援,並讓你可以選擇性地為自己的專案程式碼加入型別檢查語法。 | ||
|
|
||
| 使用 `tsconfig.json` 檔案來設定會在你的程式碼上執行型別檢查的 TypeScript 範本、設定 TypeScript 插件、設定匯入別名等。 |
There was a problem hiding this comment.
| 使用 `tsconfig.json` 檔案來設定會在你的程式碼上執行型別檢查的 TypeScript 範本、設定 TypeScript 插件、設定匯入別名等。 | |
| 使用 `tsconfig.json` 檔案來設定會在你的程式碼上執行型別檢查的 TypeScript 範本、設定 TypeScript 外掛、設定匯入別名等。 |
Description (required)
Add Traditional Chinese translation for
configuring-astro.mdx.Related issues & labels (optional)