Update loop_docs.sh

This commit is contained in:
techknowlogick
2023-06-29 18:55:46 +00:00
parent 4f318d3f85
commit a6ca489269

View File

@@ -69,8 +69,8 @@ fi
for file in `find ./"$docs_dir" -name "*.md"`; do
# hide hugo toc
SED_INPLACE 's/{{< toc >}}//' $file
SED_INPLACE 's/dl.gitea.com\/gitea\/{{< version >}}/dl.gitea.com\/gitea\/main/g' $file
if [ "$version" == "lastest" ]; then
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