neko/webpage/sidebars.ts
2025-03-22 23:02:57 +01:00

97 lines
2.5 KiB
TypeScript

import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
import apiSidebar from './docs/api/sidebar';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
const sidebars: SidebarsConfig = {
docsSidebar: [
{
type: 'category',
label: 'Getting Started',
className: 'menu__list-item-flat',
collapsible: false,
items: [
'introduction',
'quick-start',
{
type: 'category',
label: 'Installation',
collapsed: false,
link: { type: "doc", id: "installation/README" },
items: [
'installation/docker-images',
'installation/examples',
]
},
]
},
{
type: 'category',
label: 'Reference',
className: 'menu__list-item-flat',
collapsible: false,
items: [
{
type: 'category',
label: 'Configuration',
collapsed: false,
link: { type: "doc", id: "configuration/README" },
items: [
'configuration/authentication',
'configuration/capture',
'configuration/desktop',
'configuration/webrtc',
'configuration/plugins',
]
},
'migration-from-v2/README',
'reverse-proxy-setup',
{
type: 'link',
label: 'API Reference',
href: '/docs/v3/api',
}
]
},
//{
// type: 'category',
// label: 'Hardware Acceleration',
// items: [{ type: "autogenerated", dirName: "hardware-acceleration" }]
//},
//{
// type: 'category',
// label: 'Application Customization',
// items: [{ type: "autogenerated", dirName: "app-customization" }]
//},
//{
// type: 'category',
// label: 'Developer Guide',
// items: [{ type: "autogenerated", dirName: "developer-guide" }]
//},
{
type: 'category',
label: 'Help & Support',
className: 'menu__list-item-flat',
collapsible: false,
items: [
'faq',
'troubleshooting',
'release-notes',
'roadmap',
]
},
],
apiSidebar: require("./docs/api/sidebar.js"),
};
export default sidebars;