diff --git a/docs/zh/guide/getting-started.md b/docs/zh/guide/getting-started.md
index 6d9303a1..df35b6f9 100644
--- a/docs/zh/guide/getting-started.md
+++ b/docs/zh/guide/getting-started.md
@@ -2,18 +2,18 @@
## 在线尝试 {#try-it-online}
-You can try VitePress directly in your browser on [StackBlitz](https://vitepress.new).
+可以直接在 [StackBlitz](https://vitepress.new) 上进行在线尝试。
## 安装 {#installation}
### 前置知识 {#prerequisites}
-- [Node.js](https://nodejs.org/) version 16 or higher.
-- Terminal for accessing VitePress via its command line interface (CLI).
-- Text Editor with [Markdown](https://en.wikipedia.org/wiki/Markdown) syntax support.
- - [VSCode](https://code.visualstudio.com/) is recommended, along with the [official Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar).
+- [Node.js](https://nodejs.org/) 16 及以上版本。
+- 通过命令行界面 (CLI) 访问 VitePress 的终端。
+- 支持 [Markdown](https://en.wikipedia.org/wiki/Markdown) 语法的编辑器。
+ - 推荐 [VSCode](https://code.visualstudio.com/) 及其[官方 Vue 扩展](https://marketplace.visualstudio.com/items?itemName=Vue.volar)。
-VitePress can be used on its own, or be installed into an existing project. In both cases, you can install it with:
+VitePress 可以单独使用,也可以安装到现有项目中。在这两种情况下,都可以使用以下方式安装它:
::: code-group
@@ -31,8 +31,8 @@ $ yarn add -D vitepress
:::
-::: details Getting missing peer deps warnings?
-If using PNPM, you will notice a missing peer warning for `@docsearch/js`. This does not prevent VitePress from working. If you wish to suppress this warning, add the following to your `package.json`:
+::: details 遇到了 missing peer deps 警告?
+如果使用 PNPM,会注意到对 `@docsearch/js` 的 missing peer deps 警告。这不会影响 VitePress 运行。如果希望禁止显示此警告,请将以下内容添加到 `package.json`:
```json
"pnpm": {
@@ -48,7 +48,7 @@ If using PNPM, you will notice a missing peer warning for `@docsearch/js`. This
### 安装向导 {#setup-wizard}
-VitePress ships with a command line setup wizard that will help you scaffold a basic project. After installation, start the wizard by running:
+VitePress 附带一个命令行设置向导,可以帮助您构建一个基本项目。安装后,通过运行以下命令启动向导:
::: code-group
@@ -62,21 +62,21 @@ $ pnpm exec vitepress init
:::
-You will be greeted with a few simple questions:
+你将需要回答几个简单的问题:
:::
```
-`vp-raw` class can be directly used on elements too. Style isolation is currently opt-in:
+`vp-raw` class 也可以直接用于元素。样式隔离目前是可选的:
::: details
-- Install required deps with your preferred package manager:
+- 使用你喜欢的包管理器来安装需要的依赖项:
```sh
$ npm install -D postcss postcss-prefix-selector
```
-- Create a file named `docs/.postcssrc.cjs` and add this to it:
+- 创建 `docs/.postcssrc.cjs` 并将以下内容
```js
module.exports = {
@@ -237,11 +236,11 @@ Wraps in a
:::
-## Syntax Highlighting in Code Blocks {#syntax-highlighting-in-code-blocks}
+## 代码块中的语法高亮 {#syntax-highlighting-in-code-blocks}
-VitePress uses [Shiki](https://shiki.matsu.io/) to highlight language syntax in Markdown code blocks, using coloured text. Shiki supports a wide variety of programming languages. All you need to do is append a valid language alias to the beginning backticks for the code block:
+VitePress 使用 [Shiki](https://shiki.matsu.io/) 在 Markdown 代码块中使用彩色文本实现语法高亮。Shiki 支持多种编程语言。你需要做的就是将有效的语言别名附加到代码块的开头:
-**Input**
+**输入**
````
```js
@@ -262,7 +261,7 @@ export default {
```
````
-**Output**
+**输出**
```js
export default {
@@ -279,13 +278,13 @@ export default {
```
-A [list of valid languages](https://github.com/shikijs/shiki/blob/main/docs/languages.md) is available on Shiki's repository.
+在 Shiki 的代码仓库中,可以找到[合法的编程语言列表](https://github.com/shikijs/shiki/blob/main/docs/languages.md)。
-You may also customize syntax highlight theme in app config. Please see [`markdown` options](../reference/site-config#markdown) for more details.
+还可以全局配置中自定义语法高亮主题。有关详细信息,参见 [`markdown` 选项](../reference/site-config#markdown)得到更多信息。
-## Line Highlighting in Code Blocks {#line-highlighting-in-code-blocks}
+## 在代码块中实现行高亮 {#line-highlighting-in-code-blocks}
-**Input**
+**输入**
````
```js{4}
@@ -299,7 +298,7 @@ export default {
```
````
-**Output**
+**输出**
```js{4}
export default {
@@ -311,13 +310,13 @@ export default {
}
```
-In addition to a single line, you can also specify multiple single lines, ranges, or both:
+除了单行之外,还可以指定多个单行、多行,或两者均指定:
-- Line ranges: for example `{5-8}`, `{3-10}`, `{10-17}`
-- Multiple single lines: for example `{4,7,9}`
-- Line ranges and single lines: for example `{4,7-13,16,23-27,40}`
+- 多行:例如 `{5-8}`、`{3-10}`、`{10-17}`
+- 多个单行:例如 `{4,7,9}`
+- 多行与单行:例如 `{4,7-13,16,23-27,40}`
-**Input**
+**输入**
````
```js{1,4,6-8}
@@ -335,7 +334,7 @@ export default { // Highlighted
```
````
-**Output**
+**输出**
```js{1,4,6-8}
export default { // Highlighted
@@ -351,9 +350,9 @@ export default { // Highlighted
}
```
-Alternatively, it's possible to highlight directly in the line by using the `// [!code hl]` comment.
+也可以使用 `// [!code hl]` 注释实现行高亮。
-**Input**
+**输入**
````
```js
@@ -367,7 +366,7 @@ export default {
```
````
-**Output**
+**输出**
```js
export default {
@@ -379,15 +378,15 @@ export default {
}
```
-## Focus in Code Blocks {#focus-in-code-blocks}
+## 代码块中聚焦 {#focus-in-code-blocks}
-Adding the `// [!code focus]` comment on a line will focus it and blur the other parts of the code.
+在某一行上添加 `// [!code focus]` 注释将聚焦它并模糊代码的其他部分。
-Additionally, you can define a number of lines to focus using `// [!code focus:]`.
+此外,可以使用 `// [!code focus:]` 定义要聚焦的行数。
-**Input**
+**输入**
-Note that only one space is required after `!code`, here are two to prevent processing.
+`!code` 后面只需要一个空格,为了展示原始的代码而不被实际渲染,这里有两个空格:
````
```js
@@ -401,7 +400,7 @@ export default {
```
````
-**Output**
+**输出**
```js
export default {
@@ -413,11 +412,11 @@ export default {
}
```
-## Colored Diffs in Code Blocks {#colored-diffs-in-code-blocks}
+## 代码块中的颜色差异 {#colored-diffs-in-code-blocks}
Adding the `// [!code --]` or `// [!code ++]` comments on a line will create a diff of that line, while keeping the colors of the codeblock.
-**Input**
+**输入**
Note that only one space is required after `!code`, here are two to prevent processing.
@@ -434,7 +433,7 @@ export default {
```
````
-**Output**
+**输出**
```js
export default {
@@ -451,7 +450,7 @@ export default {
Adding the `// [!code warning]` or `// [!code error]` comments on a line will color it accordingly.
-**Input**
+**输入**
Note that only one space is required after `!code`, here are two to prevent processing.
@@ -468,7 +467,7 @@ export default {
```
````
-**Output**
+**输出**
```js
export default {
@@ -497,7 +496,7 @@ Please see [`markdown` options](../reference/site-config#markdown) for more deta
You can add `:line-numbers` / `:no-line-numbers` mark in your fenced code blocks to override the value set in config.
-**Input**
+**输入**
````md
```ts {1}
@@ -513,7 +512,7 @@ const line3 = 'This is line 3'
```
````
-**Output**
+**输出**
```ts {1}
// line-numbers is disabled by default
@@ -541,7 +540,7 @@ It also supports [line highlighting](#line-highlighting-in-code-blocks):
<<< @/filepath{highlightLines}
```
-**Input**
+**输入**
```md
<<< @/snippets/snippet.js{2}
@@ -551,7 +550,7 @@ It also supports [line highlighting](#line-highlighting-in-code-blocks):
<<< @/snippets/snippet.js
-**Output**
+**输出**
<<< @/snippets/snippet.js{2}
@@ -561,7 +560,7 @@ The value of `@` corresponds to the source root. By default it's the VitePress p
You can also use a [VS Code region](https://code.visualstudio.com/docs/editor/codebasics#_folding) to only include the corresponding part of the code file. You can provide a custom region name after a `#` following the filepath:
-**Input**
+**输入**
```md
<<< @/snippets/snippet-with-region.js#snippet{1}
@@ -571,7 +570,7 @@ You can also use a [VS Code region](https://code.visualstudio.com/docs/editor/co
<<< @/snippets/snippet-with-region.js
-**Output**
+**输出**
<<< @/snippets/snippet-with-region.js#snippet{1}
@@ -595,7 +594,7 @@ This is helpful if source language cannot be inferred from your file extension.
You can group multiple code blocks like this:
-**Input**
+**输入**
````md
::: code-group
@@ -624,7 +623,7 @@ export default config
:::
````
-**Output**
+**输出**
::: code-group
@@ -653,7 +652,7 @@ export default config
You can also [import snippets](#import-code-snippets) in code groups:
-**Input**
+**输入**
```md
::: code-group
@@ -669,7 +668,7 @@ You can also [import snippets](#import-code-snippets) in code groups:
:::
```
-**Output**
+**输出**
::: code-group
@@ -683,7 +682,7 @@ You can also [import snippets](#import-code-snippets) in code groups:
You can include a markdown file in another markdown file like this:
-**Input**
+**输入**
```md
# Docs {#docs}
diff --git a/docs/zh/guide/routing.md b/docs/zh/guide/routing.md
index f275fb7e..b742d17e 100644
--- a/docs/zh/guide/routing.md
+++ b/docs/zh/guide/routing.md
@@ -247,7 +247,7 @@ export default {
}
```
-**Output**
+**输出**
```
.
diff --git a/docs/zh/guide/using-vue.md b/docs/zh/guide/using-vue.md
index 08ad01e3..43d0fbe5 100644
--- a/docs/zh/guide/using-vue.md
+++ b/docs/zh/guide/using-vue.md
@@ -1,46 +1,46 @@
# 在 Markdown 使用 Vue {#using-vue-in-markdown}
-In VitePress, each Markdown file is compiled into HTML and then processed as a [Vue Single-File Component](https://vuejs.org/guide/scaling-up/sfc.html). This means you can use any Vue features inside the Markdown, including dynamic templating, using Vue components, or arbitrary in-page Vue component logic by adding a `