diff --git a/docusaurus.config.js b/docusaurus.config.js index d52d483c..fafc11a9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -97,7 +97,7 @@ const config = { banner: 'none', }, '1.19': { - label: '1.19.3', + label: '1.19.4', } }, lastVersion: '1.19', @@ -173,7 +173,7 @@ const config = { items: [ {to: '/api/next/', label: '1.21-dev' }, {to: '/api/1.20/', label: '1.20.0-rc0' }, - {to: '/api/1.19/', label: '1.19.3' }, + {to: '/api/1.19/', label: '1.19.4' }, ], className: 'api-dropdown', }, diff --git a/loop_docs.sh b/loop_docs.sh index d93ce253..8f557362 100755 --- a/loop_docs.sh +++ b/loop_docs.sh @@ -1,6 +1,6 @@ #!/bin/bash -# The script takes two params: +# The script takes two params: # version: "latest" or a specific version number # locale @@ -23,10 +23,10 @@ minNodeVer="16" minGoVer="1.20" goVer="1.20" minorVer="main-nightly" -if ["$version" == "1.19"]; then - minorVer="1.19.3" +if [ "$version" == "1.19" ]; then + minorVer="1.19.4" minGoVer="1.19" -elif ["$version" == "1.20"]; then +elif [ "$version" == "1.20" ]; then minorVer="1.20.0-rc2" fi @@ -63,7 +63,7 @@ if [ "$version" == "latest" ]; then elif [ "$version" == "1.20" ]; then SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.20.0-rc2"/' static/swagger-20.json elif [ "$version" == "1.19" ]; then - SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.19.3"/' static/swagger-19.json + SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.19.4"/' static/swagger-19.json fi SED_INPLACE 's/"basePath": "{{AppSubUrl | JSEscape | Safe}}/"basePath": "https:\/\/gitea.com/' static/swagger-"$1".json @@ -93,7 +93,7 @@ for file in "$docs_dir"/*; do rm $file || true done -# file names under docs/ and i18n/zh-cn/docusaurus-plugin-content-docs/current/ should be the same for docusaurus +# file names under docs/ and i18n/zh-cn/docusaurus-plugin-content-docs/current/ should be the same for docusaurus # to recognize them as tanslated. for file in `find "$docs_dir" -name "*.$locale.md"`; do mv "${file}" "${file/.$locale/}"