From dd5bc9d6b81409cb8195ed48100aeea41bb19ffc Mon Sep 17 00:00:00 2001 From: liruifengv Date: Tue, 7 May 2024 16:05:53 +0800 Subject: [PATCH 1/2] i18n(zh-cn): Update docs about synced-tabs --- docs/src/content/docs/zh-cn/getting-started.mdx | 6 +++--- docs/src/content/docs/zh-cn/guides/css-and-tailwind.mdx | 6 +++--- docs/src/content/docs/zh-cn/guides/customization.mdx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/src/content/docs/zh-cn/getting-started.mdx b/docs/src/content/docs/zh-cn/getting-started.mdx index 6d87fc8c4c0..58b7d9fbc83 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 项目: - + ```sh @@ -52,7 +52,7 @@ yarn create astro --template starlight 在你的项目目录中,运行以下命令来启动开发服务器: - + ```sh @@ -104,7 +104,7 @@ Starlight 已经准备好让你添加新内容或导入你现有的文件! Starlight 是一个 Astro 集成。你可以通过在终端中运行以下命令来更新它和其他 Astro 软件包: - + ```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 3f0b33a82ff..becb044d6d6 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 项目: - + ```sh @@ -95,7 +95,7 @@ yarn create astro --template starlight/tailwind 1. 将 Astro 的 Tailwind 集成添加到项目中: - + @@ -125,7 +125,7 @@ yarn create astro --template starlight/tailwind 2. 安装 Starlight Tailwind 插件: - + diff --git a/docs/src/content/docs/zh-cn/guides/customization.mdx b/docs/src/content/docs/zh-cn/guides/customization.mdx index bbca2554389..e647db1bc97 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 在每个页面上显示目录,使读者更容易跳转到他们正 默认情况下,目录中包含 `

` 和 `

` 标题。使用全局 `tableOfContents` 中的 `minHeadingLevel` 和 `maxHeadingLevel` 选项更改要包含的标题级别。通过添加相应的 frontmatter 中的 `tableOfContents` 属性,在单个页面上覆盖这些默认值: - + ```md {4-6} @@ -162,7 +162,7 @@ defineConfig({ 通过将 `tableOfContents` 选项设置为 `false` 来完全禁用目录: - + ```md {4} From 65fb5595c63d06a1538d49cca9a0a36dcc823509 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Wed, 8 May 2024 15:08:30 +0800 Subject: [PATCH 2/2] Update docs/src/content/docs/zh-cn/guides/customization.mdx Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com> --- docs/src/content/docs/zh-cn/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/zh-cn/guides/customization.mdx b/docs/src/content/docs/zh-cn/guides/customization.mdx index e647db1bc97..560e816c6c1 100644 --- a/docs/src/content/docs/zh-cn/guides/customization.mdx +++ b/docs/src/content/docs/zh-cn/guides/customization.mdx @@ -163,7 +163,7 @@ defineConfig({ 通过将 `tableOfContents` 选项设置为 `false` 来完全禁用目录: - + ```md {4} ---