Skip to content
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

i18n(zh-cn): Update docs about synced-tabs #1834

Merged
merged 3 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading