summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/installation/from-source.zh-cn.md
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-08-22 20:55:06 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2019-08-23 09:55:06 +0800
commit4ea9a377db86e4b78d9be2f5d481f69a06c78856 (patch)
tree6bfc76f7b6eada8a53a529260b1d33cf17cc84ec /docs/content/doc/installation/from-source.zh-cn.md
parent9f58187f1176d00e10b2d8fb0fb7fae1d1bcd17b (diff)
downloadgitea-4ea9a377db86e4b78d9be2f5d481f69a06c78856.tar.gz
gitea-4ea9a377db86e4b78d9be2f5d481f69a06c78856.zip
Add config option and shortcode for Gitea version (#7940)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'docs/content/doc/installation/from-source.zh-cn.md')
-rw-r--r--docs/content/doc/installation/from-source.zh-cn.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/doc/installation/from-source.zh-cn.md b/docs/content/doc/installation/from-source.zh-cn.md
index 99b2c62b92..6281b45bdc 100644
--- a/docs/content/doc/installation/from-source.zh-cn.md
+++ b/docs/content/doc/installation/from-source.zh-cn.md
@@ -32,14 +32,14 @@ cd $GOPATH/src/code.gitea.io/gitea
```
git branch -a
-git checkout v1.0
+git checkout v{{< version >}}
```
-最后,你也可以直接使用标签版本如 `v1.0.0`。你可以执行以下命令列出可用的版本并选择某个版本签出:
+最后,你也可以直接使用标签版本如 `v{{< version >}}`。你可以执行以下命令列出可用的版本并选择某个版本签出:
```
git tag -l
-git checkout v1.0.0
+git checkout v{{< version >}}
```
## 编译