mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-29 18:36:22 +02:00
various fixes.
This commit is contained in:
parent
5886d946b2
commit
4d0aea6040
4 changed files with 9 additions and 27 deletions
|
@ -14,12 +14,6 @@ import SchemaTabs from "@theme/SchemaTabs";
|
||||||
import TabItem from "@theme/TabItem";
|
import TabItem from "@theme/TabItem";
|
||||||
import Export from "@theme/ApiExplorer/Export";
|
import Export from "@theme/ApiExplorer/Export";
|
||||||
|
|
||||||
<span
|
|
||||||
className={"theme-doc-version-badge badge badge--secondary"}
|
|
||||||
children={"Version: 3.0.0"}
|
|
||||||
>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<Export
|
<Export
|
||||||
url={"https://raw.githubusercontent.com/m1k1o/neko/refs/heads/master/server/openapi.yaml"}
|
url={"https://raw.githubusercontent.com/m1k1o/neko/refs/heads/master/server/openapi.yaml"}
|
||||||
proxy={undefined}
|
proxy={undefined}
|
||||||
|
|
|
@ -79,6 +79,12 @@ const config: Config = {
|
||||||
position: 'left',
|
position: 'left',
|
||||||
label: 'Docs',
|
label: 'Docs',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: 'docSidebar',
|
||||||
|
sidebarId: 'apiSidebar',
|
||||||
|
position: 'left',
|
||||||
|
label: 'API',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
to: 'contributing',
|
to: 'contributing',
|
||||||
label: 'Contributing',
|
label: 'Contributing',
|
||||||
|
@ -182,6 +188,7 @@ const config: Config = {
|
||||||
specPath: "../server/openapi.yaml",
|
specPath: "../server/openapi.yaml",
|
||||||
outputDir: "docs/api",
|
outputDir: "docs/api",
|
||||||
downloadUrl: "https://raw.githubusercontent.com/m1k1o/neko/refs/heads/master/server/openapi.yaml",
|
downloadUrl: "https://raw.githubusercontent.com/m1k1o/neko/refs/heads/master/server/openapi.yaml",
|
||||||
|
baseUrl: "/docs/v3/api",
|
||||||
sidebarOptions: {
|
sidebarOptions: {
|
||||||
groupPathsBy: "tag",
|
groupPathsBy: "tag",
|
||||||
categoryLinkSource: "tag",
|
categoryLinkSource: "tag",
|
||||||
|
|
|
@ -59,27 +59,8 @@ const sidebars: SidebarsConfig = {
|
||||||
label: 'Changelog & Releases',
|
label: 'Changelog & Releases',
|
||||||
items: [{ type: "autogenerated", dirName: "changelog-and-releases" }]
|
items: [{ type: "autogenerated", dirName: "changelog-and-releases" }]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: 'link',
|
|
||||||
label: 'API Reference',
|
|
||||||
href: '/docs/v3/api',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
apiSidebar: [
|
apiSidebar: require("./docs/api/sidebar.js"),
|
||||||
{
|
|
||||||
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")
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default sidebars;
|
export default sidebars;
|
||||||
|
|
|
@ -42,7 +42,7 @@ function HomepageHeader() {
|
||||||
<div className={styles.buttons}>
|
<div className={styles.buttons}>
|
||||||
<Link
|
<Link
|
||||||
className="button button--secondary button--lg"
|
className="button button--secondary button--lg"
|
||||||
to="/docs/intro">
|
to="/docs/v3/getting-started/quick-start-guide">
|
||||||
Get started
|
Get started
|
||||||
</Link>
|
</Link>
|
||||||
<span className={styles.indexCtasGitHubButtonWrapper}>
|
<span className={styles.indexCtasGitHubButtonWrapper}>
|
||||||
|
|
Loading…
Add table
Reference in a new issue