mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-17 19:55:34 +00:00
Fix navbar links and hide runner's development (#477)
Reviewed-on: https://gitea.com/gitea/docs/pulls/477
This commit is contained in:
+12
-12
@@ -197,13 +197,12 @@ const config = {
|
||||
path: "runner-docs",
|
||||
routeBasePath: "runner",
|
||||
//sidebarPath: './runner/sidebars.js',
|
||||
// the "current" runner docs are only a stub that re-uses the main
|
||||
// docs runner page and do not describe the development version
|
||||
// correctly, so they are not published
|
||||
includeCurrentVersion: false,
|
||||
versions: {
|
||||
current: {
|
||||
label: "main",
|
||||
banner: "unreleased",
|
||||
},
|
||||
"1.0.8": {
|
||||
path: "1.0.8",
|
||||
label: "1.0.8",
|
||||
},
|
||||
"0.2.11": {
|
||||
@@ -211,6 +210,8 @@ const config = {
|
||||
label: "0.2.11",
|
||||
},
|
||||
},
|
||||
// no "path" for lastVersion, so the latest stable runner docs are
|
||||
// served at /runner/ and links do not need updating on each release
|
||||
lastVersion: "1.0.8",
|
||||
editUrl: ({
|
||||
versionDocsDirPath,
|
||||
@@ -397,16 +398,16 @@ const config = {
|
||||
label: "Docs",
|
||||
},
|
||||
{
|
||||
to: "/api/1.27/",
|
||||
to: "/api/",
|
||||
label: "API",
|
||||
position: "left",
|
||||
activeBaseRegex: "api/(1.22|1.23|1.24|1.25|1.26|1.27|next)/",
|
||||
activeBaseRegex: "/api/",
|
||||
},
|
||||
{
|
||||
to: "/runner/1.0.8/",
|
||||
to: "/runner/",
|
||||
label: "Runner",
|
||||
position: "left",
|
||||
activeBaseRegex: "runner/(1.0.8|0.2.11|next)/",
|
||||
activeBaseRegex: "/runner/",
|
||||
},
|
||||
{
|
||||
position: "left",
|
||||
@@ -434,7 +435,7 @@ const config = {
|
||||
position: "right",
|
||||
items: [
|
||||
{ to: "/api/next/", label: "1.28-dev" },
|
||||
{ to: "/api/1.27/", label: "1.27.1" },
|
||||
{ to: "/api/", label: "1.27.1" },
|
||||
{ to: "/api/1.26/", label: "1.26.4" },
|
||||
{ to: "/api/1.25/", label: "1.25.5" },
|
||||
{ to: "/api/1.24/", label: "1.24.7" },
|
||||
@@ -449,8 +450,7 @@ const config = {
|
||||
label: "Runner Version",
|
||||
position: "right",
|
||||
items: [
|
||||
{ to: "/runner/next/", label: "development" },
|
||||
{ to: "/runner/1.0.8/", label: "1.0.8" },
|
||||
{ to: "/runner/", label: "1.0.8" },
|
||||
{ to: "/runner/0.2.11/", label: "0.2.11" },
|
||||
],
|
||||
routerRgx: "/runner/",
|
||||
|
||||
Reference in New Issue
Block a user