Files
archived-drop-docs/sidebars.ts
2025-07-31 20:23:48 +10:00

69 lines
1.6 KiB
TypeScript

import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
// 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 = {
// By default, Docusaurus generates a sidebar from the docs folder structure
defaultSidebar: [
{
type: "category",
label: "Admin Guides",
items: [
"guides/quickstart",
"guides/exposing",
"guides/server-troubleshooting",
],
},
{
type: "category",
label: "User Guides",
items: ["guides/client", "guides/client-troubleshooting"],
},
{
type: "category",
label: "Metadata",
items: ["metadata/giantbomb", "metadata/igdb", "metadata/pcgamingwiki"],
},
{
type: "category",
label: "Authentication",
items: ["authentication/simple", "authentication/oidc"],
},
{
type: "category",
label: "Advanced",
items: ["advanced/building"],
},
{
type: "category",
label: "Documentation",
items: ["library"],
},
],
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
export default sidebars;