mirror of
https://github.com/halo-dev/docs.git
synced 2026-01-13 06:03:55 +08:00
docs: update documentation for Halo 2.0.1 (#132)
为 [Halo 2.0.1](https://github.com/halo-dev/halo/releases/tag/v2.0.1) 更新版本号。 /kind documentation ```release-note None ```
This commit is contained in:
@@ -18,13 +18,13 @@ description: 使用 Docker Compose 部署
|
||||
|
||||
## 创建容器组
|
||||
|
||||
可用的 Halo 2.0.0 的 Docker 镜像:
|
||||
可用的 Halo 2.0.1 的 Docker 镜像:
|
||||
|
||||
- [halohub/halo](https://hub.docker.com/r/halohub/halo)
|
||||
- [ghcr.io/halo-dev/halo](https://github.com/halo-dev/halo/pkgs/container/halo)
|
||||
|
||||
:::info 注意
|
||||
目前 Halo 2.0 并未更新 Docker 的 latest 标签镜像,主要因为 2.0 不兼容 1.x 版本,防止使用者误操作。我们推荐使用固定版本的标签,比如 `halohub/halo:2.0.0`。
|
||||
目前 Halo 2.0 并未更新 Docker 的 latest 标签镜像,主要因为 2.0 不兼容 1.x 版本,防止使用者误操作。我们推荐使用固定版本的标签,比如 `halohub/halo:2.0.1`。
|
||||
:::
|
||||
|
||||
1. 在系统任意位置创建一个文件夹,此文档以 `~/halo` 为例。
|
||||
@@ -52,7 +52,7 @@ description: 使用 Docker Compose 部署
|
||||
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo:2.0.0
|
||||
image: halohub/halo:2.0.1
|
||||
container_name: halo
|
||||
restart: on-failure:3
|
||||
depends_on:
|
||||
@@ -109,7 +109,7 @@ description: 使用 Docker Compose 部署
|
||||
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo:2.0.0
|
||||
image: halohub/halo:2.0.1
|
||||
container_name: halo
|
||||
restart: on-failure:3
|
||||
depends_on:
|
||||
@@ -170,7 +170,7 @@ description: 使用 Docker Compose 部署
|
||||
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo:2.0.0
|
||||
image: halohub/halo:2.0.1
|
||||
container_name: halo
|
||||
restart: on-failure:3
|
||||
volumes:
|
||||
@@ -227,7 +227,7 @@ description: 使用 Docker Compose 部署
|
||||
```yaml {3}
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo:2.0.0
|
||||
image: halohub/halo:2.0.1
|
||||
container_name: halo
|
||||
```
|
||||
|
||||
|
||||
@@ -23,13 +23,13 @@ description: 使用 Docker 部署
|
||||
|
||||
## 使用 Docker 镜像
|
||||
|
||||
可用的 Halo 2.0.0 的 Docker 镜像:
|
||||
可用的 Halo 2.0.1 的 Docker 镜像:
|
||||
|
||||
- [halohub/halo](https://hub.docker.com/r/halohub/halo)
|
||||
- [ghcr.io/halo-dev/halo](https://github.com/halo-dev/halo/pkgs/container/halo)
|
||||
|
||||
:::info 注意
|
||||
目前 Halo 2.0 并未更新 Docker 的 latest 标签镜像,主要因为 2.0 不兼容 1.x 版本,防止使用者误操作。我们推荐使用固定版本的标签,比如 `halohub/halo:2.0.0`。
|
||||
目前 Halo 2.0 并未更新 Docker 的 latest 标签镜像,主要因为 2.0 不兼容 1.x 版本,防止使用者误操作。我们推荐使用固定版本的标签,比如 `halohub/halo:2.0.1`。
|
||||
:::
|
||||
|
||||
1. 创建容器
|
||||
@@ -42,7 +42,7 @@ description: 使用 Docker 部署
|
||||
-v ~/.halo2:/root/.halo2 \
|
||||
-e HALO_EXTERNAL_URL=http://localhost:8090/ \
|
||||
-e HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD=P@88w0rd \
|
||||
halohub/halo:2.0.0
|
||||
halohub/halo:2.0.1
|
||||
```
|
||||
|
||||
:::info
|
||||
|
||||
@@ -34,7 +34,7 @@ slug: /
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
docker run -it -d --name halo-next -p 8090:8090 -v ~/.halo2:/root/.halo2 --restart=unless-stopped halohub/halo:2.0.0
|
||||
docker run -it -d --name halo-next -p 8090:8090 -v ~/.halo2:/root/.halo2 --restart=unless-stopped halohub/halo:2.0.1
|
||||
```
|
||||
|
||||
详细部署文档请查阅:<https://docs.halo.run/getting-started/install/docker-compose>
|
||||
|
||||
@@ -63,7 +63,7 @@ server {
|
||||
-v ~/.halo2.1:/root/.halo2 \
|
||||
-e HALO_EXTERNAL_URL=http://localhost:8090/ \
|
||||
-e HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD=P@88w0rd \
|
||||
halohub/halo:2.0.0
|
||||
halohub/halo:2.0.1
|
||||
|
||||
# 第二个 Halo 容器
|
||||
docker run \
|
||||
@@ -73,7 +73,7 @@ server {
|
||||
-v ~/.halo2.2:/root/.halo2 \
|
||||
-e HALO_EXTERNAL_URL=http://localhost:8090/ \
|
||||
-e HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD=P@88w0rd \
|
||||
halohub/halo:2.0.0
|
||||
halohub/halo:2.0.1
|
||||
```
|
||||
|
||||
更多 Docker 相关的教程请参考:[使用 Docker 部署 Halo](../getting-started/install/docker.md)
|
||||
|
||||
@@ -37,8 +37,8 @@ const config = {
|
||||
lastVersion: "2.0",
|
||||
versions: {
|
||||
current: {
|
||||
label: "2.0.0-SNAPSHOT",
|
||||
path: "2.0.0-SNAPSHOT",
|
||||
label: "2.1.0-SNAPSHOT",
|
||||
path: "2.1.0-SNAPSHOT",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -272,6 +272,11 @@ const config = {
|
||||
if (existingPath.startsWith("/1.4/")) {
|
||||
return [existingPath.replace("/1.4/", "/1.4.17/")];
|
||||
}
|
||||
if (existingPath.startsWith("/2.1.0-SNAPSHOT/")) {
|
||||
return [
|
||||
existingPath.replace("/2.1.0-SNAPSHOT/", "/2.0.0-SNAPSHOT/"),
|
||||
];
|
||||
}
|
||||
return undefined;
|
||||
},
|
||||
},
|
||||
|
||||
@@ -256,41 +256,6 @@
|
||||
"message": "展开侧边栏",
|
||||
"description": "The ARIA label and title attribute for expand button of doc sidebar"
|
||||
},
|
||||
"theme.SearchBar.seeAll": {
|
||||
"message": "查看全部 {count} 个结果"
|
||||
},
|
||||
"theme.SearchPage.documentsFound.plurals": {
|
||||
"message": "找到 {count} 份文件",
|
||||
"description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
||||
},
|
||||
"theme.SearchPage.existingResultsTitle": {
|
||||
"message": "「{query}」的搜索结果",
|
||||
"description": "The search page title for non-empty query"
|
||||
},
|
||||
"theme.SearchPage.emptyResultsTitle": {
|
||||
"message": "在文档中搜索",
|
||||
"description": "The search page title for empty query"
|
||||
},
|
||||
"theme.SearchPage.inputPlaceholder": {
|
||||
"message": "在此输入搜索字词",
|
||||
"description": "The placeholder for search page input"
|
||||
},
|
||||
"theme.SearchPage.inputLabel": {
|
||||
"message": "搜索",
|
||||
"description": "The ARIA label for search page input"
|
||||
},
|
||||
"theme.SearchPage.algoliaLabel": {
|
||||
"message": "通过 Algolia 搜索",
|
||||
"description": "The ARIA label for Algolia mention"
|
||||
},
|
||||
"theme.SearchPage.noResultsText": {
|
||||
"message": "未找到任何结果",
|
||||
"description": "The paragraph for empty search result"
|
||||
},
|
||||
"theme.SearchPage.fetchingNewResults": {
|
||||
"message": "正在获取新的搜索结果...",
|
||||
"description": "The paragraph for fetching new search results"
|
||||
},
|
||||
"theme.SearchBar.label": {
|
||||
"message": "搜索",
|
||||
"description": "The ARIA label and placeholder for search button"
|
||||
@@ -387,6 +352,41 @@
|
||||
"message": "搜索文档",
|
||||
"description": "The placeholder of the input of the DocSearch pop-up modal"
|
||||
},
|
||||
"theme.SearchPage.documentsFound.plurals": {
|
||||
"message": "找到 {count} 份文件",
|
||||
"description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
||||
},
|
||||
"theme.SearchPage.existingResultsTitle": {
|
||||
"message": "「{query}」的搜索结果",
|
||||
"description": "The search page title for non-empty query"
|
||||
},
|
||||
"theme.SearchPage.emptyResultsTitle": {
|
||||
"message": "在文档中搜索",
|
||||
"description": "The search page title for empty query"
|
||||
},
|
||||
"theme.SearchPage.inputPlaceholder": {
|
||||
"message": "在此输入搜索字词",
|
||||
"description": "The placeholder for search page input"
|
||||
},
|
||||
"theme.SearchPage.inputLabel": {
|
||||
"message": "搜索",
|
||||
"description": "The ARIA label for search page input"
|
||||
},
|
||||
"theme.SearchPage.algoliaLabel": {
|
||||
"message": "通过 Algolia 搜索",
|
||||
"description": "The ARIA label for Algolia mention"
|
||||
},
|
||||
"theme.SearchPage.noResultsText": {
|
||||
"message": "未找到任何结果",
|
||||
"description": "The paragraph for empty search result"
|
||||
},
|
||||
"theme.SearchPage.fetchingNewResults": {
|
||||
"message": "正在获取新的搜索结果...",
|
||||
"description": "The paragraph for fetching new search results"
|
||||
},
|
||||
"theme.SearchBar.seeAll": {
|
||||
"message": "查看全部 {count} 个结果"
|
||||
},
|
||||
"theme.tags.tagsPageTitle": {
|
||||
"message": "标签",
|
||||
"description": "The title of the tag list page"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version.label": {
|
||||
"message": "2.0.0-SNAPSHOT",
|
||||
"message": "2.1.0-SNAPSHOT",
|
||||
"description": "The label for version current"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.入门": {
|
||||
@@ -11,6 +11,14 @@
|
||||
"message": "安装指南",
|
||||
"description": "The label for category 安装指南 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.其他指南": {
|
||||
"message": "其他指南",
|
||||
"description": "The label for category 其他指南 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.用户指南": {
|
||||
"message": "用户指南",
|
||||
"description": "The label for category 用户指南 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.开发者指南": {
|
||||
"message": "开发者指南",
|
||||
"description": "The label for category 开发者指南 in sidebar tutorialSidebar"
|
||||
@@ -27,6 +35,14 @@
|
||||
"message": "主题开发",
|
||||
"description": "The label for category 主题开发 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.模板变量": {
|
||||
"message": "模板变量",
|
||||
"description": "The label for category 模板变量 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.Finder API": {
|
||||
"message": "Finder API",
|
||||
"description": "The label for category Finder API in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.参与贡献": {
|
||||
"message": "参与贡献",
|
||||
"description": "The label for category 参与贡献 in sidebar tutorialSidebar"
|
||||
|
||||
50
i18n/zh-Hans/docusaurus-plugin-content-docs/version-2.0.json
Normal file
50
i18n/zh-Hans/docusaurus-plugin-content-docs/version-2.0.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"version.label": {
|
||||
"message": "2.0",
|
||||
"description": "The label for version 2.0"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.入门": {
|
||||
"message": "入门",
|
||||
"description": "The label for category 入门 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.安装指南": {
|
||||
"message": "安装指南",
|
||||
"description": "The label for category 安装指南 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.其他指南": {
|
||||
"message": "其他指南",
|
||||
"description": "The label for category 其他指南 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.用户指南": {
|
||||
"message": "用户指南",
|
||||
"description": "The label for category 用户指南 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.开发者指南": {
|
||||
"message": "开发者指南",
|
||||
"description": "The label for category 开发者指南 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.系统开发": {
|
||||
"message": "系统开发",
|
||||
"description": "The label for category 系统开发 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.插件开发": {
|
||||
"message": "插件开发",
|
||||
"description": "The label for category 插件开发 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.主题开发": {
|
||||
"message": "主题开发",
|
||||
"description": "The label for category 主题开发 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.模板变量": {
|
||||
"message": "模板变量",
|
||||
"description": "The label for category 模板变量 in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.Finder API": {
|
||||
"message": "Finder API",
|
||||
"description": "The label for category Finder API in sidebar tutorialSidebar"
|
||||
},
|
||||
"sidebar.tutorialSidebar.category.参与贡献": {
|
||||
"message": "参与贡献",
|
||||
"description": "The label for category 参与贡献 in sidebar tutorialSidebar"
|
||||
}
|
||||
}
|
||||
@@ -18,13 +18,13 @@ description: 使用 Docker Compose 部署
|
||||
|
||||
## 创建容器组
|
||||
|
||||
可用的 Halo 2.0.0 的 Docker 镜像:
|
||||
可用的 Halo 2.0.1 的 Docker 镜像:
|
||||
|
||||
- [halohub/halo](https://hub.docker.com/r/halohub/halo)
|
||||
- [ghcr.io/halo-dev/halo](https://github.com/halo-dev/halo/pkgs/container/halo)
|
||||
|
||||
:::info 注意
|
||||
目前 Halo 2.0 并未更新 Docker 的 latest 标签镜像,主要因为 2.0 不兼容 1.x 版本,防止使用者误操作。我们推荐使用固定版本的标签,比如 `halohub/halo:2.0.0`。
|
||||
目前 Halo 2.0 并未更新 Docker 的 latest 标签镜像,主要因为 2.0 不兼容 1.x 版本,防止使用者误操作。我们推荐使用固定版本的标签,比如 `halohub/halo:2.0.1`。
|
||||
:::
|
||||
|
||||
1. 在系统任意位置创建一个文件夹,此文档以 `~/halo` 为例。
|
||||
@@ -52,7 +52,7 @@ description: 使用 Docker Compose 部署
|
||||
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo:2.0.0
|
||||
image: halohub/halo:2.0.1
|
||||
container_name: halo
|
||||
restart: on-failure:3
|
||||
depends_on:
|
||||
@@ -108,7 +108,7 @@ description: 使用 Docker Compose 部署
|
||||
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo:2.0.0
|
||||
image: halohub/halo:2.0.1
|
||||
container_name: halo
|
||||
restart: on-failure:3
|
||||
depends_on:
|
||||
@@ -169,7 +169,7 @@ description: 使用 Docker Compose 部署
|
||||
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo:2.0.0
|
||||
image: halohub/halo:2.0.1
|
||||
container_name: halo
|
||||
restart: on-failure:3
|
||||
volumes:
|
||||
@@ -226,7 +226,7 @@ description: 使用 Docker Compose 部署
|
||||
```yaml {3}
|
||||
services:
|
||||
halo:
|
||||
image: halohub/halo:2.0.0
|
||||
image: halohub/halo:2.0.1
|
||||
container_name: halo
|
||||
```
|
||||
|
||||
|
||||
@@ -23,13 +23,13 @@ description: 使用 Docker 部署
|
||||
|
||||
## 使用 Docker 镜像
|
||||
|
||||
可用的 Halo 2.0.0 的 Docker 镜像:
|
||||
可用的 Halo 2.0.1 的 Docker 镜像:
|
||||
|
||||
- [halohub/halo](https://hub.docker.com/r/halohub/halo)
|
||||
- [ghcr.io/halo-dev/halo](https://github.com/halo-dev/halo/pkgs/container/halo)
|
||||
|
||||
:::info 注意
|
||||
目前 Halo 2.0 并未更新 Docker 的 latest 标签镜像,主要因为 2.0 不兼容 1.x 版本,防止使用者误操作。我们推荐使用固定版本的标签,比如 `halohub/halo:2.0.0`。
|
||||
目前 Halo 2.0 并未更新 Docker 的 latest 标签镜像,主要因为 2.0 不兼容 1.x 版本,防止使用者误操作。我们推荐使用固定版本的标签,比如 `halohub/halo:2.0.1`。
|
||||
:::
|
||||
|
||||
1. 创建容器
|
||||
@@ -42,7 +42,7 @@ description: 使用 Docker 部署
|
||||
-v ~/.halo2:/root/.halo2 \
|
||||
-e HALO_EXTERNAL_URL=http://localhost:8090/ \
|
||||
-e HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD=P@88w0rd \
|
||||
halohub/halo:2.0.0
|
||||
halohub/halo:2.0.1
|
||||
```
|
||||
|
||||
:::info
|
||||
|
||||
@@ -34,7 +34,7 @@ slug: /
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
docker run -it -d --name halo-next -p 8090:8090 -v ~/.halo2:/root/.halo2 --restart=unless-stopped halohub/halo:2.0.0
|
||||
docker run -it -d --name halo-next -p 8090:8090 -v ~/.halo2:/root/.halo2 --restart=unless-stopped halohub/halo:2.0.1
|
||||
```
|
||||
|
||||
详细部署文档请查阅:<https://docs.halo.run/getting-started/install/docker-compose>
|
||||
|
||||
@@ -63,7 +63,7 @@ server {
|
||||
-v ~/.halo2.1:/root/.halo2 \
|
||||
-e HALO_EXTERNAL_URL=http://localhost:8090/ \
|
||||
-e HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD=P@88w0rd \
|
||||
halohub/halo:2.0.0
|
||||
halohub/halo:2.0.1
|
||||
|
||||
# 第二个 Halo 容器
|
||||
docker run \
|
||||
@@ -73,7 +73,7 @@ server {
|
||||
-v ~/.halo2.2:/root/.halo2 \
|
||||
-e HALO_EXTERNAL_URL=http://localhost:8090/ \
|
||||
-e HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD=P@88w0rd \
|
||||
halohub/halo:2.0.0
|
||||
halohub/halo:2.0.1
|
||||
```
|
||||
|
||||
更多 Docker 相关的教程请参考:[使用 Docker 部署 Halo](../getting-started/install/docker.md)
|
||||
|
||||
Reference in New Issue
Block a user