-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsidebars.ts
48 lines (44 loc) · 1.31 KB
/
sidebars.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
/**
* Sidebars Configuration for Docusaurus Documentation
*
* This configuration enables you to:
* - Automatically generate a sidebar based on the folder structure.
* - Manually define a custom sidebar structure if needed.
*
* You can switch between autogenerated and manual sidebars based on your requirements.
*/
const sidebars: SidebarsConfig = {
/**
* Autogenerated Sidebar:
* Automatically generates a sidebar from the file structure in the "docs" directory.
* Useful for projects with a straightforward or hierarchical content layout.
*/
tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
/**
* Example Manual Sidebar (Commented):
* Uncomment the following section if you'd like to define a sidebar manually.
*/
/*
tutorialSidebar: [
// Single document reference
'intro',
'hello',
// Category with nested items
{
type: 'category',
label: 'Tutorial',
collapsible: true,
collapsed: false,
items: ['tutorial-basics/create-a-document', 'tutorial-basics/deploy-your-site'],
},
// External link example
{
type: 'link',
label: 'Docusaurus Docs', // Link label
href: 'https://docusaurus.io', // URL
},
],
*/
};
export default sidebars;