Use minorVer (#50)

Rather than `version` which is e.g. `1.20` or `1.19` use `minorVer` which is set above as e.g. `1.20.0` or `1.19.4`

https://gitea.com/gitea/gitea-docusaurus/src/commit/78cc25c09d7e47cbedb428ea8ad6351c88e2e7e3/loop_docs.sh#L30
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/50
This commit is contained in:
John Olheiser
2023-07-28 04:41:21 +00:00
parent c24614753e
commit 30a23a1ee4
+1 -1
View File
@@ -65,7 +65,7 @@ for file in `find ./"$docs_dir" -name "*.md"`; do
SED_INPLACE 's/dl.gitea.com\/gitea\/@version@/dl.gitea.com\/gitea\/main/g' $file
SED_INPLACE 's/gitea\/gitea\:@version@/gitea\/gitea\:nightly/g' $file
fi
SED_INPLACE "s/@version@/$version/g" $file
SED_INPLACE "s/@version@/$minorVer/g" $file
done
for file in "$docs_dir"/*; do