From 30a23a1ee40663dad94d9e666f5887842277f3e1 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Fri, 28 Jul 2023 04:41:21 +0000 Subject: [PATCH] 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 --- loop_docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loop_docs.sh b/loop_docs.sh index 6e8c62f3..ac9f1321 100755 --- a/loop_docs.sh +++ b/loop_docs.sh @@ -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