sidebars.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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: [
  14. {
  15. type: 'category',
  16. label: 'Getting Started',
  17. items: [{ type: 'autogenerated', dirName: 'guides/getting-started' }],
  18. },
  19. {
  20. type: 'category',
  21. label: 'How-to Guides',
  22. items: [{ type: 'autogenerated', dirName: 'guides/how-to' }],
  23. },
  24. {
  25. type: 'category',
  26. label: 'Extending the Admin UI',
  27. items: [{ type: 'autogenerated', dirName: 'guides/extending-the-admin-ui' }],
  28. },
  29. {
  30. type: 'category',
  31. label: 'Building a Storefront',
  32. items: [{ type: 'autogenerated', dirName: 'guides/storefront' }],
  33. },
  34. {
  35. type: 'category',
  36. label: 'Advanced Topics',
  37. items: [{ type: 'autogenerated', dirName: 'guides/advanced-topics' }],
  38. },
  39. {
  40. type: 'category',
  41. label: 'Deployment',
  42. items: [{ type: 'autogenerated', dirName: 'guides/deployment' }],
  43. },
  44. ],
  45. referenceSidebar: [
  46. {
  47. type: 'category',
  48. label: 'TypeScript API',
  49. items: [{ type: 'autogenerated', dirName: 'reference/typescript-api' }],
  50. },
  51. {
  52. type: 'category',
  53. label: 'GraphQL API',
  54. items: [
  55. {
  56. type: 'category',
  57. label: 'Admin API',
  58. items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/admin' }],
  59. },
  60. {
  61. type: 'category',
  62. label: 'Shop API',
  63. items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/shop' }],
  64. },
  65. ],
  66. },
  67. {
  68. type: 'category',
  69. label: 'Admin UI API',
  70. items: [{ type: 'autogenerated', dirName: 'reference/admin-ui-api' }],
  71. },
  72. ],
  73. };
  74. module.exports = sidebars;