mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-21 18:27:41 +00:00
Update loop_docs.sh
This commit is contained in:
@@ -27,7 +27,7 @@ if [ "$version" == "1.19" ]; then
|
|||||||
minorVer="1.19.4"
|
minorVer="1.19.4"
|
||||||
minGoVer="1.19"
|
minGoVer="1.19"
|
||||||
elif [ "$version" == "1.20" ]; then
|
elif [ "$version" == "1.20" ]; then
|
||||||
minorVer="1.20.3"
|
minorVer="1.20.4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docs_dir="versioned_docs/version-$version"
|
docs_dir="versioned_docs/version-$version"
|
||||||
@@ -54,7 +54,7 @@ SED_INPLACE "s/@minGoVersion@/$minGoVer/" "$docs_dir/installation/from-source.$l
|
|||||||
if [ "$version" == "latest" ]; then
|
if [ "$version" == "latest" ]; then
|
||||||
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.21-dev"/' static/swagger-latest.json
|
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.21-dev"/' static/swagger-latest.json
|
||||||
elif [ "$version" == "1.20" ]; then
|
elif [ "$version" == "1.20" ]; then
|
||||||
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.20.3"/' static/swagger-20.json
|
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.20.4"/' static/swagger-20.json
|
||||||
elif [ "$version" == "1.19" ]; then
|
elif [ "$version" == "1.19" ]; then
|
||||||
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.19.4"/' static/swagger-19.json
|
SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.19.4"/' static/swagger-19.json
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user