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..560e816c6c1 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,8 +162,8 @@ defineConfig({ 通过将 `tableOfContents` 选项设置为 `false` 来完全禁用目录: - - + + ```md {4} ---