From 2f7d104417a350dde1423ba751cca15252e431ed Mon Sep 17 00:00:00 2001
From: Lunny Xiao <xiaolunwen@gmail.com>
Date: Sat, 31 Aug 2024 23:36:04 -0700
Subject: [PATCH] Fix some versions

---
 docs/installation/from-source.md                       |  6 +++---
 docs/installation/with-docker-rootless.md              |  2 +-
 docs/installation/with-docker.md                       |  2 +-
 docusaurus.config.js                                   | 10 ++++++++++
 .../current/installation/from-source.md                |  6 +++---
 .../current/installation/with-docker-rootless.md       |  2 +-
 .../current/installation/with-docker.md                |  2 +-
 .../version-1.19/installation/from-source.md           |  6 +++---
 .../version-1.19/installation/with-docker-rootless.md  |  2 +-
 .../version-1.19/installation/with-docker.md           |  2 +-
 .../version-1.20/installation/from-source.md           |  6 +++---
 .../version-1.20/installation/with-docker-rootless.md  |  2 +-
 .../version-1.20/installation/with-docker.md           |  2 +-
 .../version-1.21/installation/from-source.md           |  6 +++---
 .../version-1.21/installation/with-docker-rootless.md  |  2 +-
 .../version-1.21/installation/with-docker.md           |  2 +-
 .../version-1.22/installation/from-source.md           |  6 +++---
 .../version-1.22/installation/with-docker-rootless.md  |  2 +-
 .../version-1.22/installation/with-docker.md           |  2 +-
 .../version-1.19/installation/from-source.md           |  6 +++---
 .../version-1.19/installation/with-docker-rootless.md  |  2 +-
 .../version-1.19/installation/with-docker.md           |  2 +-
 .../version-1.20/installation/from-source.md           |  6 +++---
 .../version-1.20/installation/with-docker-rootless.md  |  2 +-
 .../version-1.20/installation/with-docker.md           |  2 +-
 .../version-1.21/installation/from-source.md           |  6 +++---
 .../version-1.21/installation/with-docker-rootless.md  |  2 +-
 .../version-1.21/installation/with-docker.md           |  2 +-
 .../version-1.22/installation/from-source.md           |  6 +++---
 .../version-1.22/installation/with-docker-rootless.md  |  2 +-
 .../version-1.22/installation/with-docker.md           |  2 +-
 31 files changed, 60 insertions(+), 50 deletions(-)

diff --git a/docs/installation/from-source.md b/docs/installation/from-source.md
index 976476c..c0f3158 100644
--- a/docs/installation/from-source.md
+++ b/docs/installation/from-source.md
@@ -45,7 +45,7 @@ To work with tagged releases, the following commands can be used:
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
 To validate a Pull Request, first enable the new branch (`xyz` is the PR id;
@@ -55,14 +55,14 @@ for example `2663` for [#2663](https://github.com/go-gitea/gitea/pull/2663)):
 git fetch origin pull/xyz/head:pr-xyz
 ```
 
-To build Gitea from source at a specific tagged release (like v@version@), list the
+To build Gitea from source at a specific tagged release (like @sourceVersion@), list the
 available tags and check out the specific tag.
 
 List available tags with the following.
 
 ```bash
 git tag -l
-git checkout v@version@  # or git checkout pr-xyz
+git checkout @sourceVersion@  # or git checkout pr-xyz
 ```
 
 ## Build
diff --git a/docs/installation/with-docker-rootless.md b/docs/installation/with-docker-rootless.md
index e8520f4..e1a45dd 100644
--- a/docs/installation/with-docker-rootless.md
+++ b/docs/installation/with-docker-rootless.md
@@ -58,7 +58,7 @@ sudo chown 1000:1000 config/ data/
 
 > If you don't give the volume correct permissions, the container may not start.
 
-For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@version@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
+For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@dockerVersion@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
 
 ## Custom port
 
diff --git a/docs/installation/with-docker.md b/docs/installation/with-docker.md
index 8dde2f9..e60d6f6 100644
--- a/docs/installation/with-docker.md
+++ b/docs/installation/with-docker.md
@@ -23,7 +23,7 @@ image as a service. Since there is no database available, one can be initialized
 Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`.
 Note that the volume should be owned by the user/group with the UID/GID specified in the config file.
 If you don't give the volume correct permissions, the container may not start.
-For a stable release you can use `:latest`, `:1` or specify a certain release like `:@version@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
+For a stable release you can use `:latest`, `:1` or specify a certain release like `:@dockerVersion@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
 
 ```yaml
 version: "3"
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 368df88..9dfe85a 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -67,6 +67,8 @@ const globalVariables = {
     'minGoVersion': '1.22',
     'minNodeVersion': '18',
     'version': 'main-nightly',
+    'sourceVersion': 'main',
+    'sourceBranch': 'main',
     'dockerVersion': 'nightly',
     'displayVersion': '1.23-dev'
   },
@@ -75,6 +77,8 @@ const globalVariables = {
     'minGoVersion': '1.22',
     'minNodeVersion': '18',
     'version': '1.22.1',
+    'sourceVersion': 'v1.22.1',
+    'sourceBranch': 'release/v1.22',
     'dockerVersion': '1.22.1',
     'displayVersion': '1.22.1'
   },
@@ -83,6 +87,8 @@ const globalVariables = {
     'minGoVersion': '1.21',
     'minNodeVersion': '18',
     'version': '1.21.11',
+    'sourceVersion': 'v1.21.11',
+    'sourceBranch': 'release/v1.21',
     'dockerVersion': '1.21.11',
     'displayVersion': '1.21.11'
   },
@@ -91,6 +97,8 @@ const globalVariables = {
     'minGoVersion': '1.20',
     'minNodeVersion': '16',
     'version': '1.20.6',
+    'sourceVersion': 'v1.20.6',
+    'sourceBranch': 'release/v1.20',
     'dockerVersion': '1.20.6',
     'displayVersion': '1.20.6'
   },
@@ -99,6 +107,8 @@ const globalVariables = {
     'minGoVersion': '1.19',
     'minNodeVersion': '14',
     'version': '1.19.4',
+    'sourceVersion': 'v1.19.4',
+    'sourceBranch': 'release/v1.19',
     'dockerVersion': '1.19.4',
     'displayVersion': '1.19.4'
   }
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/from-source.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/from-source.md
index f29ef10..8e51c54 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/from-source.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/from-source.md
@@ -30,7 +30,7 @@ git clone https://github.com/go-gitea/gitea
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
 要验证一个拉取请求(Pull Request, PR),要先启用新的分支(其中 `xyz` 是 PR 的 ID;例如,对于 [#2663](https://github.com/go-gitea/gitea/pull/2663),ID是 `2663 `):
@@ -39,12 +39,12 @@ git checkout v@version@
 git fetch origin pull/xyz/head:pr-xyz
 ```
 
-要以指定发行版本(如 v@version@ )的源代码来构建 Gitea,可执行以下命令列出可用的版本并选择某个版本签出。
+要以指定发行版本(如 @sourceVersion@ )的源代码来构建 Gitea,可执行以下命令列出可用的版本并选择某个版本签出。
 使用以下命令列出可用的版本:
 
 ```bash
 git tag -l
-git checkout v@version@  # or git checkout pr-xyz
+git checkout @sourceVersion@  # or git checkout pr-xyz
 ```
 
 ## 构建
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/with-docker-rootless.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/with-docker-rootless.md
index 7666d11..3a38018 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/with-docker-rootless.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/with-docker-rootless.md
@@ -53,7 +53,7 @@ sudo chown 1000:1000 config/ data/
 
 > 如果未为卷设置正确的权限,容器可能无法启动。
 
-对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@version@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
+对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@dockerVersion@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
 
 ## 自定义端口
 
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/with-docker.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/with-docker.md
index e6cc197..b7bf4ce 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/with-docker.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/with-docker.md
@@ -14,7 +14,7 @@ Gitea 在其 Docker Hub 组织内提供自动更新的 Docker 镜像。可以始
 
 ## 基本
 
-最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@version@`。
+最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@dockerVersion@`。
 
 ```yaml
 version: "3"
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/from-source.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/from-source.md
index 64ee9c2..aebffe7 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/from-source.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/from-source.md
@@ -25,14 +25,14 @@ cd gitea
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
-最后,你也可以直接使用标签版本如 `v@version@`。你可以执行以下命令列出可用的版本并选择某个版本签出:
+最后,你也可以直接使用标签版本如 `@sourceVersion@`。你可以执行以下命令列出可用的版本并选择某个版本签出:
 
 ```bash
 git tag -l
-git checkout v@version@
+git checkout @sourceVersion@
 ```
 
 ## 编译
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/with-docker-rootless.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/with-docker-rootless.md
index e5b74ca..7fdac22 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/with-docker-rootless.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/with-docker-rootless.md
@@ -53,7 +53,7 @@ sudo chown 1000:1000 config/ data/
 
 > 如果未为卷设置正确的权限,容器可能无法启动。
 
-对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@version@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
+对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@dockerVersion@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
 
 ## 自定义端口
 
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/with-docker.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/with-docker.md
index e4edb88..9be0833 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/with-docker.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.19/installation/with-docker.md
@@ -12,7 +12,7 @@ Gitea 在其 Docker Hub 组织内提供自动更新的 Docker 镜像。可以始
 
 ## 基本
 
-最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@version@`。
+最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@dockerVersion@`。
 
 ```yaml
 version: "3"
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/from-source.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/from-source.md
index bdc34ae..d7bd4eb 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/from-source.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/from-source.md
@@ -30,14 +30,14 @@ cd gitea
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
-最后,你也可以直接使用标签版本如 `v@version@`。你可以执行以下命令列出可用的版本并选择某个版本签出:
+最后,你也可以直接使用标签版本如 `@sourceVersion@`。你可以执行以下命令列出可用的版本并选择某个版本签出:
 
 ```bash
 git tag -l
-git checkout v@version@
+git checkout @sourceVersion@
 ```
 
 ## 编译
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/with-docker-rootless.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/with-docker-rootless.md
index 7666d11..3a38018 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/with-docker-rootless.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/with-docker-rootless.md
@@ -53,7 +53,7 @@ sudo chown 1000:1000 config/ data/
 
 > 如果未为卷设置正确的权限,容器可能无法启动。
 
-对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@version@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
+对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@dockerVersion@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
 
 ## 自定义端口
 
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/with-docker.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/with-docker.md
index f24cb95..2dad81e 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/with-docker.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.20/installation/with-docker.md
@@ -17,7 +17,7 @@ Gitea 在其 Docker Hub 组织内提供自动更新的 Docker 镜像。可以始
 
 ## 基本
 
-最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@version@`。
+最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@dockerVersion@`。
 
 ```yaml
 version: "3"
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/from-source.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/from-source.md
index d1de77e..91c1608 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/from-source.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/from-source.md
@@ -33,7 +33,7 @@ git clone https://github.com/go-gitea/gitea
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
 要验证一个拉取请求(Pull Request, PR),要先启用新的分支(其中 `xyz` 是 PR 的 ID;例如,对于 [#2663](https://github.com/go-gitea/gitea/pull/2663),ID是 `2663 `):
@@ -42,12 +42,12 @@ git checkout v@version@
 git fetch origin pull/xyz/head:pr-xyz
 ```
 
-要以指定发行版本(如 v@version@ )的源代码来构建 Gitea,可执行以下命令列出可用的版本并选择某个版本签出。
+要以指定发行版本(如 @sourceVersion@ )的源代码来构建 Gitea,可执行以下命令列出可用的版本并选择某个版本签出。
 使用以下命令列出可用的版本:
 
 ```bash
 git tag -l
-git checkout v@version@  # or git checkout pr-xyz
+git checkout @sourceVersion@  # or git checkout pr-xyz
 ```
 
 ## 构建
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/with-docker-rootless.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/with-docker-rootless.md
index 7666d11..3a38018 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/with-docker-rootless.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/with-docker-rootless.md
@@ -53,7 +53,7 @@ sudo chown 1000:1000 config/ data/
 
 > 如果未为卷设置正确的权限,容器可能无法启动。
 
-对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@version@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
+对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@dockerVersion@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
 
 ## 自定义端口
 
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/with-docker.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/with-docker.md
index f942caa..15337a5 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/with-docker.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.21/installation/with-docker.md
@@ -17,7 +17,7 @@ Gitea 在其 Docker Hub 组织内提供自动更新的 Docker 镜像。可以始
 
 ## 基本
 
-最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@version@`。
+最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@dockerVersion@`。
 
 ```yaml
 version: "3"
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/from-source.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/from-source.md
index 5be2398..fe57684 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/from-source.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/from-source.md
@@ -33,7 +33,7 @@ git clone https://github.com/go-gitea/gitea
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
 要验证一个拉取请求(Pull Request, PR),要先启用新的分支(其中 `xyz` 是 PR 的 ID;例如,对于 [#2663](https://github.com/go-gitea/gitea/pull/2663),ID是 `2663 `):
@@ -42,12 +42,12 @@ git checkout v@version@
 git fetch origin pull/xyz/head:pr-xyz
 ```
 
-要以指定发行版本(如 v@version@ )的源代码来构建 Gitea,可执行以下命令列出可用的版本并选择某个版本签出。
+要以指定发行版本(如 @sourceVersion@ )的源代码来构建 Gitea,可执行以下命令列出可用的版本并选择某个版本签出。
 使用以下命令列出可用的版本:
 
 ```bash
 git tag -l
-git checkout v@version@  # or git checkout pr-xyz
+git checkout @sourceVersion@  # or git checkout pr-xyz
 ```
 
 ## 构建
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/with-docker-rootless.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/with-docker-rootless.md
index 7666d11..3a38018 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/with-docker-rootless.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/with-docker-rootless.md
@@ -53,7 +53,7 @@ sudo chown 1000:1000 config/ data/
 
 > 如果未为卷设置正确的权限,容器可能无法启动。
 
-对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@version@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
+对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@dockerVersion@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
 
 ## 自定义端口
 
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/with-docker.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/with-docker.md
index f942caa..15337a5 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/with-docker.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/installation/with-docker.md
@@ -17,7 +17,7 @@ Gitea 在其 Docker Hub 组织内提供自动更新的 Docker 镜像。可以始
 
 ## 基本
 
-最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@version@`。
+最简单的设置只是创建一个卷和一个网络,然后将 `gitea/gitea:latest` 镜像作为服务启动。由于没有可用的数据库,因此可以使用 SQLite3 初始化数据库。创建一个类似 `gitea` 的目录,并将以下内容粘贴到名为 `docker-compose.yml` 的文件中。请注意,该卷应由配置文件中指定的 UID/GID 的用户/组拥有。如果您不授予卷正确的权限,则容器可能无法启动。另请注意,标签 `:latest` 将安装当前的开发版本。对于稳定的发行版,您可以使用 `:1` 或指定某个发行版,例如 `@dockerVersion@`。
 
 ```yaml
 version: "3"
diff --git a/versioned_docs/version-1.19/installation/from-source.md b/versioned_docs/version-1.19/installation/from-source.md
index fb2f420..a06f3fc 100644
--- a/versioned_docs/version-1.19/installation/from-source.md
+++ b/versioned_docs/version-1.19/installation/from-source.md
@@ -51,7 +51,7 @@ To work with tagged releases, the following commands can be used:
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
 To validate a Pull Request, first enable the new branch (`xyz` is the PR id;
@@ -61,14 +61,14 @@ for example `2663` for [#2663](https://github.com/go-gitea/gitea/pull/2663)):
 git fetch origin pull/xyz/head:pr-xyz
 ```
 
-To build Gitea from source at a specific tagged release (like v@version@), list the
+To build Gitea from source at a specific tagged release (like @sourceVersion@), list the
 available tags and check out the specific tag.
 
 List available tags with the following.
 
 ```bash
 git tag -l
-git checkout v@version@  # or git checkout pr-xyz
+git checkout @sourceVersion@  # or git checkout pr-xyz
 ```
 
 ## Build
diff --git a/versioned_docs/version-1.19/installation/with-docker-rootless.md b/versioned_docs/version-1.19/installation/with-docker-rootless.md
index 5dc8928..a61ade8 100644
--- a/versioned_docs/version-1.19/installation/with-docker-rootless.md
+++ b/versioned_docs/version-1.19/installation/with-docker-rootless.md
@@ -56,7 +56,7 @@ sudo chown 1000:1000 config/ data/
 
 > If you don't give the volume correct permissions, the container may not start.
 
-For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@version@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
+For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@dockerVersion@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
 
 ## Custom port
 
diff --git a/versioned_docs/version-1.19/installation/with-docker.md b/versioned_docs/version-1.19/installation/with-docker.md
index ddcebf7..6ccc772 100644
--- a/versioned_docs/version-1.19/installation/with-docker.md
+++ b/versioned_docs/version-1.19/installation/with-docker.md
@@ -21,7 +21,7 @@ image as a service. Since there is no database available, one can be initialized
 Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`.
 Note that the volume should be owned by the user/group with the UID/GID specified in the config file.
 If you don't give the volume correct permissions, the container may not start.
-For a stable release you can use `:latest`, `:1` or specify a certain release like `:@version@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
+For a stable release you can use `:latest`, `:1` or specify a certain release like `:@dockerVersion@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
 
 ```yaml
 version: "3"
diff --git a/versioned_docs/version-1.20/installation/from-source.md b/versioned_docs/version-1.20/installation/from-source.md
index 74070cc..7057187 100644
--- a/versioned_docs/version-1.20/installation/from-source.md
+++ b/versioned_docs/version-1.20/installation/from-source.md
@@ -55,7 +55,7 @@ To work with tagged releases, the following commands can be used:
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
 To validate a Pull Request, first enable the new branch (`xyz` is the PR id;
@@ -65,14 +65,14 @@ for example `2663` for [#2663](https://github.com/go-gitea/gitea/pull/2663)):
 git fetch origin pull/xyz/head:pr-xyz
 ```
 
-To build Gitea from source at a specific tagged release (like v@version@), list the
+To build Gitea from source at a specific tagged release (like @sourceVersion@), list the
 available tags and check out the specific tag.
 
 List available tags with the following.
 
 ```bash
 git tag -l
-git checkout v@version@  # or git checkout pr-xyz
+git checkout @sourceVersion@  # or git checkout pr-xyz
 ```
 
 ## Build
diff --git a/versioned_docs/version-1.20/installation/with-docker-rootless.md b/versioned_docs/version-1.20/installation/with-docker-rootless.md
index e8520f4..e1a45dd 100644
--- a/versioned_docs/version-1.20/installation/with-docker-rootless.md
+++ b/versioned_docs/version-1.20/installation/with-docker-rootless.md
@@ -58,7 +58,7 @@ sudo chown 1000:1000 config/ data/
 
 > If you don't give the volume correct permissions, the container may not start.
 
-For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@version@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
+For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@dockerVersion@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
 
 ## Custom port
 
diff --git a/versioned_docs/version-1.20/installation/with-docker.md b/versioned_docs/version-1.20/installation/with-docker.md
index 1a163d1..05ebed3 100644
--- a/versioned_docs/version-1.20/installation/with-docker.md
+++ b/versioned_docs/version-1.20/installation/with-docker.md
@@ -25,7 +25,7 @@ image as a service. Since there is no database available, one can be initialized
 Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`.
 Note that the volume should be owned by the user/group with the UID/GID specified in the config file.
 If you don't give the volume correct permissions, the container may not start.
-For a stable release you can use `:latest`, `:1` or specify a certain release like `:@version@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
+For a stable release you can use `:latest`, `:1` or specify a certain release like `:@dockerVersion@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
 
 ```yaml
 version: "3"
diff --git a/versioned_docs/version-1.21/installation/from-source.md b/versioned_docs/version-1.21/installation/from-source.md
index 10bbadc..9c4bf40 100644
--- a/versioned_docs/version-1.21/installation/from-source.md
+++ b/versioned_docs/version-1.21/installation/from-source.md
@@ -47,7 +47,7 @@ To work with tagged releases, the following commands can be used:
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
 To validate a Pull Request, first enable the new branch (`xyz` is the PR id;
@@ -57,14 +57,14 @@ for example `2663` for [#2663](https://github.com/go-gitea/gitea/pull/2663)):
 git fetch origin pull/xyz/head:pr-xyz
 ```
 
-To build Gitea from source at a specific tagged release (like v@version@), list the
+To build Gitea from source at a specific tagged release (like @sourceVersion@), list the
 available tags and check out the specific tag.
 
 List available tags with the following.
 
 ```bash
 git tag -l
-git checkout v@version@  # or git checkout pr-xyz
+git checkout @sourceVersion@  # or git checkout pr-xyz
 ```
 
 ## Build
diff --git a/versioned_docs/version-1.21/installation/with-docker-rootless.md b/versioned_docs/version-1.21/installation/with-docker-rootless.md
index 215dc03..4c1e3e2 100644
--- a/versioned_docs/version-1.21/installation/with-docker-rootless.md
+++ b/versioned_docs/version-1.21/installation/with-docker-rootless.md
@@ -58,7 +58,7 @@ sudo chown 1000:1000 config/ data/
 
 > If you don't give the volume correct permissions, the container may not start.
 
-For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@version@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
+For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@dockerVersion@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
 
 ## Custom port
 
diff --git a/versioned_docs/version-1.21/installation/with-docker.md b/versioned_docs/version-1.21/installation/with-docker.md
index 3a220b3..6cebda6 100644
--- a/versioned_docs/version-1.21/installation/with-docker.md
+++ b/versioned_docs/version-1.21/installation/with-docker.md
@@ -25,7 +25,7 @@ image as a service. Since there is no database available, one can be initialized
 Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`.
 Note that the volume should be owned by the user/group with the UID/GID specified in the config file.
 If you don't give the volume correct permissions, the container may not start.
-For a stable release you can use `:latest`, `:1` or specify a certain release like `:@version@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
+For a stable release you can use `:latest`, `:1` or specify a certain release like `:@dockerVersion@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
 
 ```yaml
 version: "3"
diff --git a/versioned_docs/version-1.22/installation/from-source.md b/versioned_docs/version-1.22/installation/from-source.md
index 1bccffa..bb89cd2 100644
--- a/versioned_docs/version-1.22/installation/from-source.md
+++ b/versioned_docs/version-1.22/installation/from-source.md
@@ -47,7 +47,7 @@ To work with tagged releases, the following commands can be used:
 
 ```bash
 git branch -a
-git checkout v@version@
+git checkout @sourceBranch@
 ```
 
 To validate a Pull Request, first enable the new branch (`xyz` is the PR id;
@@ -57,14 +57,14 @@ for example `2663` for [#2663](https://github.com/go-gitea/gitea/pull/2663)):
 git fetch origin pull/xyz/head:pr-xyz
 ```
 
-To build Gitea from source at a specific tagged release (like v@version@), list the
+To build Gitea from source at a specific tagged release (like @sourceVersion@), list the
 available tags and check out the specific tag.
 
 List available tags with the following.
 
 ```bash
 git tag -l
-git checkout v@version@  # or git checkout pr-xyz
+git checkout @sourceVersion@  # or git checkout pr-xyz
 ```
 
 ## Build
diff --git a/versioned_docs/version-1.22/installation/with-docker-rootless.md b/versioned_docs/version-1.22/installation/with-docker-rootless.md
index e8520f4..e1a45dd 100644
--- a/versioned_docs/version-1.22/installation/with-docker-rootless.md
+++ b/versioned_docs/version-1.22/installation/with-docker-rootless.md
@@ -58,7 +58,7 @@ sudo chown 1000:1000 config/ data/
 
 > If you don't give the volume correct permissions, the container may not start.
 
-For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@version@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
+For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:@dockerVersion@-rootless`, but if you'd like to use the latest development version then `:nightly-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly-rootless`)
 
 ## Custom port
 
diff --git a/versioned_docs/version-1.22/installation/with-docker.md b/versioned_docs/version-1.22/installation/with-docker.md
index 19c7979..440c981 100644
--- a/versioned_docs/version-1.22/installation/with-docker.md
+++ b/versioned_docs/version-1.22/installation/with-docker.md
@@ -25,7 +25,7 @@ image as a service. Since there is no database available, one can be initialized
 Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`.
 Note that the volume should be owned by the user/group with the UID/GID specified in the config file.
 If you don't give the volume correct permissions, the container may not start.
-For a stable release you can use `:latest`, `:1` or specify a certain release like `:@version@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
+For a stable release you can use `:latest`, `:1` or specify a certain release like `:@dockerVersion@`, but if you'd like to use the latest development version of Gitea then you could use the `:nightly` tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-nightly` tag, where x is the minor version of Gitea. (e.g. `:1.16-nightly`)
 
 ```yaml
 version: "3"