mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-22 02:37:42 +00:00
update version 1.27.0 (#464)
Reviewed-on: https://gitea.com/gitea/docs/pulls/464 Reviewed-by: Nicolas <bircni@icloud.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@@ -29,7 +29,7 @@ const apiConfig = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
route: "/api/",
|
route: "/api/",
|
||||||
spec: "static/swagger-26.json",
|
spec: "static/swagger-27.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
route: "/api/1.27/",
|
route: "/api/1.27/",
|
||||||
@@ -86,11 +86,11 @@ const globalVariables = {
|
|||||||
goVersion: "1.26",
|
goVersion: "1.26",
|
||||||
minGoVersion: "1.26",
|
minGoVersion: "1.26",
|
||||||
minNodeVersion: "24",
|
minNodeVersion: "24",
|
||||||
version: "1.27.0-rc0",
|
version: "1.27.0",
|
||||||
sourceVersion: "v1.27.0-rc0",
|
sourceVersion: "v1.27.0",
|
||||||
sourceBranch: "release/v1.27",
|
sourceBranch: "release/v1.27",
|
||||||
dockerVersion: "1.27.0-rc0",
|
dockerVersion: "1.27.0",
|
||||||
displayVersion: "1.27.0-rc0",
|
displayVersion: "1.27.0",
|
||||||
},
|
},
|
||||||
"1.26": {
|
"1.26": {
|
||||||
goVersion: "1.26",
|
goVersion: "1.26",
|
||||||
@@ -287,7 +287,7 @@ const config = {
|
|||||||
}/${docPath}`;
|
}/${docPath}`;
|
||||||
},
|
},
|
||||||
versions: versions,
|
versions: versions,
|
||||||
lastVersion: "1.26",
|
lastVersion: "1.27",
|
||||||
async sidebarItemsGenerator({
|
async sidebarItemsGenerator({
|
||||||
defaultSidebarItemsGenerator,
|
defaultSidebarItemsGenerator,
|
||||||
...args
|
...args
|
||||||
@@ -397,7 +397,7 @@ const config = {
|
|||||||
label: "Docs",
|
label: "Docs",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: "/api/1.26/",
|
to: "/api/1.27/",
|
||||||
label: "API",
|
label: "API",
|
||||||
position: "left",
|
position: "left",
|
||||||
activeBaseRegex: "api/(1.22|1.23|1.24|1.25|1.26|1.27|next)/",
|
activeBaseRegex: "api/(1.22|1.23|1.24|1.25|1.26|1.27|next)/",
|
||||||
@@ -434,7 +434,7 @@ const config = {
|
|||||||
position: "right",
|
position: "right",
|
||||||
items: [
|
items: [
|
||||||
{ to: "/api/next/", label: "1.28-dev" },
|
{ to: "/api/next/", label: "1.28-dev" },
|
||||||
{ to: "/api/1.27/", label: "1.27.0-rc0" },
|
{ to: "/api/1.27/", label: "1.27.0" },
|
||||||
{ to: "/api/1.26/", label: "1.26.4" },
|
{ to: "/api/1.26/", label: "1.26.4" },
|
||||||
{ to: "/api/1.25/", label: "1.25.5" },
|
{ to: "/api/1.25/", label: "1.25.5" },
|
||||||
{ to: "/api/1.24/", label: "1.24.7" },
|
{ to: "/api/1.24/", label: "1.24.7" },
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"name": "MIT",
|
"name": "MIT",
|
||||||
"url": "http://opensource.org/licenses/MIT"
|
"url": "http://opensource.org/licenses/MIT"
|
||||||
},
|
},
|
||||||
"version": "1.27.0-rc0"
|
"version": "1.27.0"
|
||||||
},
|
},
|
||||||
"basePath": "https://gitea.com/api/v1",
|
"basePath": "https://gitea.com/api/v1",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|||||||
@@ -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
|
inplace_sed 's|"basePath": "{{.SwaggerAppSubUrl}}/api/v1"|"basePath": "https://gitea.com/api/v1"|' v1_json.tmpl
|
||||||
mv v1_json.tmpl static/swagger-latest.json
|
mv v1_json.tmpl static/swagger-latest.json
|
||||||
|
|
||||||
for ver in '1.27.0-rc0' '1.26.4' '1.25.5' '1.24.7' '1.23.8' '1.22.6'; do
|
for ver in '1.27.0' '1.26.4' '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
|
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|\"version\": \"{{.SwaggerAppVer}}\"|\"version\": \"${ver}\"|" v1_json.tmpl
|
||||||
inplace_sed 's|"basePath": "{{.SwaggerAppSubUrl}}/api/v1"|"basePath": "https://gitea.com/api/v1"|' v1_json.tmpl
|
inplace_sed 's|"basePath": "{{.SwaggerAppSubUrl}}/api/v1"|"basePath": "https://gitea.com/api/v1"|' v1_json.tmpl
|
||||||
|
|||||||
Reference in New Issue
Block a user