sidebars.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. docs: [
  13. {
  14. type: "category",
  15. label: "Introduction",
  16. link: {
  17. type: "doc",
  18. id: "introduction/get-started",
  19. },
  20. items: ["introduction/development", "introduction/contributing"],
  21. },
  22. {
  23. type: "category",
  24. label: "@excalidraw/excalidraw",
  25. collapsed: false,
  26. items: [
  27. "@excalidraw/excalidraw/installation",
  28. "@excalidraw/excalidraw/integration",
  29. "@excalidraw/excalidraw/customizing-styles",
  30. {
  31. type: "category",
  32. label: "API",
  33. link: {
  34. type: "doc",
  35. id: "@excalidraw/excalidraw/api/api-intro",
  36. },
  37. items: [
  38. {
  39. type: "category",
  40. label: "Props",
  41. link: {
  42. type: "doc",
  43. id: "@excalidraw/excalidraw/api/props/props",
  44. },
  45. items: [
  46. "@excalidraw/excalidraw/api/props/initialdata",
  47. "@excalidraw/excalidraw/api/props/ref",
  48. "@excalidraw/excalidraw/api/props/render-props",
  49. "@excalidraw/excalidraw/api/props/ui-options",
  50. ],
  51. },
  52. {
  53. type: "category",
  54. label: "Children Components",
  55. link: {
  56. type: "doc",
  57. id: "@excalidraw/excalidraw/api/children-components/children-components-intro",
  58. },
  59. items: [
  60. "@excalidraw/excalidraw/api/children-components/main-menu",
  61. "@excalidraw/excalidraw/api/children-components/welcome-screen",
  62. "@excalidraw/excalidraw/api/children-components/footer",
  63. "@excalidraw/excalidraw/api/children-components/live-collaboration-trigger",
  64. ],
  65. },
  66. {
  67. type: "category",
  68. label: "Utils",
  69. link: {
  70. type: "doc",
  71. id: "@excalidraw/excalidraw/api/utils/utils-intro",
  72. },
  73. items: [
  74. "@excalidraw/excalidraw/api/utils/export",
  75. "@excalidraw/excalidraw/api/utils/restore",
  76. ],
  77. },
  78. {
  79. type: "category",
  80. label: "Constants",
  81. link: { type: "doc", id: "@excalidraw/excalidraw/api/constants" },
  82. items: [],
  83. },
  84. ],
  85. },
  86. "@excalidraw/excalidraw/faq",
  87. "@excalidraw/excalidraw/development",
  88. ],
  89. },
  90. {
  91. type: "category",
  92. label: "Codebase",
  93. items: ["codebase/json-schema"],
  94. },
  95. ],
  96. };
  97. module.exports = sidebars;