From 251c3ee97cb52fbb665dfa78dab539d7c93d0f16 Mon Sep 17 00:00:00 2001 From: lng2020 Date: Wed, 29 Nov 2023 07:49:37 +0000 Subject: [PATCH] Fix 1.20 minor version (#95) Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/95 Reviewed-by: Lunny Xiao Co-authored-by: lng2020 Co-committed-by: lng2020 --- docusaurus.config.js | 4 ++-- loop_docs.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index dff1b83e..f688c0c3 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -111,7 +111,7 @@ const config = { label: '1.21.1', }, '1.20': { - label: '1.20.5' + label: '1.20.6' }, '1.19': { label: '1.19.4', @@ -199,7 +199,7 @@ const config = { items: [ {to: '/api/next/', label: '1.22-dev' }, {to: '/api/1.21/', label: '1.21.1' }, - {to: '/api/1.20/', label: '1.20.4' }, + {to: '/api/1.20/', label: '1.20.6' }, {to: '/api/1.19/', label: '1.19.4' }, ], }, diff --git a/loop_docs.sh b/loop_docs.sh index fdd35505..f77323f7 100755 --- a/loop_docs.sh +++ b/loop_docs.sh @@ -27,7 +27,7 @@ if [ "$version" == "1.19" ]; then minorVer="1.19.4" minGoVer="1.19" elif [ "$version" == "1.20" ]; then - minorVer="1.20.5" + minorVer="1.20.6" elif [ "$version" == "1.21" ]; then minorVer="1.21.1" fi @@ -58,7 +58,7 @@ if [ "$version" == "latest" ]; then elif [ "$version" == "1.21" ]; then SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.21.1"/' static/swagger-21.json elif [ "$version" == "1.20" ]; then - SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.20.5"/' static/swagger-20.json + SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.20.6"/' static/swagger-20.json elif [ "$version" == "1.19" ]; then SED_INPLACE 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.19.4"/' static/swagger-19.json fi