docmedown 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/README.md +69 -20
  2. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
  3. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
  4. package/dist/arc-DgPKXEdT.mjs +82 -0
  5. package/dist/arc-n7TW7Bis.js +1 -0
  6. package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
  7. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
  8. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
  9. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
  10. package/dist/array-CApNbSU9.mjs +6 -0
  11. package/dist/array-DZSRzHA_.js +1 -0
  12. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
  13. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
  14. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
  15. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
  16. package/dist/channel-LgHproiI.mjs +5 -0
  17. package/dist/channel-yqu0m4cl.js +1 -0
  18. package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
  19. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
  20. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
  21. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
  22. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
  23. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
  24. package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
  25. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
  26. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
  27. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
  28. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
  29. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
  30. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
  31. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
  32. package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
  33. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
  34. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
  35. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
  36. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
  37. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
  38. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
  39. package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
  40. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
  41. package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
  42. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
  43. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
  44. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
  45. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
  46. package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
  47. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
  48. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
  49. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
  50. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
  51. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
  52. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
  53. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
  54. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
  55. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
  56. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
  57. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
  58. package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
  59. package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
  60. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
  61. package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
  62. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
  63. package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
  64. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
  65. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
  66. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
  67. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
  68. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
  69. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
  70. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
  71. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
  72. package/dist/cli.js +719 -532
  73. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
  74. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
  75. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
  76. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
  77. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
  78. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
  79. package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
  80. package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
  81. package/dist/dagre-CZ6P9L_h.js +1 -0
  82. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
  83. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
  84. package/dist/dagre-J_1oH0eY.mjs +1934 -0
  85. package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
  86. package/dist/defaultLocale-ybN1Vtvg.js +1 -0
  87. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
  88. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
  89. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
  90. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
  91. package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
  92. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
  93. package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
  94. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
  95. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
  96. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
  97. package/dist/dist-CXWJafG_.js +1 -0
  98. package/dist/dist-DNdLIC8h.mjs +59 -0
  99. package/dist/docmedown.cjs +125 -44
  100. package/dist/docmedown.iife.js +3477 -72
  101. package/dist/docmedown.mjs +10003 -4807
  102. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
  103. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
  104. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
  105. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
  106. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
  107. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
  108. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
  109. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
  110. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
  111. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
  112. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
  113. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
  114. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
  115. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
  116. package/dist/graphlib-BaETKKSa.js +1 -0
  117. package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
  118. package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
  119. package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
  120. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
  121. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
  122. package/dist/init-BJdqMO10.js +1 -0
  123. package/dist/init-CsQUQz36.mjs +13 -0
  124. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
  125. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
  126. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
  127. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
  128. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
  129. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
  130. package/dist/line-BEwhHSLl.js +1 -0
  131. package/dist/line-CiXRog8O.mjs +34 -0
  132. package/dist/linear-75tfjrny.js +1 -0
  133. package/dist/linear-Ncx_RuON.mjs +288 -0
  134. package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
  135. package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
  136. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
  137. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
  138. package/dist/ordinal-B1BNQwUR.mjs +65 -0
  139. package/dist/ordinal-B9aFWmF9.js +1 -0
  140. package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
  141. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
  142. package/dist/path-CnWkkRiY.mjs +84 -0
  143. package/dist/path-DIS6ck99.js +1 -0
  144. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
  145. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
  146. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
  147. package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
  148. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
  149. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
  150. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
  151. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
  152. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
  153. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
  154. package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
  155. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
  156. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
  157. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
  158. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
  159. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
  160. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
  161. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
  162. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
  163. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
  164. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
  165. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
  166. package/dist/rough.esm-ChRLLRha.js +1 -0
  167. package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
  168. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
  169. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
  170. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
  171. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
  172. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
  173. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
  174. package/dist/src-B4mN2BMl.js +1 -0
  175. package/dist/src-D_hsMyeP.mjs +2154 -0
  176. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
  177. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
  178. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
  179. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
  180. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
  181. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
  182. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
  183. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
  184. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
  185. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
  186. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
  187. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
  188. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
  189. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
  190. package/dist/types/runtime/app.d.ts +3 -3
  191. package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
  192. package/dist/types/runtime/components/Builtins.d.ts +3 -3
  193. package/dist/types/runtime/components/Content.d.ts +1 -1
  194. package/dist/types/runtime/components/DmdRegistry.d.ts +4 -2
  195. package/dist/types/runtime/components/Layout.d.ts +1 -1
  196. package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
  197. package/dist/types/runtime/components/Navbar.d.ts +1 -1
  198. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
  199. package/dist/types/runtime/components/Sidebar.d.ts +1 -1
  200. package/dist/types/runtime/components/TableOfContents.d.ts +2 -2
  201. package/dist/types/runtime/config-schema.d.ts +386 -0
  202. package/dist/types/runtime/config.d.ts +10 -3
  203. package/dist/types/runtime/index.d.ts +7 -5
  204. package/dist/types/runtime/loader/auto-indexer.d.ts +1 -1
  205. package/dist/types/runtime/loader/local-loader.d.ts +1 -1
  206. package/dist/types/runtime/loader/remote-github.d.ts +2 -2
  207. package/dist/types/runtime/loader/remote-gitlab.d.ts +2 -2
  208. package/dist/types/runtime/markdown/callouts.d.ts +1 -1
  209. package/dist/types/runtime/markdown/highlighter.d.ts +16 -16
  210. package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
  211. package/dist/types/runtime/markdown/parser.d.ts +1 -1
  212. package/dist/types/runtime/markdown/renderer.d.ts +1 -1
  213. package/dist/types/runtime/offline-export.d.ts +26 -0
  214. package/dist/types/runtime/provider/DocProvider.d.ts +5 -5
  215. package/dist/types/runtime/provider/ThemeProvider.d.ts +13 -6
  216. package/dist/types/runtime/search/SearchModal.d.ts +2 -2
  217. package/dist/types/runtime/search/search-index.d.ts +1 -1
  218. package/dist/types/runtime/types.d.ts +28 -99
  219. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
  220. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
  221. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
  222. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
  223. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
  224. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
  225. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
  226. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
  227. package/package.json +15 -4
  228. package/schemas/docs.schema.json +166 -0
  229. package/templates/README.md +4 -4
  230. package/templates/docs.json +5 -2
  231. package/templates/getting-started.md +1 -1
  232. package/templates/guides/custom-components.md +2 -0
  233. package/templates/index.html +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docmedown",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "The simplest MarkDown documenter yet. CLI & Web Script React SPA documentation engine.",
5
5
  "main": "./dist/docmedown.cjs",
6
6
  "module": "./dist/docmedown.mjs",
@@ -23,6 +23,7 @@
23
23
  "dist",
24
24
  "bin",
25
25
  "templates",
26
+ "schemas",
26
27
  "README.md",
27
28
  "LICENSE"
28
29
  ],
@@ -31,6 +32,9 @@
31
32
  "build:runtime": "vite build",
32
33
  "build:cli": "tsup",
33
34
  "typecheck": "tsc --noEmit",
35
+ "lint": "biome check .",
36
+ "lint:fix": "biome check --write .",
37
+ "format": "biome format --write .",
34
38
  "build:types": "tsc -p tsconfig.runtime.json",
35
39
  "build": "npm run build:runtime && npm run build:cli && npm run build:types",
36
40
  "docmedown": "node ./bin/docmedown.js",
@@ -42,8 +46,11 @@
42
46
  "build:docs:watch": "node ./bin/docmedown.js build ./docs --watch",
43
47
  "build:offline": "node ./bin/docmedown.js build ./docs",
44
48
  "config:docs": "node ./bin/docmedown.js config ./docs/docs.json",
45
- "test": "npx tsx --test tests/parser.test.ts tests/scanner.test.ts tests/runtime-integration.test.ts tests/package-smoke.test.ts",
46
- "test:release": "npm run typecheck && npm run test && npm run build && npm run build:docs && npm pack --dry-run",
49
+ "test": "npx tsx --test tests/parser.test.ts tests/scanner.test.ts tests/theme-schema.test.ts tests/runtime-integration.test.ts tests/package-smoke.test.ts tests/hosting.test.ts",
50
+ "test:artifacts": "npx tsx --test tests/offline-artifact.test.ts",
51
+ "test:release": "npm run typecheck && npm run lint && npm run test && npm run build && npm run build:docs && npm run test:artifacts && npm pack --dry-run",
52
+ "deploy": "node ./scripts/deploy.mjs",
53
+ "deploy:dry-run": "npm run deploy -- --dry-run",
47
54
  "prepublishOnly": "npm run test:release"
48
55
  },
49
56
  "keywords": [
@@ -81,13 +88,16 @@
81
88
  "chalk": "^4.1.2",
82
89
  "chokidar": "^3.6.0",
83
90
  "commander": "^12.1.0",
91
+ "esbuild": "^0.28.2",
84
92
  "gray-matter": "^4.0.3",
85
93
  "mime-types": "^2.1.35",
86
94
  "open": "^10.1.0",
87
95
  "prompts": "^2.4.2",
88
- "ws": "^8.18.0"
96
+ "ws": "^8.18.0",
97
+ "zod": "^4.4.3"
89
98
  },
90
99
  "devDependencies": {
100
+ "@biomejs/biome": "^2.5.10",
91
101
  "@types/node": "^22.5.0",
92
102
  "@types/prismjs": "^1.26.6",
93
103
  "@types/prompts": "^2.4.9",
@@ -97,6 +107,7 @@
97
107
  "@vitejs/plugin-react": "^6.1.0",
98
108
  "katex": "^0.16.11",
99
109
  "marked": "^14.1.1",
110
+ "mermaid": "^11.17.2",
100
111
  "minisearch": "^7.1.0",
101
112
  "prismjs": "^1.29.0",
102
113
  "react": "^18.3.1",
@@ -0,0 +1,166 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://raw.githubusercontent.com/gabrielmsilva00/docmedown/main/schemas/docs.schema.json",
4
+ "title": "DocMeDown documentation configuration",
5
+ "description": "Configuration for a DocMeDown documentation root. A directory containing docs.json is an independent documentation site.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "$schema": { "type": "string", "format": "uri" },
10
+ "name": { "type": "string", "minLength": 1 },
11
+ "tagline": { "type": "string" },
12
+ "description": { "type": "string" },
13
+ "version": { "type": "string" },
14
+ "rootDoc": { "type": "string", "minLength": 1 },
15
+ "source": { "$ref": "#/$defs/source" },
16
+ "theme": { "$ref": "#/$defs/theme" },
17
+ "nav": { "type": "array", "items": { "$ref": "#/$defs/navLink" } },
18
+ "socials": { "type": "array", "items": { "$ref": "#/$defs/socialLink" } },
19
+ "sidebar": { "type": "array", "items": { "$ref": "#/$defs/sidebarItem" } },
20
+ "autoIndex": { "$ref": "#/$defs/autoIndex" },
21
+ "search": { "$ref": "#/$defs/search" },
22
+ "footer": { "$ref": "#/$defs/footer" },
23
+ "componentsUrl": { "type": "string" },
24
+ "editUrl": { "type": "string" }
25
+ },
26
+ "$defs": {
27
+ "navLink": {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "required": ["label", "href"],
31
+ "properties": {
32
+ "label": { "type": "string", "minLength": 1 },
33
+ "href": { "type": "string", "minLength": 1 },
34
+ "external": { "type": "boolean" },
35
+ "icon": { "type": "string" }
36
+ }
37
+ },
38
+ "socialLink": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["type", "url"],
42
+ "properties": {
43
+ "type": { "enum": ["github", "gitlab", "twitter", "x", "discord", "custom"] },
44
+ "url": { "type": "string", "format": "uri" },
45
+ "label": { "type": "string" },
46
+ "icon": { "type": "string" }
47
+ }
48
+ },
49
+ "source": {
50
+ "oneOf": [
51
+ {
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": ["type", "repo"],
55
+ "properties": {
56
+ "type": { "const": "github" },
57
+ "repo": { "type": "string", "pattern": "^[^/\\s]+/[^/\\s]+$" },
58
+ "branch": { "type": "string", "minLength": 1 },
59
+ "docsDir": { "type": "string" },
60
+ "token": { "type": "string" },
61
+ "baseUrl": { "type": "string", "format": "uri" }
62
+ }
63
+ },
64
+ {
65
+ "type": "object",
66
+ "additionalProperties": false,
67
+ "required": ["type", "repo"],
68
+ "properties": {
69
+ "type": { "const": "gitlab" },
70
+ "repo": { "type": "string", "pattern": "^[^/\\s]+/[^/\\s]+$" },
71
+ "branch": { "type": "string", "minLength": 1 },
72
+ "docsDir": { "type": "string" },
73
+ "token": { "type": "string" },
74
+ "baseUrl": { "type": "string", "format": "uri" }
75
+ }
76
+ },
77
+ {
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "required": ["type", "baseUrl"],
81
+ "properties": {
82
+ "type": { "const": "raw" },
83
+ "baseUrl": { "type": "string", "format": "uri" },
84
+ "branch": { "type": "string", "minLength": 1 },
85
+ "docsDir": { "type": "string" },
86
+ "token": { "type": "string" }
87
+ }
88
+ }
89
+ ]
90
+ },
91
+ "theme": {
92
+ "type": "object",
93
+ "additionalProperties": false,
94
+ "properties": {
95
+ "family": {
96
+ "enum": ["atlas", "blueprint", "terminal", "editorial"],
97
+ "description": "Complete visual system controlling canvas, geometry, typography rhythm and motion."
98
+ },
99
+ "density": { "enum": ["comfortable", "compact"], "description": "Reading density across shell panels." },
100
+ "preset": {
101
+ "enum": ["indigo", "emerald", "sunset", "violet", "rose", "slate", "cyberpunk"],
102
+ "deprecated": true,
103
+ "description": "Legacy accent preset. Mapped automatically onto theme.family; use family instead."
104
+ },
105
+ "defaultMode": { "enum": ["light", "dark", "auto"] },
106
+ "accentColor": { "type": "string" },
107
+ "accentColorDark": { "type": "string" },
108
+ "fontFamily": { "type": "string" },
109
+ "codeTheme": { "enum": ["github", "dracula", "one-dark", "synthwave"] },
110
+ "favicon": { "type": "string" },
111
+ "logo": {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "properties": {
115
+ "light": { "type": "string" },
116
+ "dark": { "type": "string" },
117
+ "alt": { "type": "string" },
118
+ "text": { "type": "string" }
119
+ }
120
+ }
121
+ }
122
+ },
123
+ "autoIndex": {
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "properties": {
127
+ "enabled": { "type": "boolean" },
128
+ "exclude": { "type": "array", "items": { "type": "string", "minLength": 1 } },
129
+ "sort": { "enum": ["alphabetical", "frontmatter", "natural"] },
130
+ "defaultCollapsed": { "type": "boolean" }
131
+ }
132
+ },
133
+ "search": {
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "properties": {
137
+ "enabled": { "type": "boolean" },
138
+ "placeholder": { "type": "string" },
139
+ "maxResults": { "type": "integer", "minimum": 1, "maximum": 100 }
140
+ }
141
+ },
142
+ "footer": {
143
+ "type": "object",
144
+ "additionalProperties": false,
145
+ "properties": {
146
+ "copyright": { "type": "string" },
147
+ "links": { "type": "array", "items": { "$ref": "#/$defs/navLink" } },
148
+ "showBuiltWith": { "type": "boolean" }
149
+ }
150
+ },
151
+ "sidebarItem": {
152
+ "type": "object",
153
+ "additionalProperties": false,
154
+ "properties": {
155
+ "title": { "type": "string" },
156
+ "path": { "type": "string" },
157
+ "slug": { "type": "string" },
158
+ "icon": { "type": "string" },
159
+ "badge": { "type": "string" },
160
+ "badgeType": { "enum": ["info", "success", "warning", "new"] },
161
+ "collapsed": { "type": "boolean" },
162
+ "children": { "type": "array", "items": { "$ref": "#/$defs/sidebarItem" } }
163
+ }
164
+ }
165
+ }
166
+ }
@@ -17,11 +17,11 @@ tags: [getting-started, overview, docs]
17
17
 
18
18
  ## Key Features
19
19
 
20
- - **🚀 Zero Build Friction**: Host statically, view locally offline (`file:///`), or document remote GitHub/GitLab repositories dynamically.
21
- - **🎨 Glassmorphic Themes**: Sleek Dark & Light modes with multiple vibrant color presets (Indigo, Emerald, Sunset, Violet, Rose, Slate, Cyberpunk).
20
+ - **🚀 Zero Build Friction**: Host statically, build a self-contained `.dist/index.html` for `file:///`, or document remote GitHub/GitLab repositories dynamically.
21
+ - **🎨 Complete Theme Families**: Atlas, Blueprint, Terminal, and Editorial each provide distinct surfaces, geometry, typography, spacing, and diagram palettes across light and dark modes.
22
22
  - **⚡ Fast Search**: In-browser fuzzy search with `⌘K` command palette.
23
23
  - **⚛️ React Components**: Support for custom React components via `.dmd/` global registry or ready-to-use builtins.
24
- - **📊 Diagrams & Math**: Native support for **Mermaid.js** diagrams and **KaTeX** math formulas.
24
+ - **📊 Diagrams & Math**: A theme-aware Mermaid viewer with Fit, zoom, SVG export, and offline parity, plus KaTeX formulas.
25
25
 
26
26
  ---
27
27
 
@@ -46,7 +46,7 @@ graph LR
46
46
  > This is a standard informative note callout.
47
47
 
48
48
  > [!IMPORTANT]
49
- > Important guidelines or critical notices appear with highlighted violet accents.
49
+ > Important guidelines or critical notices use the active family's semantic emphasis colors.
50
50
 
51
51
  > [!WARNING]
52
52
  > Warnings help developers avoid common pitfalls and mistakes.
@@ -1,12 +1,15 @@
1
1
  {
2
+ "$schema": "https://raw.githubusercontent.com/gabrielmsilva00/docmedown/main/schemas/docs.schema.json",
2
3
  "name": "My Project Docs",
3
4
  "tagline": "The simplest Markdown documentation yet",
4
5
  "description": "Fast, modern documentation created with DocMeDown",
5
6
  "version": "1.0.0",
6
7
  "rootDoc": "README.md",
7
8
  "theme": {
8
- "preset": "indigo",
9
- "defaultMode": "auto"
9
+ "family": "atlas",
10
+ "density": "comfortable",
11
+ "defaultMode": "auto",
12
+ "codeTheme": "github"
10
13
  },
11
14
  "nav": [
12
15
  { "label": "Overview", "href": "#/README" },
@@ -25,7 +25,7 @@ This scaffolds your documentation directory, creates starter Markdown guides, an
25
25
 
26
26
  ## 2. Interactive Configuration TUI
27
27
 
28
- Need to customize your site title, theme palette, or configure a remote GitHub repository? Launch the interactive TUI configuration wizard:
28
+ Need to customize your site title, theme family, color mode, or configure a remote GitHub repository? Launch the interactive TUI configuration wizard:
29
29
 
30
30
  ```bash
31
31
  npx docmedown config
@@ -32,6 +32,8 @@ export default {
32
32
  };
33
33
  ```
34
34
 
35
+ `docmedown build` bundles this module and its relative JavaScript imports into both `_docs.js` and `.dist/index.html`, so the same component behavior works from a static host and `file:///` offline bundle.
36
+
35
37
  ---
36
38
 
37
39
  ## 2. Using Custom and Built-in Components
@@ -3,10 +3,8 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <link rel="icon" href="data:," />
6
7
  <title>DocMeDown Documentation</title>
7
- <link rel="preconnect" href="https://fonts.googleapis.com" />
8
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
10
8
  </head>
11
9
  <body>
12
10
  <div id="dmd-app"></div>
@@ -14,6 +12,6 @@
14
12
  <!-- Pre-compiled docs data (enables 100% offline file:/// double-click viewing without web server) -->
15
13
  <script src="./_docs.js"></script>
16
14
  <!-- DocMeDown Runtime Script -->
17
- <script src="./docmedown.iife.js"></script>
15
+ <script src="./docmedown.iife.js" data-docmedown-runtime></script>
18
16
  </body>
19
17
  </html>