Skip to content

Commit 0f95f67

Browse files
authored
docs: update documentations for 2.23 (#562)
Signed-off-by: Ryan Wang <i@ryanc.cc>
1 parent fd4e613 commit 0f95f67

File tree

213 files changed

+21562
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+21562
-53
lines changed

docs/developer-guide/core/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ git checkout ${branch_name}
3333

3434
## 构建 Fat Jar
3535

36-
构建之前需要修改 `gradle.properties` 中的 `version` 属性(推荐遵循 [SemVer 规范](https://semver.org/)),例如:`version=2.22.0`
36+
构建之前需要修改 `gradle.properties` 中的 `version` 属性(推荐遵循 [SemVer 规范](https://semver.org/)),例如:`version=2.23.0`
3737

3838
```bash
3939
cd path/to/halo

docs/getting-started/install/config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Halo 支持通过多种方式进行配置,目前 [Docker Compose 部署文档]
1616
```yaml {5-10}
1717
services:
1818
halo:
19-
image: registry.fit2cloud.com/halo/halo-pro:2.22
19+
image: registry.fit2cloud.com/halo/halo-pro:2.23
2020
...
2121
command:
2222
- --spring.r2dbc.url=r2dbc:pool:postgresql://halodb/halo
@@ -216,7 +216,7 @@ version: "3"
216216
217217
services:
218218
halo:
219-
image: registry.fit2cloud.com/halo/halo-pro:2.22
219+
image: registry.fit2cloud.com/halo/halo-pro:2.23
220220
restart: on-failure:3
221221
depends_on:
222222
halodb:
@@ -255,7 +255,7 @@ version: "3"
255255
256256
services:
257257
halo:
258-
image: registry.fit2cloud.com/halo/halo-pro:2.22
258+
image: registry.fit2cloud.com/halo/halo-pro:2.23
259259
restart: on-failure:3
260260
depends_on:
261261
halodb:

docs/getting-started/install/docker-compose.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import DockerRegistryList from "./slots/_docker-registry-list.md"
4848

4949
services:
5050
halo:
51-
image: registry.fit2cloud.com/halo/halo-pro:2.22
51+
image: registry.fit2cloud.com/halo/halo-pro:2.23
5252
restart: on-failure:3
5353
depends_on:
5454
halodb:
@@ -107,7 +107,7 @@ import DockerRegistryList from "./slots/_docker-registry-list.md"
107107

108108
services:
109109
halo:
110-
image: registry.fit2cloud.com/halo/halo-pro:2.22
110+
image: registry.fit2cloud.com/halo/halo-pro:2.23
111111
restart: on-failure:3
112112
depends_on:
113113
halodb:
@@ -177,7 +177,7 @@ import DockerRegistryList from "./slots/_docker-registry-list.md"
177177

178178
services:
179179
halo:
180-
image: registry.fit2cloud.com/halo/halo-pro:2.22
180+
image: registry.fit2cloud.com/halo/halo-pro:2.23
181181
restart: on-failure:3
182182
volumes:
183183
- ./halo2:/root/.halo2
@@ -203,7 +203,7 @@ import DockerRegistryList from "./slots/_docker-registry-list.md"
203203

204204
services:
205205
halo:
206-
image: registry.fit2cloud.com/halo/halo-pro:2.22
206+
image: registry.fit2cloud.com/halo/halo-pro:2.23
207207
restart: on-failure:3
208208
network_mode: "host"
209209
volumes:
@@ -271,7 +271,7 @@ import DockerRegistryList from "./slots/_docker-registry-list.md"
271271
```yaml {3}
272272
services:
273273
halo:
274-
image: registry.fit2cloud.com/halo/halo-pro:2.22
274+
image: registry.fit2cloud.com/halo/halo-pro:2.23
275275
```
276276
277277
```bash
@@ -335,7 +335,7 @@ networks:
335335

336336
services:
337337
halo:
338-
image: registry.fit2cloud.com/halo/halo-pro:2.22
338+
image: registry.fit2cloud.com/halo/halo-pro:2.23
339339
restart: on-failure:3
340340
volumes:
341341
- ./halo2:/root/.halo2

docs/getting-started/install/docker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import DockerRegistryList from "./slots/_docker-registry-list.md"
3131
1. 创建容器
3232

3333
```bash
34-
docker run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 -e JVM_OPTS="-Xmx256m -Xms256m" registry.fit2cloud.com/halo/halo-pro:2.22
34+
docker run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 -e JVM_OPTS="-Xmx256m -Xms256m" registry.fit2cloud.com/halo/halo-pro:2.23
3535
```
3636

3737
:::info
@@ -66,7 +66,7 @@ import DockerRegistryList from "./slots/_docker-registry-list.md"
6666
2. 拉取新版本镜像
6767

6868
```bash
69-
docker pull registry.fit2cloud.com/halo/halo-pro:2.22
69+
docker pull registry.fit2cloud.com/halo/halo-pro:2.23
7070
```
7171

7272
3. 停止运行中的容器
@@ -81,5 +81,5 @@ import DockerRegistryList from "./slots/_docker-registry-list.md"
8181
修改版本号后,按照最初安装的方式,重新创建容器即可。
8282

8383
```bash
84-
docker run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 registry.fit2cloud.com/halo/halo-pro:2.22
84+
docker run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 registry.fit2cloud.com/halo/halo-pro:2.23
8585
```

docs/getting-started/install/jar-file.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ title: 使用 JAR 文件部署
6363
:::
6464

6565
```bash
66-
wget https://dl.halo.run/release/halo-pro-2.22.3.jar -O halo.jar
66+
wget https://dl.halo.run/release/halo-pro-2.23.0.jar -O halo.jar
6767
```
6868

6969
4. 创建 [工作目录](../prepare#工作目录)
@@ -310,7 +310,7 @@ journalctl -n 20 -u halo
310310
3. 下载新版本的 Halo 运行包,覆盖原有的运行包
311311

312312
```bash
313-
wget https://dl.halo.run/release/halo-pro-2.22.3.jar -O /home/halo/app/halo.jar
313+
wget https://dl.halo.run/release/halo-pro-2.23.0.jar -O /home/halo/app/halo.jar
314314
```
315315

316316
:::info

docs/getting-started/install/other/nginxproxymanager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ docker compose up -d
9393

9494
services:
9595
halo:
96-
image: registry.fit2cloud.com/halo/halo-pro:2.22
96+
image: registry.fit2cloud.com/halo/halo-pro:2.23
9797
container_name: halo
9898
restart: on-failure:3
9999
volumes:

docs/getting-started/install/other/traefik.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ networks:
9696
9797
services:
9898
halo:
99-
image: registry.fit2cloud.com/halo/halo-pro:2.22
99+
image: registry.fit2cloud.com/halo/halo-pro:2.23
100100
container_name: halo
101101
restart: on-failure:3
102102
volumes:

docs/getting-started/install/podman.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Podman 采用无守护进程的包容性架构,因此可以更安全、更简
6161

6262
```bash
6363
mkdir -p ~/.halo2
64-
podman run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 registry.fit2cloud.com/halo/halo-pro:2.22
64+
podman run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 registry.fit2cloud.com/halo/halo-pro:2.23
6565
```
6666

6767
:::info
@@ -96,7 +96,7 @@ Podman 采用无守护进程的包容性架构,因此可以更安全、更简
9696
2. 拉取新版本镜像
9797

9898
```bash
99-
podman pull registry.fit2cloud.com/halo/halo-pro:2.22
99+
podman pull registry.fit2cloud.com/halo/halo-pro:2.23
100100
```
101101

102102
3. 停止运行中的容器
@@ -111,7 +111,7 @@ Podman 采用无守护进程的包容性架构,因此可以更安全、更简
111111
修改版本号后,按照最初安装的方式,重新创建容器即可。
112112

113113
```bash
114-
podman run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 registry.fit2cloud.com/halo/halo-pro:2.22
114+
podman run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 registry.fit2cloud.com/halo/halo-pro:2.23
115115
```
116116

117117
## 使用 [Podman Quadlet](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html)
@@ -147,7 +147,7 @@ Environment=SPRING_CONFIG_LOCATION="optional:classpath:/;optional:file:/.halo/"
147147
Environment=TZ=Asia/Shanghai
148148
Volume=/opt/podman-data/halo:/.halo
149149
PublishPort=127.0.0.1:8090:8090
150-
Image=ghcr.io/halo-dev/halo:2.22
150+
Image=ghcr.io/halo-dev/halo:2.23
151151
Exec=--halo.external-url=https://localhost:8090 --spring.sql.init.platform=postgresql --spring.r2dbc.url=r2dbc:pool:postgresql://127.0.0.1:5432/my-db --spring.r2dbc.username=my-user --spring.r2dbc.password=my-password
152152

153153
[Service]
@@ -176,7 +176,7 @@ Podman Quadlet 解析:
176176

177177
`[Container]` 部分:
178178

179-
- `AutoUpdate=registry`指定了自动拉取容器。假设后续 Halo 镜像支持了`latest`标签,你需要`systemctl enable --now podman-auto-update.timer`以启用容器自动更新。本文示例`ghcr.io/halo-dev/halo:2.22`,将会自动更新适用与`2.22`版本的 patch,例如您创建容器时是`2.22.1`,在官方发布`2.22.2`版本时,容器会自动更新到`2.22.2`
179+
- `AutoUpdate=registry`指定了自动拉取容器。假设后续 Halo 镜像支持了`latest`标签,你需要`systemctl enable --now podman-auto-update.timer`以启用容器自动更新。本文示例`ghcr.io/halo-dev/halo:2.23`,将会自动更新适用与`2.23`版本的 patch,例如您创建容器时是`2.23.1`,在官方发布`2.23.2`版本时,容器会自动更新到`2.23.2`
180180
- `ContainerName=`指定了 systemd 将生成的服务名称。
181181
- `User=60000 Group=60000 UserNS=keep-id:uid=60000,gid=60000` 限制容器以 id 60000 的用户运行,提高安全性。注意这个 id 60000 请根据你实际想要运行的用户名来修改,可通过`id user`获得你的用户的 id.
182182
- `Environment=`字段指定了容器的环境变量,其中你需要注意的是`Environment=HALO_WORK_DIR="/.halo"` `Environment=SPRING_CONFIG_LOCATION="optional:classpath:/;optional:file:/.halo/"`这两个变量中的`/.halo`路径。
@@ -219,7 +219,7 @@ AutoUpdate=registry
219219
ContainerName=halo
220220
Volume=/opt/podman-data/halo:/root/.halo
221221
PublishPort=127.0.0.1:8090:8090
222-
Image=ghcr.io/halo-dev/halo:2.22
222+
Image=ghcr.io/halo-dev/halo:2.23
223223
Exec=--halo.external-url=https://localhost:8090 --spring.sql.init.platform=postgresql --spring.r2dbc.url=r2dbc:pool:postgresql://127.0.0.1:5432/my-db --spring.r2dbc.username=my-user --spring.r2dbc.password=my-password
224224

225225
[Service]

docs/getting-started/install/slots/_docker-registry-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ halohub/halo-pro:<version>
1313
halohub/halo:<version>
1414
```
1515

16-
`<version>` 表示 Halo 的具体版本号,比如 `2.22.0`,版本命名方式遵循 [SemVer](https://semver.org/lang/zh-CN/),即 `<major>.<minor>.<patch>`
16+
`<version>` 表示 Halo 的具体版本号,比如 `2.23.0`,版本命名方式遵循 [SemVer](https://semver.org/lang/zh-CN/),即 `<major>.<minor>.<patch>`
1717

1818
除了具体版本号的标签之外,Halo 还提供了 `:<major>``:<major>.<minor>` 的标签,比如:
1919

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ slug: /
4141
如果你的设备有 Docker 环境,可以使用以下命令快速启动一个 Halo 的体验环境:
4242

4343
```bash
44-
docker run -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.22
44+
docker run -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.23
4545
```
4646

4747
或者点击下方按钮使用 [Gitpod](https://gitpod.io/) 启动一个体验环境:

0 commit comments

Comments
 (0)