sidebars.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. { type: "category", label: "Codebase", items: ["codebase/json-schema"] },
  23. {
  24. type: "category",
  25. label: "@excalidraw/excalidraw",
  26. collapsed: false,
  27. items: [
  28. "@excalidraw/excalidraw/installation",
  29. "@excalidraw/excalidraw/integration",
  30. "@excalidraw/excalidraw/customizing-styles",
  31. {
  32. type: "category",
  33. label: "API",
  34. link: {
  35. type: "doc",
  36. id: "@excalidraw/excalidraw/api/api-intro",
  37. },
  38. items: [
  39. {
  40. type: "category",
  41. label: "Props",
  42. link: {
  43. type: "doc",
  44. id: "@excalidraw/excalidraw/api/props/props",
  45. },
  46. items: [
  47. "@excalidraw/excalidraw/api/props/initialdata",
  48. "@excalidraw/excalidraw/api/props/ref",
  49. "@excalidraw/excalidraw/api/props/render-props",
  50. "@excalidraw/excalidraw/api/props/ui-options",
  51. ],
  52. },
  53. {
  54. type: "category",
  55. label: "Children Components",
  56. link: {
  57. type: "doc",
  58. id: "@excalidraw/excalidraw/api/children-components/children-components-intro",
  59. },
  60. items: [
  61. "@excalidraw/excalidraw/api/children-components/main-menu",
  62. "@excalidraw/excalidraw/api/children-components/welcome-screen",
  63. "@excalidraw/excalidraw/api/children-components/sidebar",
  64. "@excalidraw/excalidraw/api/children-components/footer",
  65. "@excalidraw/excalidraw/api/children-components/live-collaboration-trigger",
  66. ],
  67. },
  68. {
  69. type: "category",
  70. label: "Utils",
  71. link: {
  72. type: "doc",
  73. id: "@excalidraw/excalidraw/api/utils/utils-intro",
  74. },
  75. items: [
  76. "@excalidraw/excalidraw/api/utils/export",
  77. "@excalidraw/excalidraw/api/utils/restore",
  78. ],
  79. },
  80. "@excalidraw/excalidraw/api/constants",
  81. "@excalidraw/excalidraw/api/excalidraw-element-skeleton",
  82. ],
  83. },
  84. "@excalidraw/excalidraw/faq",
  85. "@excalidraw/excalidraw/development",
  86. ],
  87. },
  88. {
  89. type: "category",
  90. label: "@excalidraw/mermaid-to-excalidraw",
  91. link: {
  92. type: "doc",
  93. id: "@excalidraw/mermaid-to-excalidraw/installation",
  94. },
  95. items: [
  96. "@excalidraw/mermaid-to-excalidraw/api",
  97. "@excalidraw/mermaid-to-excalidraw/development",
  98. {
  99. type: "category",
  100. label: "Codebase",
  101. link: {
  102. type: "doc",
  103. id: "@excalidraw/mermaid-to-excalidraw/codebase/codebase",
  104. },
  105. items: [
  106. {
  107. type: "category",
  108. label: "How Parser works under the hood?",
  109. link: {
  110. type: "doc",
  111. id: "@excalidraw/mermaid-to-excalidraw/codebase/parser/parser",
  112. },
  113. items: [
  114. "@excalidraw/mermaid-to-excalidraw/codebase/parser/flowchart",
  115. ],
  116. },
  117. "@excalidraw/mermaid-to-excalidraw/codebase/new-diagram-type",
  118. ],
  119. },
  120. ],
  121. },
  122. ],
  123. };
  124. module.exports = sidebars;