-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebars.ts
More file actions
21 lines (18 loc) · 867 Bytes
/
sidebars.ts
File metadata and controls
21 lines (18 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
/**
* Codebolt docs — 5 top-level sidebars.
* See DOCUMENTATION_PLAN.md for the full structure and writing rules.
*/
const isDev = process.env.NODE_ENV === 'development';
const sidebars: SidebarsConfig = {
conceptsSidebar: [{type: 'autogenerated', dirName: '02_concepts'}],
usingCodeboltSidebar: [{type: 'autogenerated', dirName: '02_using-codebolt'}],
guidesSidebar: [{type: 'autogenerated', dirName: '03_guides'}],
buildSidebar: [{type: 'autogenerated', dirName: '04_build-on-codebolt'}],
// In dev the 05_reference files are excluded from the watcher, so the sidebar
// must also be omitted — an autogenerated sidebar over an empty dir errors.
...(isDev ? {} : {
referenceSidebar: [{type: 'autogenerated', dirName: '05_reference'}],
}),
};
export default sidebars;