polen 0.10.0-next.3 → 0.10.0-next.5

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 (393) hide show
  1. package/README.md +49 -375
  2. package/build/api/api.d.ts +1 -0
  3. package/build/api/api.d.ts.map +1 -1
  4. package/build/api/api.js +1 -0
  5. package/build/api/api.js.map +1 -1
  6. package/build/api/config/load.js +5 -5
  7. package/build/api/config/load.js.map +1 -1
  8. package/build/api/config-resolver/resolve.js +2 -2
  9. package/build/api/config-resolver/resolve.js.map +1 -1
  10. package/build/api/content/$$.d.ts +5 -0
  11. package/build/api/content/$$.d.ts.map +1 -0
  12. package/build/api/content/$$.js +5 -0
  13. package/build/api/content/$$.js.map +1 -0
  14. package/build/api/content/$.d.ts +2 -0
  15. package/build/api/content/$.d.ts.map +1 -0
  16. package/build/api/content/$.js +2 -0
  17. package/build/api/content/$.js.map +1 -0
  18. package/build/api/content/metadata.d.ts +10 -0
  19. package/build/api/content/metadata.d.ts.map +1 -0
  20. package/build/api/content/metadata.js +9 -0
  21. package/build/api/content/metadata.js.map +1 -0
  22. package/build/api/content/page.d.ts +11 -0
  23. package/build/api/content/page.d.ts.map +1 -0
  24. package/build/api/content/page.js +2 -0
  25. package/build/api/content/page.js.map +1 -0
  26. package/build/api/content/scan.d.ts +19 -0
  27. package/build/api/content/scan.d.ts.map +1 -0
  28. package/build/api/content/scan.js +57 -0
  29. package/build/api/content/scan.js.map +1 -0
  30. package/build/{lib/file-router/sidebar/types.d.ts → api/content/sidebar.d.ts} +8 -1
  31. package/build/api/content/sidebar.d.ts.map +1 -0
  32. package/build/api/content/sidebar.js +90 -0
  33. package/build/api/content/sidebar.js.map +1 -0
  34. package/build/api/schema/data-sources/schema-directory/schema-directory.js +1 -1
  35. package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
  36. package/build/api/static/index.d.ts +2 -0
  37. package/build/api/static/index.d.ts.map +1 -0
  38. package/build/api/static/index.js +2 -0
  39. package/build/api/static/index.js.map +1 -0
  40. package/build/api/static/manifest.d.ts +18 -0
  41. package/build/api/static/manifest.d.ts.map +1 -0
  42. package/build/api/static/manifest.js +13 -0
  43. package/build/api/static/manifest.js.map +1 -0
  44. package/build/api/static/rebase.d.ts +14 -0
  45. package/build/api/static/rebase.d.ts.map +1 -0
  46. package/build/api/static/rebase.js +110 -0
  47. package/build/api/static/rebase.js.map +1 -0
  48. package/build/api/static/static.d.ts +3 -0
  49. package/build/api/static/static.d.ts.map +1 -0
  50. package/build/api/static/static.js +3 -0
  51. package/build/api/static/static.js.map +1 -0
  52. package/build/api/vite/plugins/branding/index.js +4 -4
  53. package/build/api/vite/plugins/branding/index.js.map +1 -1
  54. package/build/api/vite/plugins/build.d.ts.map +1 -1
  55. package/build/api/vite/plugins/build.js +22 -1
  56. package/build/api/vite/plugins/build.js.map +1 -1
  57. package/build/api/vite/plugins/core.js +4 -4
  58. package/build/api/vite/plugins/core.js.map +1 -1
  59. package/build/api/vite/plugins/pages.d.ts +6 -8
  60. package/build/api/vite/plugins/pages.d.ts.map +1 -1
  61. package/build/api/vite/plugins/pages.js +99 -155
  62. package/build/api/vite/plugins/pages.js.map +1 -1
  63. package/build/api/vite/plugins/serve.js +5 -5
  64. package/build/api/vite/plugins/serve.js.map +1 -1
  65. package/build/cli/_/self-contained-mode.js +5 -5
  66. package/build/cli/_/self-contained-mode.js.map +1 -1
  67. package/build/cli/commands/static/$default.d.ts +3 -0
  68. package/build/cli/commands/static/$default.d.ts.map +1 -0
  69. package/build/cli/commands/static/$default.js +38 -0
  70. package/build/cli/commands/static/$default.js.map +1 -0
  71. package/build/cli/commands/static/rebase.d.ts +2 -0
  72. package/build/cli/commands/static/rebase.d.ts.map +1 -0
  73. package/build/cli/commands/static/rebase.js +26 -0
  74. package/build/cli/commands/static/rebase.js.map +1 -0
  75. package/build/cli/commands/static.d.ts +3 -0
  76. package/build/cli/commands/static.d.ts.map +1 -0
  77. package/build/cli/commands/static.js +5 -0
  78. package/build/cli/commands/static.js.map +1 -0
  79. package/build/exports/components.d.ts +2 -0
  80. package/build/exports/components.d.ts.map +1 -0
  81. package/build/exports/components.js +2 -0
  82. package/build/exports/components.js.map +1 -0
  83. package/build/lib/demos/builder.d.ts +83 -0
  84. package/build/lib/demos/builder.d.ts.map +1 -0
  85. package/build/lib/demos/builder.js +237 -0
  86. package/build/lib/demos/builder.js.map +1 -0
  87. package/build/lib/demos/config-schema.d.ts +243 -0
  88. package/build/lib/demos/config-schema.d.ts.map +1 -0
  89. package/build/lib/demos/config-schema.js +52 -0
  90. package/build/lib/demos/config-schema.js.map +1 -0
  91. package/build/lib/demos/config.d.ts +40 -0
  92. package/build/lib/demos/config.d.ts.map +1 -0
  93. package/build/lib/demos/config.js +180 -0
  94. package/build/lib/demos/config.js.map +1 -0
  95. package/build/lib/demos/index.d.ts +9 -0
  96. package/build/lib/demos/index.d.ts.map +1 -0
  97. package/build/lib/demos/index.js +8 -0
  98. package/build/lib/demos/index.js.map +1 -0
  99. package/build/lib/demos/ui/components.d.ts +33 -0
  100. package/build/lib/demos/ui/components.d.ts.map +1 -0
  101. package/build/lib/demos/ui/components.js +699 -0
  102. package/build/lib/demos/ui/components.js.map +1 -0
  103. package/build/lib/demos/ui/data-collector.d.ts +88 -0
  104. package/build/lib/demos/ui/data-collector.d.ts.map +1 -0
  105. package/build/lib/demos/ui/data-collector.js +174 -0
  106. package/build/lib/demos/ui/data-collector.js.map +1 -0
  107. package/build/lib/demos/ui/landing-page-cli.d.ts +3 -0
  108. package/build/lib/demos/ui/landing-page-cli.d.ts.map +1 -0
  109. package/build/lib/demos/ui/landing-page-cli.js +21 -0
  110. package/build/lib/demos/ui/landing-page-cli.js.map +1 -0
  111. package/build/lib/demos/ui/landing-page.d.ts +32 -0
  112. package/build/lib/demos/ui/landing-page.d.ts.map +1 -0
  113. package/build/lib/demos/ui/landing-page.js +83 -0
  114. package/build/lib/demos/ui/landing-page.js.map +1 -0
  115. package/build/lib/demos/ui/page-renderer.d.ts +26 -0
  116. package/build/lib/demos/ui/page-renderer.d.ts.map +1 -0
  117. package/build/lib/demos/ui/page-renderer.js +104 -0
  118. package/build/lib/demos/ui/page-renderer.js.map +1 -0
  119. package/build/lib/demos/utils.d.ts +14 -0
  120. package/build/lib/demos/utils.d.ts.map +1 -0
  121. package/build/lib/demos/utils.js +37 -0
  122. package/build/lib/demos/utils.js.map +1 -0
  123. package/build/lib/deployment/$$.d.ts +3 -0
  124. package/build/lib/deployment/$$.d.ts.map +1 -0
  125. package/build/lib/deployment/$$.js +3 -0
  126. package/build/lib/deployment/$$.js.map +1 -0
  127. package/build/lib/deployment/$.d.ts +2 -0
  128. package/build/lib/deployment/$.d.ts.map +1 -0
  129. package/build/lib/deployment/$.js +2 -0
  130. package/build/lib/deployment/$.js.map +1 -0
  131. package/build/lib/deployment/metadata.d.ts +32 -0
  132. package/build/lib/deployment/metadata.d.ts.map +1 -0
  133. package/build/lib/deployment/metadata.js +37 -0
  134. package/build/lib/deployment/metadata.js.map +1 -0
  135. package/build/lib/deployment/path-manager.d.ts +41 -0
  136. package/build/lib/deployment/path-manager.d.ts.map +1 -0
  137. package/build/lib/deployment/path-manager.js +157 -0
  138. package/build/lib/deployment/path-manager.js.map +1 -0
  139. package/build/lib/file-router/file-router.d.ts +0 -2
  140. package/build/lib/file-router/file-router.d.ts.map +1 -1
  141. package/build/lib/file-router/file-router.js +0 -2
  142. package/build/lib/file-router/file-router.js.map +1 -1
  143. package/build/lib/file-router/route.d.ts +2 -0
  144. package/build/lib/file-router/route.d.ts.map +1 -1
  145. package/build/lib/file-router/route.js.map +1 -1
  146. package/build/lib/file-router/scan.d.ts.map +1 -1
  147. package/build/lib/file-router/scan.js +16 -12
  148. package/build/lib/file-router/scan.js.map +1 -1
  149. package/build/lib/github-actions/git-controller.d.ts +50 -0
  150. package/build/lib/github-actions/git-controller.d.ts.map +1 -0
  151. package/build/lib/github-actions/git-controller.js +90 -0
  152. package/build/lib/github-actions/git-controller.js.map +1 -0
  153. package/build/lib/github-actions/github-actions.d.ts +7 -0
  154. package/build/lib/github-actions/github-actions.d.ts.map +1 -0
  155. package/build/lib/github-actions/github-actions.js +7 -0
  156. package/build/lib/github-actions/github-actions.js.map +1 -0
  157. package/build/lib/github-actions/index.d.ts +2 -0
  158. package/build/lib/github-actions/index.d.ts.map +1 -0
  159. package/build/lib/github-actions/index.js +2 -0
  160. package/build/lib/github-actions/index.js.map +1 -0
  161. package/build/lib/github-actions/lib/get-pr-deployments.d.ts +12 -0
  162. package/build/lib/github-actions/lib/get-pr-deployments.d.ts.map +1 -0
  163. package/build/lib/github-actions/lib/get-pr-deployments.js +51 -0
  164. package/build/lib/github-actions/lib/get-pr-deployments.js.map +1 -0
  165. package/build/lib/github-actions/pr-controller.d.ts +39 -0
  166. package/build/lib/github-actions/pr-controller.d.ts.map +1 -0
  167. package/build/lib/github-actions/pr-controller.js +122 -0
  168. package/build/lib/github-actions/pr-controller.js.map +1 -0
  169. package/build/lib/github-actions/run-step-cli.d.ts +9 -0
  170. package/build/lib/github-actions/run-step-cli.d.ts.map +1 -0
  171. package/build/lib/github-actions/run-step-cli.js +71 -0
  172. package/build/lib/github-actions/run-step-cli.js.map +1 -0
  173. package/build/lib/github-actions/runner.d.ts +17 -0
  174. package/build/lib/github-actions/runner.d.ts.map +1 -0
  175. package/build/lib/github-actions/runner.js +195 -0
  176. package/build/lib/github-actions/runner.js.map +1 -0
  177. package/build/lib/github-actions/schemas/context.d.ts +933 -0
  178. package/build/lib/github-actions/schemas/context.d.ts.map +1 -0
  179. package/build/lib/github-actions/schemas/context.js +407 -0
  180. package/build/lib/github-actions/schemas/context.js.map +1 -0
  181. package/build/lib/github-actions/schemas/index.d.ts +5 -0
  182. package/build/lib/github-actions/schemas/index.d.ts.map +1 -0
  183. package/build/lib/github-actions/schemas/index.js +5 -0
  184. package/build/lib/github-actions/schemas/index.js.map +1 -0
  185. package/build/lib/github-actions/search-module.d.ts +38 -0
  186. package/build/lib/github-actions/search-module.d.ts.map +1 -0
  187. package/build/lib/github-actions/search-module.js +40 -0
  188. package/build/lib/github-actions/search-module.js.map +1 -0
  189. package/build/lib/github-actions/step.d.ts +163 -0
  190. package/build/lib/github-actions/step.d.ts.map +1 -0
  191. package/build/lib/github-actions/step.js +121 -0
  192. package/build/lib/github-actions/step.js.map +1 -0
  193. package/build/lib/helpers.d.ts.map +1 -1
  194. package/build/lib/helpers.js +5 -3
  195. package/build/lib/helpers.js.map +1 -1
  196. package/build/lib/kit-temp.d.ts +54 -0
  197. package/build/lib/kit-temp.d.ts.map +1 -1
  198. package/build/lib/kit-temp.js +80 -14
  199. package/build/lib/kit-temp.js.map +1 -1
  200. package/build/lib/kit-temp.test-d.d.ts +2 -0
  201. package/build/lib/kit-temp.test-d.d.ts.map +1 -0
  202. package/build/lib/kit-temp.test-d.js +75 -0
  203. package/build/lib/kit-temp.test-d.js.map +1 -0
  204. package/build/lib/mask/$$.d.ts +3 -0
  205. package/build/lib/mask/$$.d.ts.map +1 -0
  206. package/build/lib/mask/$$.js +3 -0
  207. package/build/lib/mask/$$.js.map +1 -0
  208. package/build/lib/mask/$.d.ts +2 -0
  209. package/build/lib/mask/$.d.ts.map +1 -0
  210. package/build/lib/mask/$.js +2 -0
  211. package/build/lib/mask/$.js.map +1 -0
  212. package/build/lib/mask/apply.d.ts +86 -0
  213. package/build/lib/mask/apply.d.ts.map +1 -0
  214. package/build/lib/mask/apply.js +86 -0
  215. package/build/lib/mask/apply.js.map +1 -0
  216. package/build/lib/mask/mask.d.ts +124 -0
  217. package/build/lib/mask/mask.d.ts.map +1 -0
  218. package/build/lib/mask/mask.js +137 -0
  219. package/build/lib/mask/mask.js.map +1 -0
  220. package/build/lib/mask/mask.test-d.d.ts +2 -0
  221. package/build/lib/mask/mask.test-d.d.ts.map +1 -0
  222. package/build/lib/mask/mask.test-d.js +102 -0
  223. package/build/lib/mask/mask.test-d.js.map +1 -0
  224. package/build/lib/task/$$.d.ts +3 -0
  225. package/build/lib/task/$$.d.ts.map +1 -0
  226. package/build/lib/task/$$.js +3 -0
  227. package/build/lib/task/$$.js.map +1 -0
  228. package/build/lib/task/$.d.ts +2 -0
  229. package/build/lib/task/$.d.ts.map +1 -0
  230. package/build/lib/task/$.js +2 -0
  231. package/build/lib/task/$.js.map +1 -0
  232. package/build/lib/task/report.d.ts +28 -0
  233. package/build/lib/task/report.d.ts.map +1 -0
  234. package/build/lib/task/report.js +33 -0
  235. package/build/lib/task/report.js.map +1 -0
  236. package/build/lib/task/task.d.ts +44 -0
  237. package/build/lib/task/task.d.ts.map +1 -0
  238. package/build/lib/task/task.js +63 -0
  239. package/build/lib/task/task.js.map +1 -0
  240. package/build/lib/version-history/index.d.ts +3 -0
  241. package/build/lib/version-history/index.d.ts.map +1 -0
  242. package/build/lib/version-history/index.js +2 -0
  243. package/build/lib/version-history/index.js.map +1 -0
  244. package/build/lib/version-history/types.d.ts +64 -0
  245. package/build/lib/version-history/types.d.ts.map +1 -0
  246. package/build/lib/version-history/types.js +5 -0
  247. package/build/lib/version-history/types.js.map +1 -0
  248. package/build/lib/version-history/version-history.d.ts +85 -0
  249. package/build/lib/version-history/version-history.d.ts.map +1 -0
  250. package/build/lib/version-history/version-history.js +248 -0
  251. package/build/lib/version-history/version-history.js.map +1 -0
  252. package/build/sandbox.d.ts +2 -0
  253. package/build/sandbox.d.ts.map +1 -0
  254. package/build/sandbox.js +3 -0
  255. package/build/sandbox.js.map +1 -0
  256. package/build/singletons/debug.d.ts +1 -1
  257. package/build/singletons/debug.d.ts.map +1 -1
  258. package/build/singletons/debug.js +1 -1
  259. package/build/singletons/debug.js.map +1 -1
  260. package/build/template/components/Link.jsx +1 -1
  261. package/build/template/components/content/$$.d.ts +2 -0
  262. package/build/template/components/content/$$.d.ts.map +1 -0
  263. package/build/template/components/content/$$.js +2 -0
  264. package/build/template/components/content/$$.js.map +1 -0
  265. package/build/template/components/sidebar/Sidebar.d.ts +2 -2
  266. package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
  267. package/build/template/components/sidebar/SidebarItem.d.ts +3 -3
  268. package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
  269. package/build/template/components/sidebar/SidebarItem.jsx +1 -1
  270. package/build/template/components/sidebar/SidebarItem.jsx.map +1 -1
  271. package/package.json +23 -9
  272. package/src/api/api.ts +1 -0
  273. package/src/api/config/load.ts +5 -5
  274. package/src/api/config-resolver/resolve.ts +2 -2
  275. package/src/api/content/$$.ts +4 -0
  276. package/src/api/content/$.test.ts +72 -0
  277. package/src/api/content/$.ts +1 -0
  278. package/src/api/content/metadata.ts +11 -0
  279. package/src/api/content/page.ts +12 -0
  280. package/src/api/content/scan.ts +82 -0
  281. package/src/api/content/sidebar.ts +136 -0
  282. package/src/api/schema/data-sources/schema-directory/schema-directory.ts +1 -1
  283. package/src/api/singletons/markdown/markdown.test.ts +1 -1
  284. package/src/api/static/index.ts +1 -0
  285. package/src/api/static/manifest.test.ts +106 -0
  286. package/src/api/static/manifest.ts +16 -0
  287. package/src/api/static/rebase.test.ts +229 -0
  288. package/src/api/static/rebase.ts +140 -0
  289. package/src/api/static/static.ts +2 -0
  290. package/src/api/utils/asset-url/asset-url.test.ts +4 -4
  291. package/src/api/vite/plugins/branding/index.ts +4 -4
  292. package/src/api/vite/plugins/build.ts +25 -1
  293. package/src/api/vite/plugins/core.ts +5 -5
  294. package/src/api/vite/plugins/pages.ts +117 -171
  295. package/src/api/vite/plugins/serve.ts +5 -5
  296. package/src/cli/_/self-contained-mode.ts +5 -5
  297. package/src/cli/commands/static/$default.ts +43 -0
  298. package/src/cli/commands/static/rebase.ts +37 -0
  299. package/src/cli/commands/static.ts +6 -0
  300. package/src/exports/components.ts +1 -0
  301. package/src/lib/demos/builder.ts +298 -0
  302. package/src/lib/demos/config-schema.ts +56 -0
  303. package/src/lib/demos/config.test.ts +193 -0
  304. package/src/lib/demos/config.ts +205 -0
  305. package/src/lib/demos/index.ts +9 -0
  306. package/src/lib/demos/ui/components.ts +739 -0
  307. package/src/lib/demos/ui/data-collector.ts +246 -0
  308. package/src/lib/demos/ui/landing-page-cli.ts +23 -0
  309. package/src/lib/demos/ui/landing-page.ts +126 -0
  310. package/src/lib/demos/ui/page-renderer.ts +124 -0
  311. package/src/lib/demos/utils.ts +43 -0
  312. package/src/lib/deployment/$$.ts +2 -0
  313. package/src/lib/deployment/$.test.ts +53 -0
  314. package/src/lib/deployment/$.ts +1 -0
  315. package/src/lib/deployment/metadata.ts +40 -0
  316. package/src/lib/deployment/path-manager.ts +186 -0
  317. package/src/lib/file-router/file-router.ts +0 -2
  318. package/src/lib/file-router/linter.test.ts +2 -0
  319. package/src/lib/file-router/route.ts +2 -0
  320. package/src/lib/file-router/scan.ts +19 -13
  321. package/src/lib/github-actions/git-controller.ts +151 -0
  322. package/src/lib/github-actions/github-actions.ts +6 -0
  323. package/src/lib/github-actions/index.ts +1 -0
  324. package/src/lib/github-actions/lib/get-pr-deployments.ts +76 -0
  325. package/src/lib/github-actions/pr-controller.test.ts +172 -0
  326. package/src/lib/github-actions/pr-controller.ts +183 -0
  327. package/src/lib/github-actions/run-step-cli.ts +84 -0
  328. package/src/lib/github-actions/runner.test.ts +192 -0
  329. package/src/lib/github-actions/runner.ts +226 -0
  330. package/src/lib/github-actions/schemas/context.ts +424 -0
  331. package/src/lib/github-actions/schemas/index.ts +5 -0
  332. package/src/lib/github-actions/search-module.test.ts +110 -0
  333. package/src/lib/github-actions/search-module.ts +76 -0
  334. package/src/lib/github-actions/step.test.ts +149 -0
  335. package/src/lib/github-actions/step.ts +232 -0
  336. package/src/lib/helpers.ts +4 -3
  337. package/src/lib/kit-temp.test-d.ts +115 -0
  338. package/src/lib/kit-temp.test.ts +127 -0
  339. package/src/lib/kit-temp.ts +126 -14
  340. package/src/lib/mask/$$.ts +2 -0
  341. package/src/lib/mask/$.test.ts +248 -0
  342. package/src/lib/mask/$.ts +1 -0
  343. package/src/lib/mask/apply.ts +134 -0
  344. package/src/lib/mask/mask.test-d.ts +144 -0
  345. package/src/lib/mask/mask.ts +244 -0
  346. package/src/lib/shiki/shiki.test.ts +1 -1
  347. package/src/lib/task/$$.ts +2 -0
  348. package/src/lib/task/$.test.ts +209 -0
  349. package/src/lib/task/$.ts +1 -0
  350. package/src/lib/task/report.ts +72 -0
  351. package/src/lib/task/task.ts +112 -0
  352. package/src/lib/version-history/index.test.ts +188 -0
  353. package/src/lib/version-history/index.ts +4 -0
  354. package/src/lib/version-history/types.ts +68 -0
  355. package/src/lib/version-history/version-history.ts +293 -0
  356. package/src/sandbox.ts +1 -0
  357. package/src/singletons/debug.ts +1 -1
  358. package/src/template/components/Link.tsx +1 -1
  359. package/src/template/components/content/$$.ts +1 -0
  360. package/src/template/components/sidebar/Sidebar.tsx +2 -2
  361. package/src/template/components/sidebar/SidebarItem.tsx +8 -8
  362. package/build/lib/file-router/scan-tree.d.ts +0 -20
  363. package/build/lib/file-router/scan-tree.d.ts.map +0 -1
  364. package/build/lib/file-router/scan-tree.js +0 -158
  365. package/build/lib/file-router/scan-tree.js.map +0 -1
  366. package/build/lib/file-router/sidebar/index.d.ts +0 -3
  367. package/build/lib/file-router/sidebar/index.d.ts.map +0 -1
  368. package/build/lib/file-router/sidebar/index.js +0 -4
  369. package/build/lib/file-router/sidebar/index.js.map +0 -1
  370. package/build/lib/file-router/sidebar/sidebar-tree.d.ts +0 -9
  371. package/build/lib/file-router/sidebar/sidebar-tree.d.ts.map +0 -1
  372. package/build/lib/file-router/sidebar/sidebar-tree.js +0 -85
  373. package/build/lib/file-router/sidebar/sidebar-tree.js.map +0 -1
  374. package/build/lib/file-router/sidebar/types.d.ts.map +0 -1
  375. package/build/lib/file-router/sidebar/types.js +0 -2
  376. package/build/lib/file-router/sidebar/types.js.map +0 -1
  377. package/build/lib/tree/index.d.ts +0 -3
  378. package/build/lib/tree/index.d.ts.map +0 -1
  379. package/build/lib/tree/index.js +0 -2
  380. package/build/lib/tree/index.js.map +0 -1
  381. package/build/lib/tree/tree.d.ts +0 -62
  382. package/build/lib/tree/tree.d.ts.map +0 -1
  383. package/build/lib/tree/tree.js +0 -134
  384. package/build/lib/tree/tree.js.map +0 -1
  385. package/src/lib/file-router/scan-tree.test.ts +0 -189
  386. package/src/lib/file-router/scan-tree.ts +0 -205
  387. package/src/lib/file-router/sidebar/index.ts +0 -3
  388. package/src/lib/file-router/sidebar/sidebar-tree.test.ts +0 -123
  389. package/src/lib/file-router/sidebar/sidebar-tree.ts +0 -110
  390. package/src/lib/file-router/sidebar/types.ts +0 -19
  391. package/src/lib/tree/index.ts +0 -2
  392. package/src/lib/tree/tree.test.ts +0 -117
  393. package/src/lib/tree/tree.ts +0 -183
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../../src/template/components/content/$$.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { Callout, Tabs } from '@radix-ui/themes';
2
+ //# sourceMappingURL=$$.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$$.js","sourceRoot":"","sources":["../../../../src/template/components/content/$$.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,7 +1,7 @@
1
- import type { FileRouter } from '#lib/file-router/index';
1
+ import type { Content } from '#api/content/$';
2
2
  import type { BoxOwnProps, LayoutProps, MarginProps } from '@radix-ui/themes/props';
3
3
  interface SidebarProps extends LayoutProps, MarginProps, BoxOwnProps {
4
- data: FileRouter.Sidebar.Item[];
4
+ data: Content.Item[];
5
5
  style?: React.CSSProperties;
6
6
  }
7
7
  export declare const Sidebar: ({ data, ...props }: SidebarProps) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGnF,UAAU,YAAa,SAAQ,WAAW,EAAE,WAAW,EAAE,WAAW;IAClE,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,CAAA;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED,eAAO,MAAM,OAAO,GAAI,oBAAoB,YAAY,gCAiBvD,CAAA"}
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGnF,UAAU,YAAa,SAAQ,WAAW,EAAE,WAAW,EAAE,WAAW;IAClE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED,eAAO,MAAM,OAAO,GAAI,oBAAoB,YAAY,gCAiBvD,CAAA"}
@@ -1,9 +1,9 @@
1
+ import type { Content } from '#api/content/$';
1
2
  import type { React } from '#dep/react/index';
2
- import type { FileRouter } from '#lib/file-router/index';
3
3
  export declare const Items: React.FC<{
4
- items: FileRouter.Sidebar.Item[];
4
+ items: Content.Item[];
5
5
  }>;
6
6
  export declare const Item: React.FC<{
7
- item: FileRouter.Sidebar.Item;
7
+ item: Content.Item;
8
8
  }>;
9
9
  //# sourceMappingURL=SidebarItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAMxD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,CAAA;CAAE,CAWhE,CAAA;AAUD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,CAAA;CAAE,CAU5D,CAAA"}
1
+ {"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAM7C,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;CAAE,CAWrD,CAAA;AAUD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAA;CAAE,CAUjD,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Texts } from '#template/components/Texts/index';
2
- import { Box, Flex, Text } from '@radix-ui/themes';
2
+ import { Box, Flex } from '@radix-ui/themes';
3
3
  import { useLocation } from 'react-router';
4
4
  import { getPathActiveReport, Link } from "../Link.jsx";
5
5
  export const Items = ({ items }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarItem.jsx","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAA;AACxD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,c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C,KAAK,CAAC,CAAC;YACL,cAAc,EAAE,MAAM;YACtB,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;YACjD,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa;YAC9G,uBAAuB,EAAE,iBAAiB;YAC1C,oBAAoB,EAAE,iBAAiB;SACxC,CAAC,CAEF;MAAA,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CACtC;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polen",
3
- "version": "0.10.0-next.3",
3
+ "version": "0.10.0-next.5",
4
4
  "type": "module",
5
5
  "description": "A framework for delightful GraphQL developer portals",
6
6
  "author": {
@@ -35,13 +35,24 @@
35
35
  "#*": {
36
36
  "source": "./src/*.ts",
37
37
  "default": "./build/*.js"
38
- }
38
+ },
39
+ "#lib/mask": "./src/lib/mask/$.ts",
40
+ "#lib/mask/mask": "./src/lib/mask/$$.ts",
41
+ "#lib/task": "./src/lib/task/$.ts",
42
+ "#lib/task/task": "./src/lib/task/$$.ts",
43
+ "#lib/deployment": "./src/lib/deployment/$.ts",
44
+ "#lib/deployment/deployment": "./src/lib/deployment/$$.ts",
45
+ "#template/components/content/$$": "./src/template/components/content/$$.ts"
39
46
  },
40
47
  "exports": {
41
48
  ".": {
42
49
  "source": "./src/exports/index.ts",
43
50
  "default": "./build/exports/index.js"
44
51
  },
52
+ "./components": {
53
+ "source": "./src/exports/components.ts",
54
+ "default": "./build/exports/components.js"
55
+ },
45
56
  "./polen": {
46
57
  "source": "./src/exports/polen.ts",
47
58
  "default": "./build/exports/polen.js"
@@ -86,8 +97,9 @@
86
97
  "@types/jsesc": "^3.0.3",
87
98
  "@vitejs/plugin-react": "^4.5.2",
88
99
  "@vitejs/plugin-react-oxc": "^0.2.3",
100
+ "@vltpkg/semver": "0.0.0-15",
89
101
  "@vue/reactivity": "^3.5.16",
90
- "@wollybeard/kit": "^0.36.0",
102
+ "@wollybeard/kit": "^0.41.0",
91
103
  "@wollybeard/projector": "^0.2.0",
92
104
  "ansis": "^4.1.0",
93
105
  "clean-stack": "^5.2.0",
@@ -97,6 +109,7 @@
97
109
  "fuse.js": "^7.1.0",
98
110
  "graffle": "8.0.0-next.163",
99
111
  "graphql": "^16.11.0",
112
+ "gray-matter": "^4.0.3",
100
113
  "hono": "^4.7.11",
101
114
  "jsesc": "^3.1.0",
102
115
  "jsonc-parser": "^3.3.1",
@@ -105,6 +118,7 @@
105
118
  "react-router": "^7.6.2",
106
119
  "rehype-stringify": "^10.0.1",
107
120
  "remark": "^15.0.1",
121
+ "remark-frontmatter": "^5.0.0",
108
122
  "remark-gfm": "^4.0.1",
109
123
  "remark-html": "^16.0.1",
110
124
  "remark-parse": "^11.0.0",
@@ -112,6 +126,7 @@
112
126
  "resolve.imports": "^2.0.3",
113
127
  "rolldown": "1.0.0-beta.16",
114
128
  "shiki": "^3.6.0",
129
+ "simple-git": "^3.28.0",
115
130
  "source-map": "^0.7.4",
116
131
  "superjson": "^2.2.2",
117
132
  "tinyglobby": "^0.2.14",
@@ -156,6 +171,7 @@
156
171
  "eslint-plugin-react-refresh": "^0.4.20",
157
172
  "eslint-plugin-tsdoc": "^0.4.0",
158
173
  "eslint-plugin-unused-imports": "^4.1.4",
174
+ "fast-check": "^4.1.1",
159
175
  "fs-jetpack": "^5.1.0",
160
176
  "get-port-please": "^3.1.2",
161
177
  "globals": "^16.2.0",
@@ -168,14 +184,10 @@
168
184
  "typescript-eslint": "^8.34.1",
169
185
  "vite-tsconfig-paths": "^5.1.4",
170
186
  "vitest": "^3.2.3",
171
- "zod": "^3.25.65"
187
+ "zod": "3.25.67"
172
188
  },
173
189
  "packageManager": "pnpm@10.11.1",
174
190
  "scripts": {
175
- "gh:demos-rebuild": "gh workflow run demos-rebuild.yaml -f since_version=0.9.0-next.8",
176
- "gh:demos-rebuild:list": "gh run list --workflow=demos-rebuild.yaml",
177
- "gh:demos-rebuild:logs": "gh run view $(gh run list --workflow=demos-rebuild.yaml --limit=1 --json databaseId -q '.[0].databaseId') --log",
178
- "gh:demos-rebuild:watch": "gh run watch $(gh run list --workflow=demos-rebuild.yaml --limit=1 --json databaseId -q '.[0].databaseId')",
179
191
  "sandbox": "tsx src/sandbox",
180
192
  "sandbox:watch": "tsx --watch src/sandbox",
181
193
  "sb": "pnpm sandbox",
@@ -186,7 +198,9 @@
186
198
  "test:unit": "vitest",
187
199
  "dev": "pnpm build:watch:emit",
188
200
  "dev:pokemon": "pnpm polen dev --project examples/pokemon",
189
- "dev:demo-index": "node --no-warnings ./scripts/build-demos-index.ts --mode dev --serve",
201
+ "dev:hive": "pnpm polen dev --project examples/hive",
202
+ "dev:github": "pnpm polen dev --project examples/github",
203
+ "dev:demo-index": "node --no-warnings --experimental-transform-types --conditions source ./src/lib/demos/ui/landing-page-cli.ts --mode dev --serve",
190
204
  "build:demos": "zx ./scripts/build-demos.mjs",
191
205
  "build:clean": "pnpm tsc --build tsconfig.build.json --clean && rm -rf build",
192
206
  "build": "tsc --build tsconfig.build.json",
package/src/api/api.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './builder/index.ts'
2
2
  export * from './config-resolver/index.ts'
3
3
  export * from './config/index.ts'
4
+ export * from './static/index.ts'
@@ -1,7 +1,7 @@
1
1
  import type { SelfContainedModeHooksData } from '#cli/_/self-contained-mode'
2
2
  import { assertOptionalPathAbsolute, pickFirstPathExisting } from '#lib/kit-temp'
3
3
  import { packagePaths } from '#package-paths'
4
- import { debug } from '#singletons/debug'
4
+ import { debugPolen } from '#singletons/debug'
5
5
  import type { Prom } from '@wollybeard/kit'
6
6
  import { Path } from '@wollybeard/kit'
7
7
  import * as Module from 'node:module'
@@ -20,7 +20,7 @@ export interface LoadOptions {
20
20
  let isSelfContainedModeRegistered = false
21
21
 
22
22
  export const load = async (options: LoadOptions): Promise<ConfigInput> => {
23
- const _debug = debug.sub(`load`)
23
+ const debug = debugPolen.sub(`load`)
24
24
  assertOptionalPathAbsolute(options.dir)
25
25
 
26
26
  //
@@ -35,7 +35,7 @@ export const load = async (options: LoadOptions): Promise<ConfigInput> => {
35
35
  const initializeData: SelfContainedModeHooksData = {
36
36
  projectDirPathExp: options.dir,
37
37
  }
38
- _debug(`register node module hooks`, { data: initializeData })
38
+ debug(`register node module hooks`, { data: initializeData })
39
39
  // TODO: would be simpler to use sync hooks
40
40
  // https://nodejs.org/api/module.html#synchronous-hooks-accepted-by-moduleregisterhooks
41
41
  // Requires NodeJS 22.15+ -- which is not working with PW until its next release.
@@ -67,7 +67,7 @@ export const load = async (options: LoadOptions): Promise<ConfigInput> => {
67
67
  // eslint-disable-next-line
68
68
  module = await import(filePath)
69
69
  }
70
- _debug(`imported config module`)
70
+ debug(`imported config module`)
71
71
 
72
72
  // // Use dynamic import with file URL to support Windows
73
73
  // const configUrl = pathToFileURL(configPath).href
@@ -97,7 +97,7 @@ export const load = async (options: LoadOptions): Promise<ConfigInput> => {
97
97
  configInput.advanced.isSelfContainedMode = true
98
98
  }
99
99
 
100
- _debug(`loaded config input`, configInput)
100
+ debug(`loaded config input`, configInput)
101
101
 
102
102
  return configInput
103
103
  }
@@ -1,4 +1,4 @@
1
- import { debug } from '#singletons/debug'
1
+ import { debugPolen } from '#singletons/debug'
2
2
  import { type ConfigInput, normalizeInput } from '../config/configurator.ts'
3
3
  import { load, type LoadOptions } from '../config/load.ts'
4
4
  import { mergeInputs } from '../config/merge.ts'
@@ -12,7 +12,7 @@ export const fromFile = async (options: ResolveFromFileOptions): Promise<ViteUse
12
12
  const configInput = await load(options)
13
13
  const configInputMerged = mergeInputs(configInput, options.overrides)
14
14
  const config = await fromMemory(configInputMerged, options.dir)
15
- debug(`resolved config`, config)
15
+ debugPolen(`resolved config`, config)
16
16
  return config
17
17
  }
18
18
 
@@ -0,0 +1,4 @@
1
+ export * from './metadata.ts'
2
+ export * from './page.ts'
3
+ export * from './scan.ts'
4
+ export * from './sidebar.ts'
@@ -0,0 +1,72 @@
1
+ import { Fs, Path } from '@wollybeard/kit'
2
+ import { afterEach, beforeEach, describe, expect, test } from 'vitest'
3
+ import { Content } from './$.ts'
4
+
5
+ describe('content', () => {
6
+ let testDir: string
7
+
8
+ beforeEach(async () => {
9
+ testDir = await Fs.makeTemporaryDirectory()
10
+ })
11
+
12
+ afterEach(async () => {
13
+ if (testDir && await Fs.exists(testDir)) {
14
+ await Fs.remove(testDir)
15
+ }
16
+ })
17
+
18
+ describe('MetadataSchema', () => {
19
+ test('validates metadata correctly', () => {
20
+ const valid = Content.MetadataSchema.safeParse({
21
+ description: 'Test page description',
22
+ hidden: true,
23
+ })
24
+ expect(valid.success).toBe(true)
25
+ expect(valid.data).toEqual({
26
+ description: 'Test page description',
27
+ hidden: true,
28
+ })
29
+ })
30
+
31
+ test('applies default values', () => {
32
+ const result = Content.MetadataSchema.safeParse({
33
+ description: 'Just a description',
34
+ })
35
+ expect(result.success).toBe(true)
36
+ expect(result.data?.hidden).toBe(false)
37
+ })
38
+
39
+ test('rejects invalid values', () => {
40
+ const result = Content.MetadataSchema.safeParse({
41
+ hidden: 'not a boolean',
42
+ invalid_field: 123,
43
+ })
44
+ expect(result.success).toBe(false)
45
+ })
46
+ })
47
+
48
+ describe('scan', () => {
49
+ test('scans directory and extracts metadata', async () => {
50
+ const filePath = Path.join(testDir, 'page.md')
51
+ await Fs.write({
52
+ path: filePath,
53
+ content: `---
54
+ description: Page description
55
+ ---
56
+ Content`,
57
+ })
58
+
59
+ const result = await Content.scan({
60
+ dir: testDir,
61
+ glob: '**/*.md',
62
+ })
63
+
64
+ expect(result.list).toHaveLength(1)
65
+ expect(result.list[0]?.metadata).toEqual({
66
+ description: 'Page description',
67
+ hidden: false,
68
+ })
69
+ expect(result.diagnostics).toEqual([])
70
+ })
71
+ })
72
+ })
@@ -0,0 +1 @@
1
+ export * as Content from './$$.ts'
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod/v4'
2
+
3
+ /**
4
+ * Schema for validating front matter content
5
+ */
6
+ export const MetadataSchema = z.object({
7
+ description: z.string().optional(),
8
+ hidden: z.boolean().default(false),
9
+ })
10
+
11
+ export type Metadata = z.infer<typeof MetadataSchema>
@@ -0,0 +1,12 @@
1
+ import type { FileRouter } from '#lib/file-router/index'
2
+ import type { Metadata } from './metadata.ts'
3
+
4
+ export type { Metadata }
5
+
6
+ /**
7
+ * A route with its associated metadata
8
+ */
9
+ export interface Page {
10
+ route: FileRouter.Route
11
+ metadata: Metadata
12
+ }
@@ -0,0 +1,82 @@
1
+ import { FileRouter } from '#lib/file-router/index'
2
+ import { Fs, Path, Tree } from '@wollybeard/kit'
3
+ import matter from 'gray-matter'
4
+ import { MetadataSchema } from './metadata.ts'
5
+ import type { Page } from './page.ts'
6
+
7
+ export interface ScanResult {
8
+ list: Page[]
9
+ tree: Tree.Tree<Page>
10
+ diagnostics: FileRouter.Diagnostic[]
11
+ }
12
+
13
+ /**
14
+ * Scan a directory for pages and extract metadata from their front matter
15
+ * By default, hidden pages are filtered out from both the pages list and route tree.
16
+ */
17
+ export const scan = async (options: {
18
+ dir: string
19
+ glob?: string
20
+ /** Include hidden pages in the result (useful for debugging or admin interfaces) */
21
+ includeHidden?: boolean
22
+ }): Promise<ScanResult> => {
23
+ // Scan for routes
24
+ const routeScanResult = await FileRouter.scan({
25
+ dir: options.dir,
26
+ glob: options.glob ?? '**/*.{md,mdx}',
27
+ })
28
+
29
+ // Create pages with metadata (id/parentId now come from route)
30
+ const allPages = await Promise.all(
31
+ routeScanResult.routes.map(route => readRoute(route)),
32
+ )
33
+
34
+ // Apply filtering if needed
35
+ const pages = options.includeHidden
36
+ ? allPages
37
+ : allPages.filter(page => !page.metadata.hidden)
38
+
39
+ // Build tree from pages using Tree.fromList
40
+ // Transform pages to include id/parentId at the top level for Tree.fromList
41
+ const pagesWithIds = pages.map(page => ({
42
+ ...page,
43
+ id: page.route.id,
44
+ parentId: page.route.parentId,
45
+ }))
46
+
47
+ const tree = Tree.fromList(pagesWithIds)
48
+
49
+ return {
50
+ list: pages,
51
+ tree,
52
+ diagnostics: routeScanResult.diagnostics,
53
+ }
54
+ }
55
+
56
+ /**
57
+ * Read a single route file and extract metadata from its front matter
58
+ */
59
+ const readRoute = async (route: FileRouter.Route): Promise<Page> => {
60
+ const filePath = Path.format(route.file.path.absolute)
61
+ const fileContent = await Fs.read(filePath)
62
+
63
+ // Empty files still get default metadata (not hidden by default)
64
+ // This allows placeholder pages to exist in the navigation
65
+ if (!fileContent) {
66
+ return { route, metadata: { hidden: false } }
67
+ }
68
+
69
+ // Parse front matter
70
+ const { data } = matter(fileContent)
71
+
72
+ // Validate and parse the data
73
+ const parsed = MetadataSchema.safeParse(data)
74
+
75
+ if (!parsed.success) {
76
+ // Log warning but continue with defaults
77
+ console.warn(`Invalid front matter in ${filePath}:`, parsed.error.issues)
78
+ }
79
+
80
+ const metadata = parsed.success ? parsed.data : { hidden: false }
81
+ return { route, metadata }
82
+ }
@@ -0,0 +1,136 @@
1
+ import { FileRouter } from '#lib/file-router/index'
2
+ import { Tree } from '@wollybeard/kit'
3
+ import { Str } from '@wollybeard/kit'
4
+ import type { Page } from './page.ts'
5
+
6
+ export interface Sidebar {
7
+ items: Item[]
8
+ }
9
+
10
+ export type Item = ItemLink | ItemSection
11
+
12
+ export interface ItemLink {
13
+ type: `ItemLink`
14
+ title: string
15
+ pathExp: string
16
+ }
17
+
18
+ export interface ItemSection {
19
+ type: `ItemSection`
20
+ title: string
21
+ pathExp: string
22
+ isLinkToo: boolean
23
+ links: ItemLink[]
24
+ }
25
+
26
+ /**
27
+ * Build sidebar from page tree structure
28
+ */
29
+ export const buildFromPageTree = (pageTree: Tree.Tree<Page>, basePath: FileRouter.Path): Sidebar => {
30
+ const links: ItemLink[] = []
31
+ const sections: ItemSection[] = []
32
+
33
+ // Process only the children of the root node
34
+ if (pageTree.root) {
35
+ for (const child of pageTree.root.children) {
36
+ processPageNode(child, basePath, [], links, sections)
37
+ }
38
+ }
39
+
40
+ const items = [...links, ...sections]
41
+
42
+ return {
43
+ items,
44
+ }
45
+ }
46
+
47
+ const processPageNode = (
48
+ node: Tree.Node<Page>,
49
+ basePath: FileRouter.Path,
50
+ parentPath: string[],
51
+ links: ItemLink[],
52
+ sections: ItemSection[],
53
+ ): void => {
54
+ const page = node.value
55
+ const routeName = page.route.logical.path.slice(-1)[0] || 'index'
56
+ const currentPath = [...parentPath, routeName]
57
+
58
+ // If this page has children, treat it as a section
59
+ if (node.children.length > 0) {
60
+ const sectionPath = [...basePath, ...currentPath]
61
+ const sectionPathExp = FileRouter.pathToExpression(sectionPath)
62
+ const sectionTitle = Str.titlizeSlug(routeName)
63
+
64
+ // Check if any child is an index page
65
+ const hasIndexChild = node.children.some(child => isIndexPage(child.value))
66
+
67
+ const section: ItemSection = {
68
+ type: `ItemSection`,
69
+ title: sectionTitle,
70
+ pathExp: sectionPathExp.startsWith('/') ? sectionPathExp.slice(1) : sectionPathExp,
71
+ isLinkToo: hasIndexChild, // Section is linkable if it has an index page
72
+ links: [],
73
+ }
74
+
75
+ // Process all children as links for this section
76
+ for (const child of node.children) {
77
+ const childPage = child.value
78
+
79
+ if (child.children.length > 0) {
80
+ // This child has children - only collect its descendants, not the child itself
81
+ collectPagesFromNode(child, basePath, section.links)
82
+ } else if (!childPage.metadata.hidden && !isIndexPage(childPage)) {
83
+ // This is a leaf node - add it as a link
84
+ section.links.push(pageToItemLink(childPage, basePath))
85
+ }
86
+ }
87
+
88
+ sections.push(section)
89
+ } else {
90
+ // This is a standalone file - add as top-level link
91
+ if (!page.metadata.hidden && !isIndexPage(page)) {
92
+ links.push(pageToItemLink(page, basePath))
93
+ }
94
+ }
95
+ }
96
+
97
+ const collectPagesFromNode = (
98
+ node: Tree.Node<Page>,
99
+ basePath: FileRouter.Path,
100
+ links: ItemLink[],
101
+ ): void => {
102
+ // Only process children, not the node itself (to avoid double-adding intermediate directories)
103
+ for (const child of node.children) {
104
+ const childPage = child.value
105
+ if (childPage && !childPage.metadata.hidden && !isIndexPage(childPage)) {
106
+ links.push(pageToItemLink(childPage, basePath))
107
+ }
108
+
109
+ // Recursively process grandchildren
110
+ if (child.children.length > 0) {
111
+ collectPagesFromNode(child, basePath, links)
112
+ }
113
+ }
114
+ }
115
+
116
+ const pageToItemLink = (page: Page, basePath: FileRouter.Path): ItemLink => {
117
+ const pagePathExp = FileRouter.routeToPathExpression(page.route)
118
+ const pageRelative = FileRouter.makeRelativeUnsafe(page.route, basePath)
119
+ const pageRelativePathExp = FileRouter.routeToPathExpression(pageRelative)
120
+
121
+ // Remove leading slash for title generation
122
+ const titlePath = pageRelativePathExp.startsWith('/') ? pageRelativePathExp.slice(1) : pageRelativePathExp
123
+
124
+ // Use only the last segment for the title
125
+ const titleSegment = pageRelative.logical.path[pageRelative.logical.path.length - 1] || titlePath
126
+
127
+ return {
128
+ type: `ItemLink`,
129
+ pathExp: pagePathExp.startsWith('/') ? pagePathExp.slice(1) : pagePathExp,
130
+ title: Str.titlizeSlug(titleSegment),
131
+ }
132
+ }
133
+
134
+ const isIndexPage = (page: Page): boolean => {
135
+ return page.route.file.path.relative.name === 'index'
136
+ }
@@ -1,7 +1,7 @@
1
1
  import { Grafaid } from '#lib/grafaid/index'
2
2
  import { GraphqlChange } from '#lib/graphql-change/index'
3
3
  import type { GraphqlChangeset } from '#lib/graphql-changeset/index'
4
- import { debug as debugPolen } from '#singletons/debug'
4
+ import { debugPolen } from '#singletons/debug'
5
5
  import { Arr, Path } from '@wollybeard/kit'
6
6
  import { glob } from 'tinyglobby'
7
7
  import type { Schema } from '../../schema.ts'
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, test } from 'vitest'
2
- import { parse } from './markdown.js'
2
+ import { parse } from './markdown.ts'
3
3
 
4
4
  describe(`markdown parser with syntax highlighting`, () => {
5
5
  test(`parse highlights code blocks`, async () => {
@@ -0,0 +1 @@
1
+ export * as Static from './static.ts'