sidebars.js 3.3 KB

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