diff options
author | liruifengv | 2025-01-08 17:01:20 +0800 |
---|---|---|
committer | GitHub | 2025-01-08 10:01:20 +0100 |
commit | caa0d117e1defcdba861e4a486d209a63c3ff9e1 (patch) | |
tree | 6b67a69de9aaf7ec63a37840b0f657fe8c8e5ca2 | |
parent | 21b3604c899b49317836c210caf95630b88ba340 (diff) | |
download | IT.starlight-caa0d117e1defcdba861e4a486d209a63c3ff9e1.tar.gz IT.starlight-caa0d117e1defcdba861e4a486d209a63c3ff9e1.tar.bz2 IT.starlight-caa0d117e1defcdba861e4a486d209a63c3ff9e1.zip |
i18n(zh-cn): Update project-structure.mdx (#2772)
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
-rw-r--r-- | docs/src/content/docs/zh-cn/guides/project-structure.mdx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/src/content/docs/zh-cn/guides/project-structure.mdx b/docs/src/content/docs/zh-cn/guides/project-structure.mdx index c152e154..8e1ce3cb 100644 --- a/docs/src/content/docs/zh-cn/guides/project-structure.mdx +++ b/docs/src/content/docs/zh-cn/guides/project-structure.mdx @@ -5,12 +5,12 @@ description: 了解如何组织 Starlight 项目中的文件。 本指南将向你展示 Starlight 项目的组织方式以及项目中的不同文件的作用。 -Starlight 项目通常遵循与其他 Astro 项目相同的文件和目录结构。有关更多详细信息,请参阅 [Astro 的项目结构文档](https://docs.astro.build/zh-cn/core-concepts/project-structure/)。 +Starlight 项目通常遵循与其他 Astro 项目相同的文件和目录结构。有关更多详细信息,请参阅 [Astro 的项目结构文档](https://docs.astro.build/zh-cn/basics/project-structure/)。 ## 文件和目录 - `astro.config.mjs` — Astro 配置文件;包括 Starlight 集成和配置。 -- `src/content/config.ts` — 内容集合配置文件;将 Starlight 的 frontmatter 模式添加到你的项目中。 +- `src/content.config.ts` — 内容集合配置文件;将 Starlight 的 frontmatter 模式添加到你的项目中。 - `src/content/docs/` — 内容文件。Starlight 将此目录中的每个 `.md`、`.mdx` 或 `.mdoc` 文件转换为站点上的一个页面。 - `src/content/i18n/` (可选) — 支持[国际化](/zh-cn/guides/i18n/)的翻译数据。 - `src/` — 项目的其他源代码和文档(组件、样式、图像等)。 @@ -39,8 +39,7 @@ import { FileTree } from '@astrojs/starlight/components'; - 01-getting-started.md - 02-advanced.md - index.mdx - - config.ts - - env.d.ts + - content.config.ts - astro.config.mjs - package.json - tsconfig.json |