sidebars.ts 778 B

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