From 62fdc6e3b1313cecae343f6b097fa3773a975eef Mon Sep 17 00:00:00 2001 From: liruifengv Date: Mon, 17 Jun 2024 15:55:51 +0800 Subject: [PATCH 1/7] i18n(zh-cn): update `guides/content.mdx` --- src/content/docs/zh-cn/guides/content.mdx | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/content/docs/zh-cn/guides/content.mdx b/src/content/docs/zh-cn/guides/content.mdx index a95dd8675dd0c..6f729c27bf6ec 100644 --- a/src/content/docs/zh-cn/guides/content.mdx +++ b/src/content/docs/zh-cn/guides/content.mdx @@ -4,6 +4,8 @@ description: >- Astro 是以内容为中心的网站的完美选择:博客、营销网站、作品集等!直接在项目中创作内容,或选择连接你的 CMS. i18nReady: true --- +import ReadMore from '~/components/ReadMore.astro'; + Astro 是以内容为中心的网站的完美选择:博客、营销网站、作品集等! Astro 帮助你创作和展示你的内容。你可以直接在 Astro 中使用 Markdown/MDX 写作博客,也可以从你的无头CMS中获取内容。 Astro 让你围绕你的内容建立一个网站:你可以在你的页面上添加一个布局,创建一个帖子的索引,并建立一个RSS源,让读者可以订阅。 @@ -17,22 +19,26 @@ Astro 帮助你创作和展示你的内容。你可以直接在 Astro 中使用 - 其他选项(内容复杂的页面中不常用)包括 [`.astro` 文件](/zh-cn/basics/astro-pages/#基于文件的路由) 和 [`.html` 文件](/zh-cn/basics/astro-pages/#html-页面)。 ### Markdown 创作 + Markdown 是一种便捷的语法,用于编写具有基本格式和通用元素的富文本,如标题列表和图像。 Astro 在你的项目中内置了对 Markdown 文件的支持。 在代码编辑器中创建并编写 `.md` 文件,或者使用一个你最喜欢的 Markdown 编辑器中编写现有文件。一些在线的 Markdown 编辑器,如 [StackEdit](https://stackedit.io/) 和 [Dillinger](https://dillinger.io)。 在 GitHub 上,甚至允许你在 Astro 存储库中编写和同步你的工作。 -📚 了解更多关于[在 Astro 中编写 Markdown 内容](/zh-cn/guides/markdown-content/)的信息。 +了解更多关于 [在 Astro 中编写 Markdown 内容](/zh-cn/guides/markdown-content/) 的信息。 ### MDX 创作 -如果你在项目中集成了 MDX,你还可以使用 `.mdx` 文件编写内容,这样你就可以在 Markdown 中编写 JavaScript 表达式和自定义组件。这包括静态 [Astro 组件](/zh-cn/basics/astro-components/) 和交互式[框架组件](/zh-cn/guides/framework-components/)。在你的文本中添加UI元素,如横幅或交互式轮播图,将你的内容变成完整的网页。 + +如果你在项目中使用了 [Astro MDX 集成](/zh-cn/guides/integrations-guide/mdx/),你还可以使用 `.mdx` 文件编写内容,这样你就可以在 Markdown 中编写 JavaScript 表达式和自定义组件。这包括静态 [Astro 组件](/zh-cn/basics/astro-components/) 和交互式[框架组件](/zh-cn/guides/framework-components/)。在你的文本中添加UI元素,如横幅或交互式轮播图,将你的内容变成完整的网页。 与你的项目文件一起,直接在你的代码编辑器中编写和编辑 `.mdx` 文件。 -📚 了解更多关于[在 Astro 中使用 MDX](/zh-cn/guides/integrations-guide/mdx/)的信息。 +了解更多关于 [在 Astro 中使用 MDX](/zh-cn/guides/integrations-guide/mdx/) 的信息。 ### 无头 CMS 创作 -在现有的内容管理系统(CMS)中撰写博客文章,例如 Storyblok,WordPress 或 Contentful。 一些 CMS,像 Storyblok,提供官方的 [Astro 集成](https://www.storyblok.com/mp/announcing-storyblok-astro)。其他的 Astro 页面则可以使用公开的 JavaScript SDK 来[获取你的远程内容](/zh-cn/guides/cms/)。 +在现有的内容管理系统(CMS)中撰写博客文章,例如 Storyblok,WordPress 或 Contentful。一些 CMS,像 Storyblok,提供官方的 [Astro 集成](https://www.storyblok.com/mp/announcing-storyblok-astro)。其他的 Astro 页面则可以使用公开的 JavaScript SDK 来[获取你的远程内容](/zh-cn/guides/cms/)。 + +探索我们的 [CMS 指南](/zh-cn/guides/cms/) 集合和 [Astro CMS 集成](https://astro.build/integrations/?search=cms),以获取广泛的资源选择。 ## 管理页面内容 @@ -40,12 +46,16 @@ Markdown 是一种便捷的语法,用于编写具有基本格式和通用元 你还可以选择将 Markdown 和 MDX 文件保存在 `src/pages` 目录之外,而将[其内容导入](/zh-cn/guides/markdown-content/#导入-markdown)到 `.astro` 页面。 +Astro 自带的 [内容集合](/zh-cn/guides/content-collections/) 提供了一种强大的、类型安全的方式来处理你的 Markdown、MDX 或 Markdoc 内容。 + 如果你在 CMS 中编写内容,你可以获取你的文章,并使用[动态路由](/zh-cn/guides/routing/#动态路由)使用一个 `.astro` 文件为每个帖子生成路由。在 Astro 的默认静态模式下,这些路由是在构建时生成的。如果选择加入 [SSR 模式](/zh-cn/guides/server-side-rendering/),则会在运行时响应请求并按需获取内容。 ## 展示你的内容 -为了构建常用功能来组织和显示你的内容,例如博客存档或博客的每个标签页面,Astro 允许你[获取文件名和元数据](/zh-cn/reference/api-reference/#astroglob),并使用它们生成页面内容和路由。 +为了构建常用功能来组织和显示你的内容,例如博客存档或博客的每个标签页面,Astro 允许你 [获取文件名和元数据](/zh-cn/reference/api-reference/#astroglob),或者使用 [内容集合辅助工具](/zh-cn/guides/content-collections/#查询集合) 查询你的条目并且生成页面内容和路由。 + +若要发布给更广泛的受众,请 [创建可分发给源读者的 RSS 源](/zh-cn/guides/rss/)。 ## 社区集成 -除了官方 [`@astrojs/mdx`](/zh-cn/guides/integrations-guide/mdx/) 集成,有几个第三方[社区集成](https://astro.build/integrations/css+ui/?q=content)可用于处理 Astro 项目中的内容。 \ No newline at end of file +除了官方 [`@astrojs/mdx`](/zh-cn/guides/integrations-guide/mdx/) 和 [`@astrojs/markdoc`](/zh-cn/guides/integrations-guide/markdoc/) 集成,有几个第三方 [社区集成](https://astro.build/integrations/?search=content) 可用于处理 Astro 项目中的内容。 From 905fb0e877ecee744e60d3e2df036fb5052f2af7 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Mon, 17 Jun 2024 17:40:43 +0800 Subject: [PATCH 2/7] i18n(zh-cn): update `guides/content.mdx` --- src/content/docs/zh-cn/guides/content.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/content.mdx b/src/content/docs/zh-cn/guides/content.mdx index 6f729c27bf6ec..1abc54fca83c1 100644 --- a/src/content/docs/zh-cn/guides/content.mdx +++ b/src/content/docs/zh-cn/guides/content.mdx @@ -13,7 +13,7 @@ Astro 帮助你创作和展示你的内容。你可以直接在 Astro 中使用 ## 编写内容 在 Astro 中,你可以通过多种方式创作内容: -- 在 Markdown 文件中 (`.md` or [其他扩展名](/zh-cn/guides/markdown-content/)),旨在使编写富文本内容变得容易。 +- 在 Markdown 文件中 (`.md` 或 [其他扩展名](/zh-cn/guides/markdown-content/)),旨在使编写富文本内容变得容易。 - 在 MDX (`.mdx`) 文件中,允许你在文档中包含组件和动态表达式。 - 使用第三方内容管理系统 (CMS),然后将该内容拉取到 `.astro` 页面中。 - 其他选项(内容复杂的页面中不常用)包括 [`.astro` 文件](/zh-cn/basics/astro-pages/#基于文件的路由) 和 [`.html` 文件](/zh-cn/basics/astro-pages/#html-页面)。 From 75706485ad8f1d5f320deed5633a9b2056ce512c Mon Sep 17 00:00:00 2001 From: liruifengv Date: Tue, 18 Jun 2024 11:00:46 +0800 Subject: [PATCH 3/7] i18n(zh-cn): update `guides/content.mdx` --- src/content/docs/zh-cn/guides/content.mdx | 36 ++++++++++++++--------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/src/content/docs/zh-cn/guides/content.mdx b/src/content/docs/zh-cn/guides/content.mdx index 1abc54fca83c1..951c6c9dac8d4 100644 --- a/src/content/docs/zh-cn/guides/content.mdx +++ b/src/content/docs/zh-cn/guides/content.mdx @@ -8,47 +8,55 @@ import ReadMore from '~/components/ReadMore.astro'; Astro 是以内容为中心的网站的完美选择:博客、营销网站、作品集等! -Astro 帮助你创作和展示你的内容。你可以直接在 Astro 中使用 Markdown/MDX 写作博客,也可以从你的无头CMS中获取内容。 Astro 让你围绕你的内容建立一个网站:你可以在你的页面上添加一个布局,创建一个帖子的索引,并建立一个RSS源,让读者可以订阅。 +Astro 帮助你创作和展示你的内容。你可以直接在 Astro 中使用 Markdown/MDX 写作博客,也可以从你的无头 CMS 中获取内容。 Astro 让你围绕你的内容建立一个网站:你可以在你的页面上添加一个布局,创建一个文章的列表,并建立一个 RSS 订阅源,让读者可以订阅。 ## 编写内容 在 Astro 中,你可以通过多种方式创作内容: -- 在 Markdown 文件中 (`.md` 或 [其他扩展名](/zh-cn/guides/markdown-content/)),旨在使编写富文本内容变得容易。 -- 在 MDX (`.mdx`) 文件中,允许你在文档中包含组件和动态表达式。 -- 使用第三方内容管理系统 (CMS),然后将该内容拉取到 `.astro` 页面中。 -- 其他选项(内容复杂的页面中不常用)包括 [`.astro` 文件](/zh-cn/basics/astro-pages/#基于文件的路由) 和 [`.html` 文件](/zh-cn/basics/astro-pages/#html-页面)。 +- 在 Markdown 文件中 (`.md` 或 [其他扩展名](/zh-cn/guides/markdown-content/)) 创作,使编写富文本内容变得更加容易。 +- 在使用 [官方集成](/zh-cn/guides/integrations-guide/) 的 MDX (`.mdx`) 和 Markdoc (`.mdoc`) 文件中创作,这允许你在文档中包含组件和动态表达式。 +- 使用 [第三方内容管理系统 (CMS)](#无头-cms-创作),然后将该内容拉取到 `.astro` 页面中。 +- 其他选项(不常用于内容复杂的页面)包括 [`.astro` 文件](/zh-cn/basics/astro-pages/#基于文件的路由) 和 [`.html` 文件](/zh-cn/basics/astro-pages/#html-页面)。 ### Markdown 创作 Markdown 是一种便捷的语法,用于编写具有基本格式和通用元素的富文本,如标题列表和图像。 Astro 在你的项目中内置了对 Markdown 文件的支持。 -在代码编辑器中创建并编写 `.md` 文件,或者使用一个你最喜欢的 Markdown 编辑器中编写现有文件。一些在线的 Markdown 编辑器,如 [StackEdit](https://stackedit.io/) 和 [Dillinger](https://dillinger.io)。 在 GitHub 上,甚至允许你在 Astro 存储库中编写和同步你的工作。 +在代码编辑器中创建并编写 `.md` 文件,或者使用一个你最喜欢的 Markdown 编辑器中编写现有文件。一些在线的 Markdown 编辑器,如 [StackEdit](https://stackedit.io/) 和 [Dillinger](https://dillinger.io) ,甚至允许你与存储在 GitHub 上的 Astro 仓库编写和同步你的工作。 了解更多关于 [在 Astro 中编写 Markdown 内容](/zh-cn/guides/markdown-content/) 的信息。 ### MDX 创作 -如果你在项目中使用了 [Astro MDX 集成](/zh-cn/guides/integrations-guide/mdx/),你还可以使用 `.mdx` 文件编写内容,这样你就可以在 Markdown 中编写 JavaScript 表达式和自定义组件。这包括静态 [Astro 组件](/zh-cn/basics/astro-components/) 和交互式[框架组件](/zh-cn/guides/framework-components/)。在你的文本中添加UI元素,如横幅或交互式轮播图,将你的内容变成完整的网页。 +如果你在项目中使用了 [Astro MDX 集成](/zh-cn/guides/integrations-guide/mdx/),你还可以使用 `.mdx` 文件编写内容,它可以在 Markdown 中编写 JavaScript 表达式和组件。这包括静态 [Astro 组件](/zh-cn/basics/astro-components/) 和交互式 [框架组件](/zh-cn/guides/framework-components/)。这允许你在文本中添加UI元素,如横幅或交互式轮播图。 -与你的项目文件一起,直接在你的代码编辑器中编写和编辑 `.mdx` 文件。 +直接在你的代码编辑器中编写和编辑 `.mdx` 文件 和你的项目文件。MDX 文件是 Astro 中 [支持的页面文件类型](/zh-cn/basics/astro-pages/#支持的页面文件),也可以用作 [内容集合条目](#内容集合)。 了解更多关于 [在 Astro 中使用 MDX](/zh-cn/guides/integrations-guide/mdx/) 的信息。 ### 无头 CMS 创作 -在现有的内容管理系统(CMS)中撰写博客文章,例如 Storyblok,WordPress 或 Contentful。一些 CMS,像 Storyblok,提供官方的 [Astro 集成](https://www.storyblok.com/mp/announcing-storyblok-astro)。其他的 Astro 页面则可以使用公开的 JavaScript SDK 来[获取你的远程内容](/zh-cn/guides/cms/)。 +在现有的内容管理系统(CMS)中编写博客文章,例如 Storyblok,WordPress 或 Contentful。一些 CMS,像 Storyblok,提供了官方的 [Astro 集成](https://www.storyblok.com/mp/announcing-storyblok-astro)。其他的可以使用公开的 JavaScript SDK 来让 Astro 页面 [获取你的远程内容](/zh-cn/guides/cms/)。 探索我们的 [CMS 指南](/zh-cn/guides/cms/) 集合和 [Astro CMS 集成](https://astro.build/integrations/?search=cms),以获取广泛的资源选择。 ## 管理页面内容 -位于 `src/pages` 目录的 Markdown 和 MDX 文件使用Astro的[基于文件路由](/zh-cn/guides/routing/)自动的生成页面,建立一个与文件路径相对应的URL。 +### 页面文件 -你还可以选择将 Markdown 和 MDX 文件保存在 `src/pages` 目录之外,而将[其内容导入](/zh-cn/guides/markdown-content/#导入-markdown)到 `.astro` 页面。 +位于 `src/pages` 目录的 Markdown 和 MDX 文件将使用 Astro 的[基于文件路由](/zh-cn/guides/routing/)自动生成页面,构建一个与文件路径相对应的 URL。 -Astro 自带的 [内容集合](/zh-cn/guides/content-collections/) 提供了一种强大的、类型安全的方式来处理你的 Markdown、MDX 或 Markdoc 内容。 +### 本地内容 -如果你在 CMS 中编写内容,你可以获取你的文章,并使用[动态路由](/zh-cn/guides/routing/#动态路由)使用一个 `.astro` 文件为每个帖子生成路由。在 Astro 的默认静态模式下,这些路由是在构建时生成的。如果选择加入 [SSR 模式](/zh-cn/guides/server-side-rendering/),则会在运行时响应请求并按需获取内容。 +你还可以选择将 Markdown 和 MDX 文件保存在 `src/pages` 目录之外,然后 [导入内容](/zh-cn/guides/markdown-content/#导入-markdown) 到 `.astro` 页面。 + +### 内容集合 + +Astro 自带的 [内容集合](/zh-cn/guides/content-collections/) 提供了一种强大的、类型安全的方式来处理你的 `src/content` 目录中的 Markdown、MDX 或 Markdoc 内容。 + +### 远程内容 + +你还可以从项目之外的源 [远程获取 markdown](/zh-cn/guides/markdown-content/#fetching-remote-markdown)。这将需要你自己的 Markdown 解析器,或者使用社区集成(例如 [`astro-remote`](https://github.com/natemoo-re/astro-remote))。 ## 展示你的内容 @@ -58,4 +66,4 @@ Astro 自带的 [内容集合](/zh-cn/guides/content-collections/) 提供了一 ## 社区集成 -除了官方 [`@astrojs/mdx`](/zh-cn/guides/integrations-guide/mdx/) 和 [`@astrojs/markdoc`](/zh-cn/guides/integrations-guide/markdoc/) 集成,有几个第三方 [社区集成](https://astro.build/integrations/?search=content) 可用于处理 Astro 项目中的内容。 +除了官方 [`@astrojs/mdx`](/zh-cn/guides/integrations-guide/mdx/) 和 [`@astrojs/markdoc`](/zh-cn/guides/integrations-guide/markdoc/) 集成,这里有一些第三方 [社区集成](https://astro.build/integrations/?search=content) 也可用于处理 Astro 项目中的内容。 From db40dbc60073fbce262c22830c3de200a787ff75 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Tue, 18 Jun 2024 14:44:44 +0800 Subject: [PATCH 4/7] fix broken link --- src/content/docs/zh-cn/guides/content.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/zh-cn/guides/content.mdx b/src/content/docs/zh-cn/guides/content.mdx index 951c6c9dac8d4..a241db2215aba 100644 --- a/src/content/docs/zh-cn/guides/content.mdx +++ b/src/content/docs/zh-cn/guides/content.mdx @@ -44,7 +44,7 @@ Markdown 是一种便捷的语法,用于编写具有基本格式和通用元 ### 页面文件 -位于 `src/pages` 目录的 Markdown 和 MDX 文件将使用 Astro 的[基于文件路由](/zh-cn/guides/routing/)自动生成页面,构建一个与文件路径相对应的 URL。 +位于 `src/pages` 目录的 Markdown 和 MDX 文件将使用 Astro 的 [基于文件路由](/zh-cn/guides/routing/) 自动生成页面,构建一个与文件路径相对应的 URL。 ### 本地内容 @@ -56,7 +56,7 @@ Astro 自带的 [内容集合](/zh-cn/guides/content-collections/) 提供了一 ### 远程内容 -你还可以从项目之外的源 [远程获取 markdown](/zh-cn/guides/markdown-content/#fetching-remote-markdown)。这将需要你自己的 Markdown 解析器,或者使用社区集成(例如 [`astro-remote`](https://github.com/natemoo-re/astro-remote))。 +你还可以从项目之外的源 [远程获取 markdown](/zh-cn/guides/markdown-content/#请求远程-markdown)。这将需要你自己的 Markdown 解析器,或者使用社区集成(例如 [`astro-remote`](https://github.com/natemoo-re/astro-remote))。 ## 展示你的内容 From 3643f4f8131df28b7116267de9b859b123dfff57 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Tue, 18 Jun 2024 15:32:03 +0800 Subject: [PATCH 5/7] Update src/content/docs/zh-cn/guides/content.mdx Co-authored-by: qer --- src/content/docs/zh-cn/guides/content.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/content.mdx b/src/content/docs/zh-cn/guides/content.mdx index a241db2215aba..422204445deed 100644 --- a/src/content/docs/zh-cn/guides/content.mdx +++ b/src/content/docs/zh-cn/guides/content.mdx @@ -28,7 +28,7 @@ Markdown 是一种便捷的语法,用于编写具有基本格式和通用元 ### MDX 创作 -如果你在项目中使用了 [Astro MDX 集成](/zh-cn/guides/integrations-guide/mdx/),你还可以使用 `.mdx` 文件编写内容,它可以在 Markdown 中编写 JavaScript 表达式和组件。这包括静态 [Astro 组件](/zh-cn/basics/astro-components/) 和交互式 [框架组件](/zh-cn/guides/framework-components/)。这允许你在文本中添加UI元素,如横幅或交互式轮播图。 +如果你在项目中使用了 [Astro MDX 集成](/zh-cn/guides/integrations-guide/mdx/),你还可以使用 `.mdx` 文件编写内容,它可以在 Markdown 中编写 JavaScript 表达式和组件。这包括静态 [Astro 组件](/zh-cn/basics/astro-components/) 和交互式 [框架组件](/zh-cn/guides/framework-components/)。这允许你在文本中添加 UI 元素,如横幅或交互式轮播图。 直接在你的代码编辑器中编写和编辑 `.mdx` 文件 和你的项目文件。MDX 文件是 Astro 中 [支持的页面文件类型](/zh-cn/basics/astro-pages/#支持的页面文件),也可以用作 [内容集合条目](#内容集合)。 From 85222c8aa344ab5572f0bf684a742254f814dff1 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Tue, 18 Jun 2024 15:32:10 +0800 Subject: [PATCH 6/7] Update src/content/docs/zh-cn/guides/content.mdx Co-authored-by: qer --- src/content/docs/zh-cn/guides/content.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/content.mdx b/src/content/docs/zh-cn/guides/content.mdx index 422204445deed..29001b0edb990 100644 --- a/src/content/docs/zh-cn/guides/content.mdx +++ b/src/content/docs/zh-cn/guides/content.mdx @@ -15,7 +15,7 @@ Astro 帮助你创作和展示你的内容。你可以直接在 Astro 中使用 在 Astro 中,你可以通过多种方式创作内容: - 在 Markdown 文件中 (`.md` 或 [其他扩展名](/zh-cn/guides/markdown-content/)) 创作,使编写富文本内容变得更加容易。 - 在使用 [官方集成](/zh-cn/guides/integrations-guide/) 的 MDX (`.mdx`) 和 Markdoc (`.mdoc`) 文件中创作,这允许你在文档中包含组件和动态表达式。 -- 使用 [第三方内容管理系统 (CMS)](#无头-cms-创作),然后将该内容拉取到 `.astro` 页面中。 +- 使用 [第三方内容管理系统(CMS)](#无头-cms-创作),然后将该内容拉取到 `.astro` 页面中。 - 其他选项(不常用于内容复杂的页面)包括 [`.astro` 文件](/zh-cn/basics/astro-pages/#基于文件的路由) 和 [`.html` 文件](/zh-cn/basics/astro-pages/#html-页面)。 ### Markdown 创作 From a67d4f57aa3124febe7c5e69a37ce540f42a00e5 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Tue, 18 Jun 2024 16:00:52 +0800 Subject: [PATCH 7/7] Update src/content/docs/zh-cn/guides/content.mdx Co-authored-by: qer --- src/content/docs/zh-cn/guides/content.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/zh-cn/guides/content.mdx b/src/content/docs/zh-cn/guides/content.mdx index 29001b0edb990..24583dd1d98e8 100644 --- a/src/content/docs/zh-cn/guides/content.mdx +++ b/src/content/docs/zh-cn/guides/content.mdx @@ -13,7 +13,7 @@ Astro 帮助你创作和展示你的内容。你可以直接在 Astro 中使用 ## 编写内容 在 Astro 中,你可以通过多种方式创作内容: -- 在 Markdown 文件中 (`.md` 或 [其他扩展名](/zh-cn/guides/markdown-content/)) 创作,使编写富文本内容变得更加容易。 +- 在 Markdown 文件 (`.md` 或 [其他扩展名](/zh-cn/guides/markdown-content/)) 中创作,使编写富文本内容变得更加容易。 - 在使用 [官方集成](/zh-cn/guides/integrations-guide/) 的 MDX (`.mdx`) 和 Markdoc (`.mdoc`) 文件中创作,这允许你在文档中包含组件和动态表达式。 - 使用 [第三方内容管理系统(CMS)](#无头-cms-创作),然后将该内容拉取到 `.astro` 页面中。 - 其他选项(不常用于内容复杂的页面)包括 [`.astro` 文件](/zh-cn/basics/astro-pages/#基于文件的路由) 和 [`.html` 文件](/zh-cn/basics/astro-pages/#html-页面)。