various fixes.

This commit is contained in:
Miroslav Šedivý 2025-02-18 23:07:35 +01:00
parent 5886d946b2
commit 4d0aea6040
4 changed files with 9 additions and 27 deletions

View file

@ -14,12 +14,6 @@ import SchemaTabs from "@theme/SchemaTabs";
import TabItem from "@theme/TabItem";
import Export from "@theme/ApiExplorer/Export";
<span
className={"theme-doc-version-badge badge badge--secondary"}
children={"Version: 3.0.0"}
>
</span>
<Export
url={"https://raw.githubusercontent.com/m1k1o/neko/refs/heads/master/server/openapi.yaml"}
proxy={undefined}

View file

@ -79,6 +79,12 @@ const config: Config = {
position: 'left',
label: 'Docs',
},
{
type: 'docSidebar',
sidebarId: 'apiSidebar',
position: 'left',
label: 'API',
},
{
to: 'contributing',
label: 'Contributing',
@ -182,6 +188,7 @@ const config: Config = {
specPath: "../server/openapi.yaml",
outputDir: "docs/api",
downloadUrl: "https://raw.githubusercontent.com/m1k1o/neko/refs/heads/master/server/openapi.yaml",
baseUrl: "/docs/v3/api",
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",

View file

@ -59,27 +59,8 @@ const sidebars: SidebarsConfig = {
label: 'Changelog & Releases',
items: [{ type: "autogenerated", dirName: "changelog-and-releases" }]
},
{
type: 'link',
label: 'API Reference',
href: '/docs/v3/api',
},
],
apiSidebar: [
{
type: "category",
label: "API Reference",
collapsible: false,
link: {
type: "generated-index",
title: "Neko API",
description:
"The api API is a set of RESTful web services that allow you to interact with the api.",
slug: "/api"
},
items: require("./docs/api/sidebar.js")
}
]
apiSidebar: require("./docs/api/sidebar.js"),
};
export default sidebars;

View file

@ -42,7 +42,7 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
to="/docs/v3/getting-started/quick-start-guide">
Get started
</Link>
<span className={styles.indexCtasGitHubButtonWrapper}>