Skip to content

Commit

Permalink
i18n(zh-cn): Update docs about synced-tabs (#1834)
Browse files Browse the repository at this point in the history
Co-authored-by: HiDeoo <[email protected]>
Co-authored-by: huyikai <[email protected]>
  • Loading branch information
3 people authored May 8, 2024
1 parent 2bbed1b commit 0e4d04e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/src/content/docs/zh-cn/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Starlight 是一个基于 [Astro](https://astro.build) 框架构建的全功能

在你的终端中运行以下命令来创建一个新的 Astro + Starlight 项目:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down Expand Up @@ -52,7 +52,7 @@ yarn create astro --template starlight

在你的项目目录中,运行以下命令来启动开发服务器:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down Expand Up @@ -104,7 +104,7 @@ Starlight 已经准备好让你添加新内容或导入你现有的文件!

Starlight 是一个 Astro 集成。你可以通过在终端中运行以下命令来更新它和其他 Astro 软件包:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/zh-cn/guides/css-and-tailwind.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Starlight Tailwind 插件应用了以下配置:

使用 `create astro` 创建一个预配置了 Tailwind CSS 的新 Starlight 项目:

<Tabs>
<Tabs syncKey="pkg">
<TabItem label="npm">

```sh
Expand Down Expand Up @@ -95,7 +95,7 @@ yarn create astro --template starlight/tailwind

1. 将 Astro 的 Tailwind 集成添加到项目中:

<Tabs>
<Tabs syncKey="pkg">

<TabItem label="npm">

Expand Down Expand Up @@ -125,7 +125,7 @@ yarn create astro --template starlight/tailwind

2. 安装 Starlight Tailwind 插件:

<Tabs>
<Tabs syncKey="pkg">

<TabItem label="npm">

Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/zh-cn/guides/customization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Starlight 在每个页面上显示目录,使读者更容易跳转到他们正

默认情况下,目录中包含 `<h2>``<h3>` 标题。使用全局 `tableOfContents` 中的 `minHeadingLevel``maxHeadingLevel` 选项更改要包含的标题级别。通过添加相应的 frontmatter 中的 `tableOfContents` 属性,在单个页面上覆盖这些默认值:

<Tabs>
<Tabs syncKey="config-type">
<TabItem label="Frontmatter">

```md {4-6}
Expand Down Expand Up @@ -162,8 +162,8 @@ defineConfig({

通过将 `tableOfContents` 选项设置为 `false` 来完全禁用目录:

<Tabs>
<TabItem label=" frontmatter ">
<Tabs syncKey="config-type">
<TabItem label="Frontmatter ">

```md {4}
---
Expand Down

0 comments on commit 0e4d04e

Please sign in to comment.