diff --git a/docs/zh-CN/1.10.x/installation.html b/docs/zh-CN/1.10.x/installation.html index 7af7a302ad..78a224516e 100644 --- a/docs/zh-CN/1.10.x/installation.html +++ b/docs/zh-CN/1.10.x/installation.html @@ -89,7 +89,7 @@

您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.10.x/installation/index.html b/docs/zh-CN/1.10.x/installation/index.html index 7af7a302ad..78a224516e 100644 --- a/docs/zh-CN/1.10.x/installation/index.html +++ b/docs/zh-CN/1.10.x/installation/index.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.11.x/installation.html b/docs/zh-CN/1.11.x/installation.html index d43a75de76..27d014dba6 100644 --- a/docs/zh-CN/1.11.x/installation.html +++ b/docs/zh-CN/1.11.x/installation.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.11.x/installation/index.html b/docs/zh-CN/1.11.x/installation/index.html index d43a75de76..27d014dba6 100644 --- a/docs/zh-CN/1.11.x/installation/index.html +++ b/docs/zh-CN/1.11.x/installation/index.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.12.0/installation.html b/docs/zh-CN/1.12.0/installation.html index efbf724a66..f81aaf1ad7 100644 --- a/docs/zh-CN/1.12.0/installation.html +++ b/docs/zh-CN/1.12.0/installation.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.12.0/installation/index.html b/docs/zh-CN/1.12.0/installation/index.html index efbf724a66..f81aaf1ad7 100644 --- a/docs/zh-CN/1.12.0/installation/index.html +++ b/docs/zh-CN/1.12.0/installation/index.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.13.0/installation.html b/docs/zh-CN/1.13.0/installation.html index 959e515978..f103a1b91a 100644 --- a/docs/zh-CN/1.13.0/installation.html +++ b/docs/zh-CN/1.13.0/installation.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.13.0/installation/index.html b/docs/zh-CN/1.13.0/installation/index.html index 959e515978..f103a1b91a 100644 --- a/docs/zh-CN/1.13.0/installation/index.html +++ b/docs/zh-CN/1.13.0/installation/index.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.9.x/installation.html b/docs/zh-CN/1.9.x/installation.html index a99ca5043c..3a9d078274 100644 --- a/docs/zh-CN/1.9.x/installation.html +++ b/docs/zh-CN/1.9.x/installation.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/1.9.x/installation/index.html b/docs/zh-CN/1.9.x/installation/index.html index a99ca5043c..3a9d078274 100644 --- a/docs/zh-CN/1.9.x/installation/index.html +++ b/docs/zh-CN/1.9.x/installation/index.html @@ -89,7 +89,7 @@

    您必须有 Node > = 8. x 与 Yarn > = 1.5。

  • Create a project, if none exists, and change your directory to this project's root.

    -

    文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

    +

    文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

    通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

  • @@ -126,12 +126,12 @@ └── static

    运行示例网站

    -

    After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

    +

    根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

    1. cd website

    2. -
    3. From within the website directory, run the local web server using yarn start or npm start.

    4. -
    5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

      -

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

    6. +
    7. website 目录下,启动Docusaurus服务器:yarn startnpm start

    8. +
    9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

      +

      You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

    使用代理启动服务

    diff --git a/docs/zh-CN/installation.html b/docs/zh-CN/installation.html index 3e65bfd122..2a85ca07cf 100644 --- a/docs/zh-CN/installation.html +++ b/docs/zh-CN/installation.html @@ -82,14 +82,14 @@ });
    Translate

    Installation

    Docusaurus的初始设计就是要易于安装并让你的网站可以迅速运行。

    安装 Docusaurus

    -

    We have created a helpful script that will get all of the infrastructure set up for you:

    +

    我们创建了一个小工具,用来帮助您快速创建一个Docusaurus网站:

    1. 确保您安装了最新版本的 Node。 我们同样建议您也安装 Yarn

      You have to be on Node >= 8.x and Yarn >= 1.5.

    2. Create a project, if none exists, and change your directory to this project's root.

      -

      文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

      +

      文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

      通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

    3. @@ -129,12 +129,12 @@

      This installation creates some Docker files that are not necessary to run docusaurus. They may be deleted without issue in the interest of saving space. For more information on Docker, please see the Docker documentation.

      运行示例网站

      -

      After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

      +

      根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

      1. cd website

      2. -
      3. From within the website directory, run the local web server using yarn start or npm start.

      4. -
      5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

        -

        You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

      6. +
      7. website 目录下,启动Docusaurus服务器:yarn startnpm start

      8. +
      9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

        +

        You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

      使用代理启动服务

      diff --git a/docs/zh-CN/installation/index.html b/docs/zh-CN/installation/index.html index 3e65bfd122..2a85ca07cf 100644 --- a/docs/zh-CN/installation/index.html +++ b/docs/zh-CN/installation/index.html @@ -82,14 +82,14 @@ });
    Translate

    Installation

    Docusaurus的初始设计就是要易于安装并让你的网站可以迅速运行。

    安装 Docusaurus

    -

    We have created a helpful script that will get all of the infrastructure set up for you:

    +

    我们创建了一个小工具,用来帮助您快速创建一个Docusaurus网站:

    1. 确保您安装了最新版本的 Node。 我们同样建议您也安装 Yarn

      You have to be on Node >= 8.x and Yarn >= 1.5.

    2. Create a project, if none exists, and change your directory to this project's root.

      -

      文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

      +

      文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

      通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

    3. @@ -129,12 +129,12 @@

      This installation creates some Docker files that are not necessary to run docusaurus. They may be deleted without issue in the interest of saving space. For more information on Docker, please see the Docker documentation.

      运行示例网站

      -

      After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

      +

      根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

      1. cd website

      2. -
      3. From within the website directory, run the local web server using yarn start or npm start.

      4. -
      5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

        -

        You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

      6. +
      7. website 目录下,启动Docusaurus服务器:yarn startnpm start

      8. +
      9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

        +

        You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

      使用代理启动服务

      diff --git a/docs/zh-CN/next/installation.html b/docs/zh-CN/next/installation.html index 0e0c8450a4..d6a3cc4053 100644 --- a/docs/zh-CN/next/installation.html +++ b/docs/zh-CN/next/installation.html @@ -85,14 +85,14 @@

      Important Note: If you are setting up a new Docusaurus website for a Facebook Open Source project, we highly encourage you to use Docusaurus 2 instead.

      安装 Docusaurus

      -

      We have created a helpful script that will get all of the infrastructure set up for you:

      +

      我们创建了一个小工具,用来帮助您快速创建一个Docusaurus网站:

      1. 确保您安装了最新版本的 Node。 我们同样建议您也安装 Yarn

        您必须有 Node > = 8. x 与 Yarn > = 1.5。

      2. Create a project, if none exists, and change your directory to this project's root.

        -

        文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

        +

        文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

        通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

      3. @@ -132,12 +132,12 @@

        This installation creates some Docker files that are not necessary to run docusaurus. They may be deleted without issue in the interest of saving space. For more information on Docker, please see the Docker documentation.

        运行示例网站

        -

        After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

        +

        根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

        1. cd website

        2. -
        3. From within the website directory, run the local web server using yarn start or npm start.

        4. -
        5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

          -

          You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

        6. +
        7. website 目录下,启动Docusaurus服务器:yarn startnpm start

        8. +
        9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

          +

          You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

        使用代理启动服务

        diff --git a/docs/zh-CN/next/installation/index.html b/docs/zh-CN/next/installation/index.html index 0e0c8450a4..d6a3cc4053 100644 --- a/docs/zh-CN/next/installation/index.html +++ b/docs/zh-CN/next/installation/index.html @@ -85,14 +85,14 @@

        Important Note: If you are setting up a new Docusaurus website for a Facebook Open Source project, we highly encourage you to use Docusaurus 2 instead.

        安装 Docusaurus

        -

        We have created a helpful script that will get all of the infrastructure set up for you:

        +

        我们创建了一个小工具,用来帮助您快速创建一个Docusaurus网站:

        1. 确保您安装了最新版本的 Node。 我们同样建议您也安装 Yarn

          您必须有 Node > = 8. x 与 Yarn > = 1.5。

        2. Create a project, if none exists, and change your directory to this project's root.

          -

          文档会被创建在此目录下。 The root directory may contain other files. The Docusaurus installation script will create two new directories: docs and website.

          +

          文档会被创建在此目录下。 根目录可能会包含其他文件。 Docusaurus的安装脚本会创建两个新目录:docswebsite

          通常,Docusaurus 站点的位置会是现有或新创建的 GitHub 项目。但这不是 Docusaurus 的强制要求。

        3. @@ -132,12 +132,12 @@

          This installation creates some Docker files that are not necessary to run docusaurus. They may be deleted without issue in the interest of saving space. For more information on Docker, please see the Docker documentation.

          运行示例网站

          -

          After running the Docusaurus initialization script, docusaurus-init as described in the Installation section, you will have a runnable, example website to use as your site's base. To run:

          +

          根据 Installation 部分所述运行 Docusaurus 的初始化脚本 docusaurus-init 后,你将会有一个可运行的示例网站。 要运行这个示例:

          1. cd website

          2. -
          3. From within the website directory, run the local web server using yarn start or npm start.

          4. -
          5. Load the example site at http://localhost:3000 if it did not already open automatically. If port 3000 has already been taken, another port will be used. Look at the console messages to see which.

            -

            You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. A randomly generated primary and secondary theme color will be picked for you.

          6. +
          7. website 目录下,启动Docusaurus服务器:yarn startnpm start

          8. +
          9. 如果没有自动打开已启动的示例网站,请从 http://localhost:3000 访问示例站点。 如果 3000 端口已被占用,将使用另一个端口。 查看控制台消息以确认使用了哪个端口。

            +

            You should see the example site loaded in your web browser. There's also a LiveReload server running and any changes made to the docs and files in the website directory will cause the page to refresh. Docusaurus将会自动选取一个随机生成的主要和次要主题颜色。

          使用代理启动服务

          diff --git a/en/users.html b/en/users.html index 75ed005c69..26dca102a5 100644 --- a/en/users.html +++ b/en/users.html @@ -24,7 +24,7 @@ languagesDropDown.className = "hide"; } }); -