-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
i18n(zh-tw): update install-and-setup.mdx
#12354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ 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
|
Hello! Thank you for opening your first PR to Astro’s Docs! 🎉 Here’s what will happen next:
|
首先謝謝你的翻譯 我還沒有仔細看,不過有些是可以先改的: 連結要是中文版的,就算還沒有翻譯。也就是說以 anchor 也要是中文版的。它是由標題轉換成的,把標題的空格換成 |
Co-authored-by: vrabe <[email protected]>
Co-authored-by: vrabe <[email protected]>
好的,謝謝你的 review 我已經針對上面的要求進行更改了! |
這個 Error 要改嗎?
目前 install-and-setup 已經翻譯了,所以出現這個錯誤。 |
@yorukot 要的,也請把它改一下。 |
@vrabe 已更改 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
大概是這樣,你再看看。
i18nReady: true | ||
banner: | ||
content: | | ||
Astro v5 已經到來! <a href="/zh-tw/guides/upgrade-to/v5/">了解如何升級您的網站</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Astro v5 已經到來! <a href="/zh-tw/guides/upgrade-to/v5/">了解如何升級您的網站</a> | |
Astro v5 已經到來!<a href="/zh-tw/guides/upgrade-to/v5/">了解如何升級你的網站</a> |
用你不用您
|
||
[`create astro` CLI 指令](#從-cli-精靈安裝)是從零開始一個新 Astro 專案最快的方法。它會引導你完成設定新 Astro 專案的每個步驟,並讓你從幾個不同的官方起始模板中選擇。 | ||
|
||
你也可以使用 `template` 選項來執行 CLI 指令,以達到使用任何現有的主題或起始模板來開始你的專案。探索我們的[主題和起始模板展示](https://astro.build/themes/),你可以在那裡瀏覽部落格、作品集、文件網站、登陸頁面等主題! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
第一句很怪。
應該是
你也可以使用 `template` 選項來執行 CLI 指令,以達到使用任何現有的主題或起始模板來開始你的專案。探索我們的[主題和起始模板展示](https://astro.build/themes/),你可以在那裡瀏覽部落格、作品集、文件網站、登陸頁面等主題! | |
你也可以加上 `template` 選項來執行 CLI 指令,以使用任何現有的主題或起始模板來開始你的專案。探索我們的[主題和起始模板展示](https://astro.build/themes/),你可以在那裡瀏覽部落格、作品集、文件網站、登陸頁面等主題! |
之類的。
|
||
2. 現在你的專案已經建立,你可以 `cd` 進入新的專案目錄來開始使用 Astro。 | ||
|
||
3. 如果你在 CLI 精靈過程中跳過了 「Install dependencies?」 的步驟,請務必在繼續之前安裝相依套件。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. 如果你在 CLI 精靈過程中跳過了 「Install dependencies?」 的步驟,請務必在繼續之前安裝相依套件。 | |
3. 如果你在 CLI 精靈過程中跳過了「Install dependencies?」的步驟,請務必在繼續之前安裝相依套件。 |
|
||
## CLI 安裝選項 | ||
|
||
你可以使用透過額外選項執行 `create astro` 指令,自訂設定過程(例如對所有問題回答「是」、跳過 Houston 動畫)或你的新專案(例如是否安裝 git、新增整合)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用透過額外選項
也是很怪。類似這樣會好一點:
你可以使用透過額外選項執行 `create astro` 指令,自訂設定過程(例如對所有問題回答「是」、跳過 Houston 動畫)或你的新專案(例如是否安裝 git、新增整合)。 | |
你可以在執行 `create astro` 指令時加上額外選項以自訂設定過程(例如對所有問題回答「是」、跳過 Houston 動畫)或你的新專案(例如是否安裝 git、新增整合)。 |
|
||
### 新增整合 | ||
|
||
你可以在啟動新 Astro 專案的同時,透過在 `create astro` 指令中傳遞 `--add` 參數來安裝任何[官方整合](/zh-tw/guides/integrations-guide/)或支援 `astro add` 指令的社群整合。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你可以在啟動新 Astro 專案的同時,透過在 `create astro` 指令中傳遞 `--add` 參數來安裝任何[官方整合](/zh-tw/guides/integrations-guide/)或支援 `astro add` 指令的社群整合。 | |
你可以在啟動新 Astro 專案的同時,在 `create astro` 指令中傳遞 `--add` 參數來安裝任何[官方整合](/zh-tw/guides/integrations-guide/)或支援 `astro add` 指令的社群整合。 |
或許不需要透過。
|
||
你也會想要建立 `public/` 目錄來存放靜態資源。Astro 總是會在最終建構中包含這些資源,所以你可以安全地從元件模板內部參照它們。 | ||
|
||
在文字編輯器中,於目錄的 `public/robots.txt` 建立新檔案。`robots.txt` 是一個簡單的檔案,大多數網站都會包含它來告訴搜尋機器人(如 Google)如何處理你的網站。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在文字編輯器中,於目錄的 `public/robots.txt` 建立新檔案。`robots.txt` 是一個簡單的檔案,大多數網站都會包含它來告訴搜尋機器人(如 Google)如何處理你的網站。 | |
在文字編輯器中,於 `public/robots.txt` 建立新檔案。`robots.txt` 是一個簡單的檔案,大多數網站都會包含它來告訴搜尋機器人(如 Google)如何處理你的網站。 |
刪掉也不會改變意思。
|
||
- **Node.js** - `v18.20.8` 或 `v20.3.0`、`v22.0.0` 或更高版本。(不支援 `v19` 和 `v21`。) | ||
- **文字編輯器** - 我們推薦使用 [VS Code](https://code.visualstudio.com/) 搭配我們的[官方 Astro 擴充功能](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode)。 | ||
- **終端機** - Astro 是透過命令列介面 (CLI) 來使用的。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **終端機** - Astro 是透過命令列介面 (CLI) 來使用的。 | |
- **終端機** - Astro 是透過命令列介面(CLI)來使用的。 |
你可以在電腦的任何地方執行 `create astro`,所以在開始之前不需要為你的專案建立新的空目錄。如果你還沒有為新專案準備空目錄,CLI 精靈會自動幫你建立一個。 | ||
|
||
<Steps> | ||
1. 在你的終端機中執行以下指令來啟動安裝精靈: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. 在你的終端機中執行以下指令來啟動安裝精靈: | |
1. 在終端機中執行以下指令來啟動安裝精靈: |
這個你的可以去掉。
|
||
在文字編輯器中,於目錄的 `public/robots.txt` 建立新檔案。`robots.txt` 是一個簡單的檔案,大多數網站都會包含它來告訴搜尋機器人(如 Google)如何處理你的網站。 | ||
|
||
在本指南中,複製並貼上以下程式碼片段到新檔案中: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在本指南中,複製並貼上以下程式碼片段到新檔案中: | |
在本指南,複製並貼上以下程式碼片段到新檔案中: |
這樣感覺比較好。
|
||
如果你確實打算撰寫 TypeScript 程式碼,建議使用 Astro 的 `strict` 或 `strictest` 模板。你可以在 [astro/tsconfigs/](https://github.com/withastro/astro/blob/main/packages/astro/tsconfigs/) 查看和比較三種模板配置。 | ||
|
||
在專案根目錄建立 `tsconfig.json`,並將下面的程式碼複製到其中。(你可以為 TypeScript 模板使用 `base`、`strict` 或 `strictest`): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
括弧裡面這樣直接翻有點怪,還是這樣?
在專案根目錄建立 `tsconfig.json`,並將下面的程式碼複製到其中。(你可以為 TypeScript 模板使用 `base`、`strict` 或 `strictest`): | |
在專案根目錄建立 `tsconfig.json`,並將下面的程式碼複製到其中。(你可以使用 `base`、`strict` 或 `strictest` 做為 TypeScript 模板): |
還有你把標題的 |
Description (required)
Update
zh-tw
translation forinstall-and-setup.mdx
Discord username:
yoru.kot