Mirror of https://forge.levinkeller.de/levin/dorfarchiv.git
81e46860dc61984ac47f2664c61aa08a61dad3a2
33 lines · 861 B
| 1 | import type { SidebarsConfig } from '@docusaurus/plugin-content-docs' |
| 2 | |
| 3 | // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) |
| 4 | |
| 5 | /** |
| 6 | * Creating a sidebar enables you to: |
| 7 | - create an ordered group of docs |
| 8 | - render a sidebar for each doc of that group |
| 9 | - provide next/previous navigation |
| 10 | |
| 11 | The sidebars can be generated from the filesystem, or explicitly defined here. |
| 12 | |
| 13 | Create as many sidebars as you want. |
| 14 | */ |
| 15 | const sidebars: SidebarsConfig = { |
| 16 | // By default, Docusaurus generates a sidebar from the docs folder structure |
| 17 | tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }], |
| 18 | |
| 19 | // But you can create a sidebar manually |
| 20 | /* |
| 21 | tutorialSidebar: [ |
| 22 | 'intro', |
| 23 | 'hello', |
| 24 | { |
| 25 | type: 'category', |
| 26 | label: 'Tutorial', |
| 27 | items: ['tutorial-basics/create-a-document'], |
| 28 | }, |
| 29 | ], |
| 30 | */ |
| 31 | } |
| 32 | |
| 33 | export default sidebars |