docs: update documentation for Halo 2.9 (#246)

为 Halo 2.9.0 更新文档。

/kind documentation

```release-note
None 
```
This commit is contained in:
Ryan Wang
2023-09-01 11:48:12 +08:00
committed by GitHub
parent 32163df337
commit f1b641dc12
111 changed files with 9265 additions and 118 deletions

View File

@@ -28,7 +28,7 @@ git checkout v2.4.0
```
:::tip
请务必按照以上要求切换到最新的 tag而不是直接使用 main 分支构建main 分支是我们的开发分支。此文档以 `2.8.0` 为例,查看最新的 tag 可使用 `git tag --column` 查看。
请务必按照以上要求切换到最新的 tag而不是直接使用 main 分支构建main 分支是我们的开发分支。此文档以 `2.9.0` 为例,查看最新的 tag 可使用 `git tag --column` 查看。
:::
:::warning
@@ -63,7 +63,7 @@ pnpm build
## 构建 Fat Jar
构建之前需要修改 `gradle.properties` 中的 `version` 为当前 tag 的版本号,如:`version=2.8.0`
构建之前需要修改 `gradle.properties` 中的 `version` 为当前 tag 的版本号,如:`version=2.9.0`
```bash
cd path/to/halo
@@ -89,18 +89,18 @@ cd path/to/halo
./gradlew clean build -x check
```
构建完成之后,在 halo 项目下产生的 `application/build/libs/halo-2.8.0.jar` 即为构建完成的文件。
构建完成之后,在 halo 项目下产生的 `application/build/libs/halo-2.9.0.jar` 即为构建完成的文件。
## 构建 Docker 镜像
在进行之前,请确保已经完成上述操作,最终需要确认在 halo 项目的 `application/build/libs/` 目录已经包含了 `halo-2.8.0.jar` 文件。
在进行之前,请确保已经完成上述操作,最终需要确认在 halo 项目的 `application/build/libs/` 目录已经包含了 `halo-2.9.0.jar` 文件。
```bash
cd path/to/halo
```
```bash
docker build -t halo-dev/halo:2.8.0 .
docker build -t halo-dev/halo:2.9.0 .
```
```bash

View File

@@ -107,16 +107,3 @@ halo:
```
5. 最终访问 `http://localhost:8090/console` 即可进入控制台。访问 `http://localhost:8090` 即可进入站点首页。
:::info
开发环境下,超级管理员的默认用户名为 `admin`,默认密码为 `admin`。也可通过修改 `application-dev.yaml` 配置文件进行更改:
```yaml
halo:
security:
initializer:
super-admin-username: admin
super-admin-password: admin
```
:::