Use category instead of place holder markdown file as directory (#299)

Reviewed-on: https://gitea.com/gitea/docs/pulls/299
This commit is contained in:
Lunny Xiao
2025-11-20 18:02:34 +00:00
parent 0787ea1fbe
commit dcb9b9b450
42 changed files with 176 additions and 302 deletions
+4 -4
View File
@@ -211,8 +211,8 @@ const config = {
[
"@docusaurus/plugin-content-docs",
{
id: "runner",
path: "runner",
id: "runner-docs",
path: "runner-docs",
routeBasePath: "runner",
//sidebarPath: './runner/sidebars.js',
versions: {
@@ -235,8 +235,8 @@ const config = {
}) => {
return `https://gitea.com/gitea/docs/src/branch/main/${
version === "current"
? "runner"
: `runner_versioned_docs/version-${version}`
? "runner-docs"
: `runner-docs_versioned_docs/version-${version}`
}/${docPath}`;
},
async sidebarItemsGenerator({ defaultSidebarItemsGenerator, ...args }) {