sidebars.js 4.0 KB

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