sidebars.js 2.6 KB

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