From a592600daa62756e20416f820c92200d3fbb9107 Mon Sep 17 00:00:00 2001 From: 100gle Date: Sun, 24 Dec 2023 11:49:23 +0800 Subject: [PATCH] i18n(zh-cn): Update `core-concepts/project-structure.mdx` --- .../docs/zh-cn/core-concepts/project-structure.mdx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/content/docs/zh-cn/core-concepts/project-structure.mdx b/src/content/docs/zh-cn/core-concepts/project-structure.mdx index 537d6a3cd406c..a3ed6a95ba3f7 100644 --- a/src/content/docs/zh-cn/core-concepts/project-structure.mdx +++ b/src/content/docs/zh-cn/core-concepts/project-structure.mdx @@ -53,7 +53,7 @@ Astro 为你的项目提供了一个有想法的文件夹布局。每个 Astro - [页面](/zh-cn/core-concepts/astro-pages/) - [布局](/zh-cn/core-concepts/layouts/) - [Astro 组件](/zh-cn/core-concepts/astro-components/) -- [UI框架组件(React 等)](/zh-cn/core-concepts/framework-components/) +- [UI 框架组件(React 等)](/zh-cn/core-concepts/framework-components/) - [样式(CSS、Sass)](/zh-cn/guides/styling/) - [Markdown](/zh-cn/guides/markdown-content/) @@ -65,14 +65,9 @@ Astro 处理、压缩和打包你的 `src/` 文件以创建最终传递到浏览 虽然本指南描述了 Astro 社区中使用的一些流行约定,但 Astro 保留的目录只有 `src/pages/` 和 `src/content/` 。你可以自由的以最适合自己的方式重命名和重新组织任何其他目录。 ::: - -### `src/assets` - -[`src/assets`](/zh-cn/guides/images/) 目录推荐用于存储由 Astro 处理的资源(例如:图片)。这不是必需的,也不是特殊的保留文件夹。 - ### `src/components` -**组件**是你在 HTML 页面中可重复使用的代码单元。它可以是 [Astro 组件](/zh-cn/core-concepts/astro-components/) 或是像 React 或 Vue 这样的[UI框架组件](/zh-cn/core-concepts/framework-components/)。通常将你项目中所有组件都分组放在这个文件夹中。 +**组件**是你在 HTML 页面中可重复使用的代码单元。它可以是 [Astro 组件](/zh-cn/core-concepts/astro-components/) 或是像 React 或 Vue 这样的[UI 框架组件](/zh-cn/core-concepts/framework-components/)。通常将你项目中所有组件都分组放在这个文件夹中。 这是 Astro 项目约定俗成的,但不是必需的。你可以随意组织你的组件! @@ -82,7 +77,7 @@ Astro 处理、压缩和打包你的 `src/` 文件以创建最终传递到浏览 ### `src/layouts` -[布局](/zh-cn/core-concepts/layouts/)是定义一个或多个[页面](/zh-cn/core-concepts/astro-pages/)共享的UI结构的 Astro 组件。 +[布局](/zh-cn/core-concepts/layouts/)是定义一个或多个[页面](/zh-cn/core-concepts/astro-pages/)共享的 UI 结构的 Astro 组件。 和 `src/components` 一样,这个目录也只是约定俗成,但不是必需的。 @@ -100,7 +95,7 @@ Astro 处理、压缩和打包你的 `src/` 文件以创建最终传递到浏览 ### `public/` -`public/` 目录用于存放在 Astro 构建过程中不需要处理的文件和资源。这些文件将原封不动地复制到构建文件夹中。 +`public/` 目录用于项目中不需要在 Astro 构建过程中处理的文件和资源。这个文件夹中的文件将会被原封不动地复制到构建文件夹中,然后你的网站将被构建。 这种行为使得 `public/` 成为存放图片和字体等普通资源或 `robots.txt` 和 `manifest.webmanifest` 等特殊文件的理想选择。