浏览代码

Translate getting-started-preparation

DemoPark 8 年之前
父节点
当前提交
48f6e76b78
共有 2 个文件被更改,包括 19 次插入22 次删除
  1. 19 22
      docs/getting-started-preparation.md
  2. 二进制
      img/getting-started-preparation-verify.png

+ 19 - 22
docs/getting-started-preparation.md

@@ -1,13 +1,10 @@
----
-id: site-preparation
-title: Site Preparation
----
+# 准备网站
 
 
-After [installing Docusaurus](getting-started-installation.md), you now have a skeleton to work from for your specific website. With a few changes, you can verify that Docusaurus was installed correctly by running the site locally.
+[安装 Docusaurus](getting-started-installation.md) 之后,您现在有一个框架可以为您特定的网站工作。 通过一些更改,您可以通过在本地运行网站来验证 Docusaurus 是否已正确安装。
 
 
-## Directory Structure
+## 目录结构
 
 
-As shown after you [installed Docusaurus](getting-started-installation.md), the initialization script created a directory structure similar to:
+如[安装 Docusaurus](getting-started-installation.md) 之后所示,初始化脚本创建了一个类似于以下内容的目录结构:
 
 
 ```bash
 ```bash
 root-of-repo
 root-of-repo
@@ -31,27 +28,27 @@ root-of-repo
 │   └── static
 │   └── static
 ```
 ```
 
 
-- The `website/core/Footer.js` file is a React component that acts as the footer for the site generated by Docusaurus and should be customized by the user.
-- The `website/blog-examples-from-docusaurus` folder contains examples of blog posts written in markdown.
-- The `docs-examples-from-docusaurus` folder contains example documentation files written in markdown.
-- The `website/pages` folder contains example top-level pages for the site.
-- The `website/static` folder contains static assets used by the example site.
-- The `website/siteConfig.js` file is the main configuration file used by Docusaurus.
+- `website/core/Footer.js` 文件是一个 React 组件,充当 Docusaurus 生成的网站的页脚,应该由用户自定义。
+- `website/blog-examples-from-docusaurus` 文件夹包含用 markdown 编写的博客文章的例子。
+- `docs-examples-from-docusaurus` 文件夹包含用 markdown 编写的示例文档文件。
+- `website/pages` 文件夹包含该网站的示例顶级页面。
+- `website/static` 文件夹包含示例网站使用的静态资源。
+- `website/siteConfig.js` 文件是 Docusaurus 使用的主要配置文件。
 
 
-You will need to keep the `website/siteConfig.js` and `website/core/Footer.js` files, but may edit them as you wish.
+你需要保留 `website/siteConfig.js` 和 `website/core/Footer.js` 文件,但是可以随意编辑它们。
 
 
-You should keep the `website/pages` and `website/static` folders, but may change the content inside them as you wish. At the bare minimum you should have an `en/index.js` or `en/index.html` file inside `website/pages` and an image to use as your header icon inside `website/static`.
+你应该保留 `website/pages` 和 `website/static` 文件夹,但可以如你所愿的改变其内容。 最低限度,你应该有一个在 `website/pages` 内的 `en/index.js` 或 `en/index.html` 文件和一个图像用作 `website/static` 内的标题图标。
 
 
-The `website/blog-examples-from-docusaurus` and `docs-examples-from-docusaurus` folders contain example blog and document markdown files. As shown below when you verify that the example site runs correctly, if you wish to run Docusaurus with these files, you need to rename the folders to `website/blog` and `docs`, respectively.
+`website/blog-examples-from-docusaurus` 和 `docs-examples-from-docusaurus` 文件夹包含示例博客和文档的 markdown 文件。 如下文所示,当您确认示例网站正确运行时,如果您希望使用这些文件运行 Docusaurus,则需要分别将文件夹重命名为`website/blog` 和 `docs`。
 
 
-## Verifying Installation
+## 验证安装
 
 
-Running the Docusaurus initialization script, `docusaurus-init`, produces a runnable, example website to base your site upon.
+运行 Docusaurus 初始化脚本 `docusaurus-init` 后,会生成一个可运行的示例网站,以此为基础开发您的网站。
 
 
-1. In your root, rename `docs-examples-from-docusaurus` to `docs`.
+1. 在根目录, 重命名 `docs-examples-from-docusaurus` 为 `docs`.
 1. `cd website`
 1. `cd website`
-1. Rename `blog-examples-from-docusaurus` to `blog`.
-1. Run the local webserver via `yarn start` or `npm start`.
-1. Load the example site at http://localhost:3000. You should see the example site loaded in your web browser.
+1. 重命名 `blog-examples-from-docusaurus` 为 `blog`.
+1. 通过 `yarn start` 或 `npm start` 运行本地 web 服务器.
+1. 通过 http://localhost:3000 访问示例网站。 你应该看到浏览器加载的示例网站。
 
 
 ![](/img/getting-started-preparation-verify.png)
 ![](/img/getting-started-preparation-verify.png)

二进制
img/getting-started-preparation-verify.png