sidebars.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * Creating a sidebar enables you to:
  3. - create an ordered group of docs
  4. - render a sidebar for each doc of that group
  5. - provide next/previous navigation
  6. The sidebars can be generated from the filesystem, or explicitly defined here.
  7. Create as many sidebars as you want.
  8. */
  9. // @ts-check
  10. /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
  11. const sidebars = {
  12. // By default, Docusaurus generates a sidebar from the docs folder structure
  13. learnSidebar: [{ type: 'autogenerated', dirName: 'guides' }],
  14. referenceSidebar: [
  15. {
  16. type: 'category',
  17. label: 'TypeScript API',
  18. items: [{ type: 'autogenerated', dirName: 'reference/typescript-api' }],
  19. },
  20. {
  21. type: 'category',
  22. label: 'GraphQL API',
  23. items: [
  24. {
  25. type: 'category',
  26. label: 'Admin API',
  27. items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/admin' }],
  28. },
  29. {
  30. type: 'category',
  31. label: 'Shop API',
  32. items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/shop' }],
  33. },
  34. ],
  35. },
  36. {
  37. type: 'category',
  38. label: 'Admin UI API',
  39. items: [{ type: 'autogenerated', dirName: 'reference/admin-ui-api' }],
  40. },
  41. ],
  42. // But you can create a sidebar manually
  43. /*
  44. tutorialSidebar: [
  45. 'intro',
  46. 'hello',
  47. {
  48. type: 'category',
  49. label: 'Tutorial',
  50. items: ['tutorial-basics/create-a-document'],
  51. },
  52. ],
  53. */
  54. };
  55. module.exports = sidebars;