lipu-pali/sidebars.ts

35 lines
1,023 B
TypeScript
Raw Normal View History

2025-05-21 11:43:04 +01:00
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
2025-05-21 13:59:53 +01:00
import * as apiSidebar from './docs/api/sidebar';
2025-05-21 11:43:04 +01:00
// 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
2025-05-21 14:16:23 +01:00
tutorialSidebar: ['welcome', {'label': "Censorship 101", 'type': "category", items: [{'type': 'autogenerated', dirName: 'censorship'}]}],
2025-05-21 13:59:53 +01:00
apisidebar: apiSidebar.default,
2025-05-21 11:43:04 +01:00
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
export default sidebars;