sidebars.ts 860 B

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