diff --git a/docusaurus.config.js b/docusaurus.config.js index 36583696..72c12a75 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -29,7 +29,7 @@ const apiConfig = [ }, { route: "/api/", - spec: "static/swagger-25.json", + spec: "static/swagger-26.json", }, { route: "/api/1.26/", @@ -82,11 +82,11 @@ const globalVariables = { goVersion: "1.26", minGoVersion: "1.26", minNodeVersion: "22", - version: "1.26.0-rc0", - sourceVersion: "v1.26.0-rc0", + version: "1.26.0", + sourceVersion: "v1.26.0", sourceBranch: "release/v1.26", - dockerVersion: "1.26.0-rc0", - displayVersion: "1.26.0-rc0", + dockerVersion: "1.26.0", + displayVersion: "1.26.0", }, "1.25": { goVersion: "1.25", @@ -266,7 +266,7 @@ const config = { }/${docPath}`; }, versions: versions, - lastVersion: "1.25", + lastVersion: "1.26", async sidebarItemsGenerator({ defaultSidebarItemsGenerator, ...args @@ -376,7 +376,7 @@ const config = { label: "Docs", }, { - to: "/api/1.25/", + to: "/api/1.26/", label: "API", position: "left", activeBaseRegex: "api/(1.22|1.23|1.24|1.25|1.26|next)/", @@ -413,7 +413,7 @@ const config = { position: "right", items: [ { to: "/api/next/", label: "1.27-dev" }, - { to: "/api/1.26/", label: "1.26.0-rc0" }, + { to: "/api/1.26/", label: "1.26.0" }, { to: "/api/1.25/", label: "1.25.5" }, { to: "/api/1.24/", label: "1.24.7" }, { to: "/api/1.23/", label: "1.23.8" }, diff --git a/static/swagger-26.json b/static/swagger-26.json index 1f066056..2048cdb1 100644 --- a/static/swagger-26.json +++ b/static/swagger-26.json @@ -17,7 +17,7 @@ "name": "MIT", "url": "http://opensource.org/licenses/MIT" }, - "version": "1.26.0-rc0" + "version": "1.26.0" }, "basePath": "https://gitea.com/api/v1", "paths": { @@ -31069,4 +31069,4 @@ "TOTPHeader": [] } ] -} \ No newline at end of file +} diff --git a/update_api_docs.sh b/update_api_docs.sh index a14f5718..3d43f888 100755 --- a/update_api_docs.sh +++ b/update_api_docs.sh @@ -25,7 +25,7 @@ inplace_sed 's|"version": "{{.SwaggerAppVer}}"|"version": "dev"|' v1_json.tmpl inplace_sed 's|"basePath": "{{.SwaggerAppSubUrl}}/api/v1"|"basePath": "https://gitea.com/api/v1"|' v1_json.tmpl mv v1_json.tmpl static/swagger-latest.json -for ver in '1.26.0-rc0' '1.25.5' '1.24.7' '1.23.8' '1.22.6'; do +for ver in '1.26.0' '1.25.5' '1.24.7' '1.23.8' '1.22.6'; do curl --silent --output v1_json.tmpl https://raw.githubusercontent.com/go-gitea/gitea/refs/tags/v${ver}/templates/swagger/v1_json.tmpl inplace_sed "s|\"version\": \"{{.SwaggerAppVer}}\"|\"version\": \"${ver}\"|" v1_json.tmpl inplace_sed 's|"basePath": "{{.SwaggerAppSubUrl}}/api/v1"|"basePath": "https://gitea.com/api/v1"|' v1_json.tmpl