diff options
author | liruifengv | 2024-05-08 15:27:01 +0800 |
---|---|---|
committer | GitHub | 2024-05-08 09:27:01 +0200 |
commit | 0e4d04eaade69d6e5e35b1cec3d94063ee0c27ca (patch) | |
tree | 72aadfc04aad9e632994e21e5a7b1ed099223837 | |
parent | 2bbed1b600cfb5b6551813a354df5d763f42f0a2 (diff) | |
download | IT.starlight-0e4d04eaade69d6e5e35b1cec3d94063ee0c27ca.tar.gz IT.starlight-0e4d04eaade69d6e5e35b1cec3d94063ee0c27ca.tar.bz2 IT.starlight-0e4d04eaade69d6e5e35b1cec3d94063ee0c27ca.zip |
i18n(zh-cn): Update docs about synced-tabs (#1834)
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
Co-authored-by: huyikai <25839948+huyikai@users.noreply.github.com>
-rw-r--r-- | docs/src/content/docs/zh-cn/getting-started.mdx | 6 | ||||
-rw-r--r-- | docs/src/content/docs/zh-cn/guides/css-and-tailwind.mdx | 6 | ||||
-rw-r--r-- | docs/src/content/docs/zh-cn/guides/customization.mdx | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/docs/src/content/docs/zh-cn/getting-started.mdx b/docs/src/content/docs/zh-cn/getting-started.mdx index 6d87fc8c..58b7d9fb 100644 --- a/docs/src/content/docs/zh-cn/getting-started.mdx +++ b/docs/src/content/docs/zh-cn/getting-started.mdx @@ -15,7 +15,7 @@ Starlight 是一个基于 [Astro](https://astro.build) 框架构建的全功能 在你的终端中运行以下命令来创建一个新的 Astro + Starlight 项目: -<Tabs> +<Tabs syncKey="pkg"> <TabItem label="npm"> ```sh @@ -52,7 +52,7 @@ yarn create astro --template starlight 在你的项目目录中,运行以下命令来启动开发服务器: -<Tabs> +<Tabs syncKey="pkg"> <TabItem label="npm"> ```sh @@ -104,7 +104,7 @@ Starlight 已经准备好让你添加新内容或导入你现有的文件! Starlight 是一个 Astro 集成。你可以通过在终端中运行以下命令来更新它和其他 Astro 软件包: -<Tabs> +<Tabs syncKey="pkg"> <TabItem label="npm"> ```sh diff --git a/docs/src/content/docs/zh-cn/guides/css-and-tailwind.mdx b/docs/src/content/docs/zh-cn/guides/css-and-tailwind.mdx index 3f0b33a8..becb044d 100644 --- a/docs/src/content/docs/zh-cn/guides/css-and-tailwind.mdx +++ b/docs/src/content/docs/zh-cn/guides/css-and-tailwind.mdx @@ -63,7 +63,7 @@ Starlight Tailwind 插件应用了以下配置: 使用 `create astro` 创建一个预配置了 Tailwind CSS 的新 Starlight 项目: -<Tabs> +<Tabs syncKey="pkg"> <TabItem label="npm"> ```sh @@ -95,7 +95,7 @@ yarn create astro --template starlight/tailwind 1. 将 Astro 的 Tailwind 集成添加到项目中: - <Tabs> + <Tabs syncKey="pkg"> <TabItem label="npm"> @@ -125,7 +125,7 @@ yarn create astro --template starlight/tailwind 2. 安装 Starlight Tailwind 插件: - <Tabs> + <Tabs syncKey="pkg"> <TabItem label="npm"> diff --git a/docs/src/content/docs/zh-cn/guides/customization.mdx b/docs/src/content/docs/zh-cn/guides/customization.mdx index bbca2554..560e816c 100644 --- a/docs/src/content/docs/zh-cn/guides/customization.mdx +++ b/docs/src/content/docs/zh-cn/guides/customization.mdx @@ -128,7 +128,7 @@ Starlight 在每个页面上显示目录,使读者更容易跳转到他们正 默认情况下,目录中包含 `<h2>` 和 `<h3>` 标题。使用全局 `tableOfContents` 中的 `minHeadingLevel` 和 `maxHeadingLevel` 选项更改要包含的标题级别。通过添加相应的 frontmatter 中的 `tableOfContents` 属性,在单个页面上覆盖这些默认值: -<Tabs> +<Tabs syncKey="config-type"> <TabItem label="Frontmatter"> ```md {4-6} @@ -162,8 +162,8 @@ defineConfig({ 通过将 `tableOfContents` 选项设置为 `false` 来完全禁用目录: -<Tabs> - <TabItem label=" frontmatter "> +<Tabs syncKey="config-type"> + <TabItem label="Frontmatter "> ```md {4} --- |