sidebars.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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: ['guides/getting-started/installation/index', 'guides/getting-started/first-steps/index'],
  18. },
  19. {
  20. type: 'category',
  21. label: 'Developer Guide',
  22. items: [
  23. 'guides/developer-guide/overview/index',
  24. 'guides/developer-guide/configuration/index',
  25. 'guides/developer-guide/the-api-layer/index',
  26. 'guides/developer-guide/the-service-layer/index',
  27. 'guides/developer-guide/strategies-configurable-operations/index',
  28. 'guides/developer-guide/custom-fields/index',
  29. 'guides/developer-guide/worker-job-queue/index',
  30. 'guides/developer-guide/plugins/index',
  31. 'guides/developer-guide/migrations/index',
  32. ],
  33. },
  34. {
  35. type: 'category',
  36. label: 'Core Concepts',
  37. items: [{ type: 'autogenerated', dirName: 'guides/core-concepts' }],
  38. },
  39. {
  40. type: 'category',
  41. label: 'How-to Guides',
  42. items: [{ type: 'autogenerated', dirName: 'guides/how-to' }],
  43. },
  44. {
  45. type: 'category',
  46. label: 'Extending the Admin UI',
  47. items: [{ type: 'autogenerated', dirName: 'guides/extending-the-admin-ui' }],
  48. },
  49. {
  50. type: 'category',
  51. label: 'Building a Storefront',
  52. items: [{ type: 'autogenerated', dirName: 'guides/storefront' }],
  53. },
  54. {
  55. type: 'category',
  56. label: 'Advanced Topics',
  57. items: [{ type: 'autogenerated', dirName: 'guides/advanced-topics' }],
  58. },
  59. {
  60. type: 'category',
  61. label: 'Deployment',
  62. items: [{ type: 'autogenerated', dirName: 'guides/deployment' }],
  63. },
  64. ],
  65. referenceSidebar: [
  66. {
  67. type: 'category',
  68. label: 'TypeScript API',
  69. items: [{ type: 'autogenerated', dirName: 'reference/typescript-api' }],
  70. },
  71. {
  72. type: 'category',
  73. label: 'GraphQL API',
  74. items: [
  75. {
  76. type: 'category',
  77. label: 'Admin API',
  78. items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/admin' }],
  79. },
  80. {
  81. type: 'category',
  82. label: 'Shop API',
  83. items: [{ type: 'autogenerated', dirName: 'reference/graphql-api/shop' }],
  84. },
  85. ],
  86. },
  87. {
  88. type: 'category',
  89. label: 'Admin UI API',
  90. items: [{ type: 'autogenerated', dirName: 'reference/admin-ui-api' }],
  91. },
  92. ],
  93. };
  94. module.exports = sidebars;