siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/1.10.x/site-config/index.html b/docs/zh-CN/1.10.x/site-config/index.html index 092870f5a4..0d68ef1dd7 100644 --- a/docs/zh-CN/1.10.x/site-config/index.html +++ b/docs/zh-CN/1.10.x/site-config/index.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/1.10.x/tutorial-setup.html b/docs/zh-CN/1.10.x/tutorial-setup.html index 370d0449f5..fda03e7bc6 100644 --- a/docs/zh-CN/1.10.x/tutorial-setup.html +++ b/docs/zh-CN/1.10.x/tutorial-setup.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Node.js
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps.
diff --git a/docs/zh-CN/1.10.x/tutorial-setup/index.html b/docs/zh-CN/1.10.x/tutorial-setup/index.html index 370d0449f5..fda03e7bc6 100644 --- a/docs/zh-CN/1.10.x/tutorial-setup/index.html +++ b/docs/zh-CN/1.10.x/tutorial-setup/index.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Node.js
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps.
diff --git a/docs/zh-CN/1.11.x/site-config.html b/docs/zh-CN/1.11.x/site-config.html index 76ed3761c2..75712d4946 100644 --- a/docs/zh-CN/1.11.x/site-config.html +++ b/docs/zh-CN/1.11.x/site-config.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/1.11.x/site-config/index.html b/docs/zh-CN/1.11.x/site-config/index.html index 76ed3761c2..75712d4946 100644 --- a/docs/zh-CN/1.11.x/site-config/index.html +++ b/docs/zh-CN/1.11.x/site-config/index.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/1.11.x/tutorial-setup.html b/docs/zh-CN/1.11.x/tutorial-setup.html index c49ad87adc..0b114decfb 100644 --- a/docs/zh-CN/1.11.x/tutorial-setup.html +++ b/docs/zh-CN/1.11.x/tutorial-setup.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Node.js
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps.
diff --git a/docs/zh-CN/1.11.x/tutorial-setup/index.html b/docs/zh-CN/1.11.x/tutorial-setup/index.html index c49ad87adc..0b114decfb 100644 --- a/docs/zh-CN/1.11.x/tutorial-setup/index.html +++ b/docs/zh-CN/1.11.x/tutorial-setup/index.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Node.js
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps.
diff --git a/docs/zh-CN/1.12.0/site-config.html b/docs/zh-CN/1.12.0/site-config.html index 7b1de8fdd6..1dffbf0566 100644 --- a/docs/zh-CN/1.12.0/site-config.html +++ b/docs/zh-CN/1.12.0/site-config.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/1.12.0/site-config/index.html b/docs/zh-CN/1.12.0/site-config/index.html index 7b1de8fdd6..1dffbf0566 100644 --- a/docs/zh-CN/1.12.0/site-config/index.html +++ b/docs/zh-CN/1.12.0/site-config/index.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/1.12.0/tutorial-setup.html b/docs/zh-CN/1.12.0/tutorial-setup.html index e263622dd3..cd827dd5e3 100644 --- a/docs/zh-CN/1.12.0/tutorial-setup.html +++ b/docs/zh-CN/1.12.0/tutorial-setup.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Node.js
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps.
diff --git a/docs/zh-CN/1.12.0/tutorial-setup/index.html b/docs/zh-CN/1.12.0/tutorial-setup/index.html index e263622dd3..cd827dd5e3 100644 --- a/docs/zh-CN/1.12.0/tutorial-setup/index.html +++ b/docs/zh-CN/1.12.0/tutorial-setup/index.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Node.js
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps.
diff --git a/docs/zh-CN/1.13.0/site-config.html b/docs/zh-CN/1.13.0/site-config.html index 58c4a2f8b0..71dd0dbf8f 100644 --- a/docs/zh-CN/1.13.0/site-config.html +++ b/docs/zh-CN/1.13.0/site-config.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/1.13.0/site-config/index.html b/docs/zh-CN/1.13.0/site-config/index.html index 58c4a2f8b0..71dd0dbf8f 100644 --- a/docs/zh-CN/1.13.0/site-config/index.html +++ b/docs/zh-CN/1.13.0/site-config/index.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/1.13.0/tutorial-setup.html b/docs/zh-CN/1.13.0/tutorial-setup.html index 457ac4a34b..a7195c9f75 100644 --- a/docs/zh-CN/1.13.0/tutorial-setup.html +++ b/docs/zh-CN/1.13.0/tutorial-setup.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Git
-Git is a version control system for tracking changes in source code during software development and it can help you synchronize and version files between your local system and your online repository. Git for Windows includes Git Bash, a terminal application. If not already installed, see Installing Git.
+安装 Git
+Git 是一个版本控制系统,用于在软件开发过程中跟踪源代码的更改,它可以帮助您在本地系统和您的在线存储库之间同步和版本文件。 Windows 的Git包括 Git Bash(终端应用程序)。 如果尚未安装,请参阅安装 Git。
Install Node.js
-Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js installation includes npm, the package manager that allows you to install NPM modules from your terminal.
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js安装包含 npm(软件包管理器允许您从终端安装NPM 模块)。
-
-
- Open Terminal on a Mac, Linux, or Unix system. Open Git Bash on a Windows system. -
- If you have
brewon your OS, run the following command to install Node.
+ - 在 Mac、Linux 或 Unix 系统上打开终端。 在 Windows 系统上打开 Git Bash +
- 如果您在 系统 上有
brew,请运行以下命令来安装节点。
brew install node
@@ -118,7 +118,7 @@ v8.15.1
{.docImage}
-
-
- In Terminal or Git Bash,
cdto a directory where the local clone will be a subdirectory.
+ - 在 Terminal 或 Git Bash,
cd到一个目录, 代码将会克隆到该目录的子目录。
cd /Users/NAME/doc_projects # macOS example
# or
@@ -139,7 +139,7 @@ git clone https://github.com/USERNAME/docusau
or if you have Yarn:
yarn global add docusaurus-init
-Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Node.js
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps.
diff --git a/docs/zh-CN/1.9.x/tutorial-setup/index.html b/docs/zh-CN/1.9.x/tutorial-setup/index.html index efd111da45..84ee07ff58 100644 --- a/docs/zh-CN/1.9.x/tutorial-setup/index.html +++ b/docs/zh-CN/1.9.x/tutorial-setup/index.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Node.js
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps.
diff --git a/docs/zh-CN/next/site-config.html b/docs/zh-CN/next/site-config.html index fd71f70aef..8d89f4b106 100644 --- a/docs/zh-CN/next/site-config.html +++ b/docs/zh-CN/next/site-config.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/next/site-config/index.html b/docs/zh-CN/next/site-config/index.html index fd71f70aef..8d89f4b106 100644 --- a/docs/zh-CN/next/site-config/index.html +++ b/docs/zh-CN/next/site-config/index.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/next/tutorial-setup.html b/docs/zh-CN/next/tutorial-setup.html index 2086a562f5..a7d619e733 100644 --- a/docs/zh-CN/next/tutorial-setup.html +++ b/docs/zh-CN/next/tutorial-setup.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Git
-Git is a version control system for tracking changes in source code during software development and it can help you synchronize and version files between your local system and your online repository. Git for Windows includes Git Bash, a terminal application. If not already installed, see Installing Git.
+安装 Git
+Git 是一个版本控制系统,用于在软件开发过程中跟踪源代码的更改,它可以帮助您在本地系统和您的在线存储库之间同步和版本文件。 Windows 的Git包括 Git Bash(终端应用程序)。 如果尚未安装,请参阅安装 Git。
Install Node.js
-Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js installation includes npm, the package manager that allows you to install NPM modules from your terminal.
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js安装包含 npm(软件包管理器允许您从终端安装NPM 模块)。
-
-
- Open Terminal on a Mac, Linux, or Unix system. Open Git Bash on a Windows system. -
- If you have
brewon your OS, run the following command to install Node.
+ - 在 Mac、Linux 或 Unix 系统上打开终端。 在 Windows 系统上打开 Git Bash +
- 如果您在 系统 上有
brew,请运行以下命令来安装节点。
brew install node
@@ -118,7 +118,7 @@ v8.15.1
{.docImage}
-
-
- In Terminal or Git Bash,
cdto a directory where the local clone will be a subdirectory.
+ - 在 Terminal 或 Git Bash,
cd到一个目录, 代码将会克隆到该目录的子目录。
cd /Users/NAME/doc_projects # macOS example
# or
@@ -139,7 +139,7 @@ git clone https://github.com/USERNAME/docusau
or if you have Yarn:
yarn global add docusaurus-init
-Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Git
-Git is a version control system for tracking changes in source code during software development and it can help you synchronize and version files between your local system and your online repository. Git for Windows includes Git Bash, a terminal application. If not already installed, see Installing Git.
+安装 Git
+Git 是一个版本控制系统,用于在软件开发过程中跟踪源代码的更改,它可以帮助您在本地系统和您的在线存储库之间同步和版本文件。 Windows 的Git包括 Git Bash(终端应用程序)。 如果尚未安装,请参阅安装 Git。
Install Node.js
-Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js installation includes npm, the package manager that allows you to install NPM modules from your terminal.
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js安装包含 npm(软件包管理器允许您从终端安装NPM 模块)。
-
-
- Open Terminal on a Mac, Linux, or Unix system. Open Git Bash on a Windows system. -
- If you have
brewon your OS, run the following command to install Node.
+ - 在 Mac、Linux 或 Unix 系统上打开终端。 在 Windows 系统上打开 Git Bash +
- 如果您在 系统 上有
brew,请运行以下命令来安装节点。
brew install node
@@ -118,7 +118,7 @@ v8.15.1
{.docImage}
-
-
- In Terminal or Git Bash,
cdto a directory where the local clone will be a subdirectory.
+ - 在 Terminal 或 Git Bash,
cd到一个目录, 代码将会克隆到该目录的子目录。
cd /Users/NAME/doc_projects # macOS example
# or
@@ -139,7 +139,7 @@ git clone https://github.com/USERNAME/docusau
or if you have Yarn:
yarn global add docusaurus-init
-siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/site-config/index.html b/docs/zh-CN/site-config/index.html index 3de9f0ccab..d0ca5b511c 100644 --- a/docs/zh-CN/site-config/index.html +++ b/docs/zh-CN/site-config/index.html @@ -1,4 +1,4 @@ -siteConfig.js
A large part of the site configuration is done by editing the siteConfig.js file.
siteConfig.js
网站配置的很大一部分是通过编辑 siteConfig 文件来完成的。
用户展示
数组users用于存储要在网站上显示的所有项目或用户信息。 Currently, this field is used by example the pages/en/index.js and pages/en/users.js files provided. 每个user对象都包含有 caption、image、infoLink和 pinned 属性。 caption 是当有人悬停在该用户头像(image) 上时显示的文本, 而 infoLink 是点击头像后将要跳转的用户信息链接。 pinned 表示是否在首页固定显示。
Currently, this users array is used only by the index.js and users.js example files. 如果你不想要用户展示页面或不想在首页展示用户,你可以删除它。
siteConfig 对象包含了网站的大部分配置。
必填属性
baseUrl [string]
-baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to /. This field is related to the url field.
baseUrl for your site. This can also be considered the path after the host. For example, /metro/ is the baseUrl of https://facebook.github.io/metro/. 对于没有路径的 URL,BaseUrl 应设置为 /。 This field is related to the url field.
colors [object]
Color configurations for the site.
-
@@ -101,7 +101,7 @@
favicon [string]
URL for site favicon.
headerIcon [string]
-URL for icon used in the header navigation bar.
+头部导航栏中使用图标的 URL。
headerLinks [array]
Links that will be used in the header navigation bar. The label field of each object will be the link text and will also be translated for each language.
示例用法:
diff --git a/docs/zh-CN/tutorial-setup.html b/docs/zh-CN/tutorial-setup.html index 5c473770b2..9183decf92 100644 --- a/docs/zh-CN/tutorial-setup.html +++ b/docs/zh-CN/tutorial-setup.html @@ -1,4 +1,4 @@ -Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Git
-Git is a version control system for tracking changes in source code during software development and it can help you synchronize and version files between your local system and your online repository. Git for Windows includes Git Bash, a terminal application. If not already installed, see Installing Git.
+安装 Git
+Git 是一个版本控制系统,用于在软件开发过程中跟踪源代码的更改,它可以帮助您在本地系统和您的在线存储库之间同步和版本文件。 Windows 的Git包括 Git Bash(终端应用程序)。 如果尚未安装,请参阅安装 Git。
Install Node.js
-Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js installation includes npm, the package manager that allows you to install NPM modules from your terminal.
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js安装包含 npm(软件包管理器允许您从终端安装NPM 模块)。
-
-
- Open Terminal on a Mac, Linux, or Unix system. Open Git Bash on a Windows system. -
- If you have
brewon your OS, run the following command to install Node.
+ - 在 Mac、Linux 或 Unix 系统上打开终端。 在 Windows 系统上打开 Git Bash +
- 如果您在 系统 上有
brew,请运行以下命令来安装节点。
brew install node
@@ -118,7 +118,7 @@ v8.15.1
{.docImage}
-
-
- In Terminal or Git Bash,
cdto a directory where the local clone will be a subdirectory.
+ - 在 Terminal 或 Git Bash,
cd到一个目录, 代码将会克隆到该目录的子目录。
cd /Users/NAME/doc_projects # macOS example
# or
@@ -139,7 +139,7 @@ git clone https://github.com/USERNAME/docusau
or if you have Yarn:
yarn global add docusaurus-init
-Setting Up
This tutorial is geared at first-time users who want detailed instructions on how to go from zero to a Docusaurus website that has versions. Let's start!
+Setting Up
本教程是针对首次使用者的,详细地说明如何从零开始完成一个的Docusaurus网站。 让我们开始吧!
{.docImage}
Install Git
-Git is a version control system for tracking changes in source code during software development and it can help you synchronize and version files between your local system and your online repository. Git for Windows includes Git Bash, a terminal application. If not already installed, see Installing Git.
+安装 Git
+Git 是一个版本控制系统,用于在软件开发过程中跟踪源代码的更改,它可以帮助您在本地系统和您的在线存储库之间同步和版本文件。 Windows 的Git包括 Git Bash(终端应用程序)。 如果尚未安装,请参阅安装 Git。
Install Node.js
-Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js installation includes npm, the package manager that allows you to install NPM modules from your terminal.
Node.js is an environment that can run JavaScript code outside of a web browser and is used to write and run server-side JavaScript apps. Node.js安装包含 npm(软件包管理器允许您从终端安装NPM 模块)。
-
-
- Open Terminal on a Mac, Linux, or Unix system. Open Git Bash on a Windows system. -
- If you have
brewon your OS, run the following command to install Node.
+ - 在 Mac、Linux 或 Unix 系统上打开终端。 在 Windows 系统上打开 Git Bash +
- 如果您在 系统 上有
brew,请运行以下命令来安装节点。
brew install node
@@ -118,7 +118,7 @@ v8.15.1
{.docImage}
-
-
- In Terminal or Git Bash,
cdto a directory where the local clone will be a subdirectory.
+ - 在 Terminal 或 Git Bash,
cd到一个目录, 代码将会克隆到该目录的子目录。
cd /Users/NAME/doc_projects # macOS example
# or
@@ -139,7 +139,7 @@ git clone https://github.com/USERNAME/docusau
or if you have Yarn:
yarn global add docusaurus-init
-