Skip to content

Commit

Permalink
i18n(zh-cn): Update tutorial/1-setup/2.mdx (#7184)
Browse files Browse the repository at this point in the history
* i18n(zh-cn): Update `tutorial/1-setup/2.mdx`

* Format content

---------

Co-authored-by: liruifengv <liruifeng1024@gmail.com>
Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 5, 2024
1 parent db1225b commit e61269d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/content/docs/zh-cn/tutorial/1-setup/2.mdx
Expand Up @@ -47,17 +47,17 @@ import PreCheck from '~/components/tutorial/PreCheck.astro';

2. 确认后安装 `create-astro`

4. 当提示 `Where would you like to create your new project?`(你想要在哪里创建你的新项目?)时输入文件夹的名称来为你的项目创建一个新目录,例如: `./tutorial`
4. 当提示 `Where would you like to create your new project?`(你想要在哪里创建你的新项目?)时输入文件夹的名称来为你的项目创建一个新目录,例如`./tutorial`

:::note
新的 Astro 项目只能在一个完全空的文件夹中创建,因此请为你的文件夹选择一个尚不存在的名称!
:::

4. 你将看到一个简短的入门模板列表可供选择。使用方向键(上和下)导航至模板,然后按回车键(回车)选择对应模板。

5. 当提示询问 `Would you like to install dependencies?`(你想现在安装依赖吗?)时输入 `y`(现在安装)。
5. 当提示询问你是否打算编写 TypeScript 时,输入 `n`(不打算)。

6. 当提示询问你是否打算编写 TypeScript 时,输入 `n`(不打算)。
6. 当提示询问 `Would you like to install dependencies?`(你想现在安装依赖吗?)时输入 `y`(现在安装)。

7. 当提示询问 `Would you like to initialize a new git repository?`(你想要初始化一个新的 Git 仓库吗?)时输入 `y`(要初始化)。

Expand All @@ -69,7 +69,7 @@ import PreCheck from '~/components/tutorial/PreCheck.astro';

2. 如果这是你第一次打开 Astro 项目,你应该会看到一条通知,询问你是否要安装推荐的扩展。点击查看推荐扩展,选择 [Astro 语言支持](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode)。这将为你的 Astro 代码提供语法提示和自动代码补全功能。

3. 打开 VS Code 终端,可以看到类似如下提示:
3. 打开 VS Code 终端,可以看到类似如下提示

```sh
user@machine:~/tutorial$
Expand Down Expand Up @@ -117,7 +117,7 @@ import PreCheck from '~/components/tutorial/PreCheck.astro';

(如果端口 4321 可用,Astro 默认使用 `http://localhost:4321`。)

以下是 Astro “初始项目” 入门网站在浏览器预览中的样子:
以下是 Astro“初始项目”入门网站在浏览器预览中的样子:

![顶部带有 Astro 字样的空白白页。](/tutorial/minimal.png)

Expand Down

0 comments on commit e61269d

Please sign in to comment.