@vercel/geistdocs 1.24.1 → 1.25.1-canary.47f1ad5

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 (405) hide show
  1. package/dist/cli/index.js +1 -1
  2. package/dist/components/blockquote.d.ts +3 -0
  3. package/dist/components/blockquote.d.ts.map +1 -0
  4. package/dist/components/blockquote.js +3 -0
  5. package/dist/components/callout.d.ts +13 -10
  6. package/dist/components/callout.d.ts.map +1 -1
  7. package/dist/components/callout.js +7 -7
  8. package/dist/components/code-block-tabs.d.ts +5 -2
  9. package/dist/components/code-block-tabs.d.ts.map +1 -1
  10. package/dist/components/code-block-tabs.js +30 -5
  11. package/dist/components/code-block.d.ts +2 -6
  12. package/dist/components/code-block.d.ts.map +1 -1
  13. package/dist/components/code-block.js +22 -68
  14. package/dist/components/command-prompt.d.ts.map +1 -1
  15. package/dist/components/command-prompt.js +18 -25
  16. package/dist/components/copy-prompt.d.ts +2 -1
  17. package/dist/components/copy-prompt.d.ts.map +1 -1
  18. package/dist/components/copy-prompt.js +5 -5
  19. package/dist/components/heading.d.ts +7 -0
  20. package/dist/components/heading.d.ts.map +1 -0
  21. package/dist/components/heading.js +14 -0
  22. package/dist/components/mermaid.js +1 -1
  23. package/dist/components/table.d.ts +3 -0
  24. package/dist/components/table.d.ts.map +1 -0
  25. package/dist/components/table.js +3 -0
  26. package/dist/controls.d.ts +8 -4
  27. package/dist/controls.d.ts.map +1 -1
  28. package/dist/controls.js +14 -14
  29. package/dist/footer.d.ts.map +1 -1
  30. package/dist/footer.js +6 -6
  31. package/dist/home-layout.js +1 -1
  32. package/dist/internal/app-route-manifest.d.ts +19 -0
  33. package/dist/internal/app-route-manifest.d.ts.map +1 -0
  34. package/dist/internal/app-route-manifest.js +121 -0
  35. package/dist/internal/app-route-scanner.d.ts +9 -0
  36. package/dist/internal/app-route-scanner.d.ts.map +1 -0
  37. package/dist/internal/app-route-scanner.js +149 -0
  38. package/dist/internal/chat/conversation.d.ts +4 -3
  39. package/dist/internal/chat/conversation.d.ts.map +1 -1
  40. package/dist/internal/chat/conversation.js +5 -5
  41. package/dist/internal/chat/copy-chat.d.ts.map +1 -1
  42. package/dist/internal/chat/copy-chat.js +13 -10
  43. package/dist/internal/chat/dots-spinner.d.ts +5 -0
  44. package/dist/internal/chat/dots-spinner.d.ts.map +1 -0
  45. package/dist/internal/chat/dots-spinner.js +21 -0
  46. package/dist/internal/chat/message-metadata.d.ts.map +1 -1
  47. package/dist/internal/chat/message-metadata.js +8 -7
  48. package/dist/internal/chat/message.d.ts.map +1 -1
  49. package/dist/internal/chat/message.js +5 -5
  50. package/dist/internal/chat/prompt-input.d.ts +1 -1
  51. package/dist/internal/chat/prompt-input.d.ts.map +1 -1
  52. package/dist/internal/chat/prompt-input.js +25 -27
  53. package/dist/internal/chat/shell.d.ts.map +1 -1
  54. package/dist/internal/chat/shell.js +28 -20
  55. package/dist/internal/chat/sources.d.ts +3 -1
  56. package/dist/internal/chat/sources.d.ts.map +1 -1
  57. package/dist/internal/chat/sources.js +6 -6
  58. package/dist/internal/chat/suggestion.d.ts +11 -6
  59. package/dist/internal/chat/suggestion.d.ts.map +1 -1
  60. package/dist/internal/chat/suggestion.js +5 -5
  61. package/dist/internal/docs-page-error-boundary.d.ts.map +1 -1
  62. package/dist/internal/docs-page-error-boundary.js +3 -3
  63. package/dist/internal/external-arrow.d.ts.map +1 -1
  64. package/dist/internal/external-arrow.js +1 -1
  65. package/dist/internal/footer/rss-button.d.ts.map +1 -1
  66. package/dist/internal/footer/rss-button.js +3 -3
  67. package/dist/internal/github-button.d.ts.map +1 -1
  68. package/dist/internal/github-button.js +3 -3
  69. package/dist/internal/navbar/desktop-menu.d.ts.map +1 -1
  70. package/dist/internal/navbar/desktop-menu.js +3 -3
  71. package/dist/internal/navbar/mobile-menu.d.ts.map +1 -1
  72. package/dist/internal/navbar/mobile-menu.js +11 -16
  73. package/dist/internal/navbar/navbar-logo.d.ts.map +1 -1
  74. package/dist/internal/navbar/navbar-logo.js +6 -8
  75. package/dist/internal/navbar/navbar-shell.d.ts.map +1 -1
  76. package/dist/internal/navbar/navbar-shell.js +1 -1
  77. package/dist/internal/page-actions-client.d.ts.map +1 -1
  78. package/dist/internal/page-actions-client.js +49 -29
  79. package/dist/internal/page-breadcrumb.d.ts.map +1 -1
  80. package/dist/internal/page-breadcrumb.js +3 -3
  81. package/dist/internal/page-footer.d.ts.map +1 -1
  82. package/dist/internal/page-footer.js +2 -2
  83. package/dist/internal/provider-client.d.ts.map +1 -1
  84. package/dist/internal/provider-client.js +9 -9
  85. package/dist/internal/search.d.ts.map +1 -1
  86. package/dist/internal/search.js +2 -2
  87. package/dist/internal/sidebar-responsive.d.ts +0 -1
  88. package/dist/internal/sidebar-responsive.d.ts.map +1 -1
  89. package/dist/internal/sidebar-responsive.js +0 -9
  90. package/dist/internal/sidebar-tree.d.ts.map +1 -1
  91. package/dist/internal/sidebar-tree.js +9 -7
  92. package/dist/internal/sidebar.d.ts.map +1 -1
  93. package/dist/internal/sidebar.js +66 -40
  94. package/dist/internal/table-of-contents.d.ts.map +1 -1
  95. package/dist/internal/table-of-contents.js +1 -1
  96. package/dist/internal/toc-items.d.ts.map +1 -1
  97. package/dist/internal/toc-items.js +17 -7
  98. package/dist/internal/ui/dropdown-menu.d.ts.map +1 -1
  99. package/dist/internal/ui/dropdown-menu.js +8 -8
  100. package/dist/internal/ui/navigation-menu.d.ts.map +1 -1
  101. package/dist/internal/ui/navigation-menu.js +4 -4
  102. package/dist/internal/ui/popover.d.ts.map +1 -1
  103. package/dist/internal/ui/popover.js +1 -1
  104. package/dist/internal/ui/scroll-area.d.ts.map +1 -1
  105. package/dist/internal/ui/scroll-area.js +1 -1
  106. package/dist/internal/use-mobile.d.ts.map +1 -1
  107. package/dist/internal/use-mobile.js +2 -12
  108. package/dist/layout.d.ts +1 -0
  109. package/dist/layout.d.ts.map +1 -1
  110. package/dist/layout.js +3 -1
  111. package/dist/mdx.d.ts.map +1 -1
  112. package/dist/mdx.js +18 -3
  113. package/dist/mobile-docs-bar.d.ts.map +1 -1
  114. package/dist/mobile-docs-bar.js +1 -2
  115. package/dist/navbar.js +3 -2
  116. package/dist/next.d.ts +6 -0
  117. package/dist/next.d.ts.map +1 -0
  118. package/dist/next.js +52 -0
  119. package/dist/pages/docs.d.ts.map +1 -1
  120. package/dist/pages/docs.js +8 -3
  121. package/dist/proxy.d.ts +2 -1
  122. package/dist/proxy.d.ts.map +1 -1
  123. package/dist/proxy.js +28 -5
  124. package/dist/routes/llms.d.ts +1 -1
  125. package/dist/routes/llms.d.ts.map +1 -1
  126. package/dist/routes/llms.js +1 -1
  127. package/dist/source.d.ts.map +1 -1
  128. package/dist/source.js +0 -2
  129. package/dist/versions.d.ts.map +1 -1
  130. package/dist/versions.js +5 -5
  131. package/docs/agents.md +2 -3
  132. package/docs/llms.txt +231 -98
  133. package/docs/manifest.json +2 -11
  134. package/docs/pages/configuration.md +8 -0
  135. package/docs/pages/md.md +8 -5
  136. package/docs/pages/migration.md +12 -12
  137. package/docs/pages/proxy.md +20 -1
  138. package/docs/pages/syntax.md +178 -11
  139. package/docs/pages/versioned-docs.md +3 -3
  140. package/docs/sitemap.md +1 -2
  141. package/package.json +15 -102
  142. package/styles.css +3 -2
  143. package/template/AGENTS.md +12 -0
  144. package/template/app/[lang]/(home)/components/hero.tsx +2 -2
  145. package/template/app/[lang]/(home)/components/one-two-section.tsx +9 -1
  146. package/template/app/[lang]/(home)/components/text-grid-section.tsx +1 -1
  147. package/template/app/[lang]/(home)/page.tsx +5 -6
  148. package/template/app/[lang]/layout.tsx +11 -4
  149. package/template/app/[lang]/llms.mdx/[[...slug]]/route.ts +0 -1
  150. package/template/app/styles/geistdocs.css +18 -15
  151. package/template/components/ui/button.tsx +1 -1
  152. package/template/content/docs/configuration.cn.mdx +2 -2
  153. package/template/content/docs/configuration.mdx +8 -0
  154. package/template/content/docs/md.mdx +8 -5
  155. package/template/content/docs/migration.mdx +12 -12
  156. package/template/content/docs/proxy.mdx +20 -1
  157. package/template/content/docs/syntax.mdx +183 -11
  158. package/template/content/docs/versioned-docs.mdx +3 -3
  159. package/template/lib/geistdocs/config.tsx +0 -5
  160. package/template/next.config.ts +19 -5
  161. package/template/package.json +5 -7
  162. package/theme.css +39 -695
  163. package/dist/assets/icons/icon-acronym-ts.d.ts +0 -5
  164. package/dist/assets/icons/icon-acronym-ts.d.ts.map +0 -1
  165. package/dist/assets/icons/icon-acronym-ts.js +0 -4
  166. package/dist/assets/icons/icon-agents.d.ts +0 -5
  167. package/dist/assets/icons/icon-agents.d.ts.map +0 -1
  168. package/dist/assets/icons/icon-agents.js +0 -4
  169. package/dist/assets/icons/icon-api.d.ts +0 -5
  170. package/dist/assets/icons/icon-api.d.ts.map +0 -1
  171. package/dist/assets/icons/icon-api.js +0 -4
  172. package/dist/assets/icons/icon-arrow-up-right-small.d.ts +0 -8
  173. package/dist/assets/icons/icon-arrow-up-right-small.d.ts.map +0 -1
  174. package/dist/assets/icons/icon-arrow-up-right-small.js +0 -4
  175. package/dist/assets/icons/icon-arrow-up-right.d.ts +0 -5
  176. package/dist/assets/icons/icon-arrow-up-right.d.ts.map +0 -1
  177. package/dist/assets/icons/icon-arrow-up-right.js +0 -4
  178. package/dist/assets/icons/icon-check.d.ts +0 -5
  179. package/dist/assets/icons/icon-check.d.ts.map +0 -1
  180. package/dist/assets/icons/icon-check.js +0 -4
  181. package/dist/assets/icons/icon-chevron-down-small.d.ts +0 -8
  182. package/dist/assets/icons/icon-chevron-down-small.d.ts.map +0 -1
  183. package/dist/assets/icons/icon-chevron-down-small.js +0 -7
  184. package/dist/assets/icons/icon-chevron-right.d.ts +0 -5
  185. package/dist/assets/icons/icon-chevron-right.d.ts.map +0 -1
  186. package/dist/assets/icons/icon-chevron-right.js +0 -4
  187. package/dist/assets/icons/icon-clock.d.ts +0 -5
  188. package/dist/assets/icons/icon-clock.d.ts.map +0 -1
  189. package/dist/assets/icons/icon-clock.js +0 -4
  190. package/dist/assets/icons/icon-copy.d.ts +0 -5
  191. package/dist/assets/icons/icon-copy.d.ts.map +0 -1
  192. package/dist/assets/icons/icon-copy.js +0 -4
  193. package/dist/assets/icons/icon-display-small.d.ts +0 -5
  194. package/dist/assets/icons/icon-display-small.d.ts.map +0 -1
  195. package/dist/assets/icons/icon-display-small.js +0 -4
  196. package/dist/assets/icons/icon-display.d.ts +0 -5
  197. package/dist/assets/icons/icon-display.d.ts.map +0 -1
  198. package/dist/assets/icons/icon-display.js +0 -4
  199. package/dist/assets/icons/icon-file-text.d.ts +0 -5
  200. package/dist/assets/icons/icon-file-text.d.ts.map +0 -1
  201. package/dist/assets/icons/icon-file-text.js +0 -4
  202. package/dist/assets/icons/icon-folder-open.d.ts +0 -5
  203. package/dist/assets/icons/icon-folder-open.d.ts.map +0 -1
  204. package/dist/assets/icons/icon-folder-open.js +0 -4
  205. package/dist/assets/icons/icon-linked.d.ts +0 -5
  206. package/dist/assets/icons/icon-linked.d.ts.map +0 -1
  207. package/dist/assets/icons/icon-linked.js +0 -4
  208. package/dist/assets/icons/icon-logs.d.ts +0 -5
  209. package/dist/assets/icons/icon-logs.d.ts.map +0 -1
  210. package/dist/assets/icons/icon-logs.js +0 -4
  211. package/dist/assets/icons/icon-menu-alt.d.ts +0 -5
  212. package/dist/assets/icons/icon-menu-alt.d.ts.map +0 -1
  213. package/dist/assets/icons/icon-menu-alt.js +0 -4
  214. package/dist/assets/icons/icon-message.d.ts +0 -5
  215. package/dist/assets/icons/icon-message.d.ts.map +0 -1
  216. package/dist/assets/icons/icon-message.js +0 -4
  217. package/dist/assets/icons/icon-moon-small.d.ts +0 -5
  218. package/dist/assets/icons/icon-moon-small.d.ts.map +0 -1
  219. package/dist/assets/icons/icon-moon-small.js +0 -4
  220. package/dist/assets/icons/icon-moon.d.ts +0 -5
  221. package/dist/assets/icons/icon-moon.d.ts.map +0 -1
  222. package/dist/assets/icons/icon-moon.js +0 -4
  223. package/dist/assets/icons/icon-openai.d.ts +0 -5
  224. package/dist/assets/icons/icon-openai.d.ts.map +0 -1
  225. package/dist/assets/icons/icon-openai.js +0 -4
  226. package/dist/assets/icons/icon-plus-circle.d.ts +0 -5
  227. package/dist/assets/icons/icon-plus-circle.d.ts.map +0 -1
  228. package/dist/assets/icons/icon-plus-circle.js +0 -4
  229. package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts +0 -5
  230. package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts.map +0 -1
  231. package/dist/assets/icons/icon-refresh-counter-clockwise.js +0 -4
  232. package/dist/assets/icons/icon-robot.d.ts +0 -5
  233. package/dist/assets/icons/icon-robot.d.ts.map +0 -1
  234. package/dist/assets/icons/icon-robot.js +0 -4
  235. package/dist/assets/icons/icon-sandbox.d.ts +0 -5
  236. package/dist/assets/icons/icon-sandbox.d.ts.map +0 -1
  237. package/dist/assets/icons/icon-sandbox.js +0 -4
  238. package/dist/assets/icons/icon-slash-forward.d.ts +0 -8
  239. package/dist/assets/icons/icon-slash-forward.d.ts.map +0 -1
  240. package/dist/assets/icons/icon-slash-forward.js +0 -4
  241. package/dist/assets/icons/icon-sparkles.d.ts +0 -5
  242. package/dist/assets/icons/icon-sparkles.d.ts.map +0 -1
  243. package/dist/assets/icons/icon-sparkles.js +0 -4
  244. package/dist/assets/icons/icon-sun-small.d.ts +0 -5
  245. package/dist/assets/icons/icon-sun-small.d.ts.map +0 -1
  246. package/dist/assets/icons/icon-sun-small.js +0 -4
  247. package/dist/assets/icons/icon-sun.d.ts +0 -5
  248. package/dist/assets/icons/icon-sun.d.ts.map +0 -1
  249. package/dist/assets/icons/icon-sun.js +0 -4
  250. package/dist/assets/icons/icon-trash.d.ts +0 -5
  251. package/dist/assets/icons/icon-trash.d.ts.map +0 -1
  252. package/dist/assets/icons/icon-trash.js +0 -4
  253. package/dist/assets/icons/icon-user.d.ts +0 -5
  254. package/dist/assets/icons/icon-user.d.ts.map +0 -1
  255. package/dist/assets/icons/icon-user.js +0 -4
  256. package/dist/assets/icons/icon-workflow.d.ts +0 -5
  257. package/dist/assets/icons/icon-workflow.d.ts.map +0 -1
  258. package/dist/assets/icons/icon-workflow.js +0 -4
  259. package/dist/assets/icons/icon-wrench.d.ts +0 -5
  260. package/dist/assets/icons/icon-wrench.d.ts.map +0 -1
  261. package/dist/assets/icons/icon-wrench.js +0 -4
  262. package/dist/assets/icons/index.d.ts +0 -35
  263. package/dist/assets/icons/index.d.ts.map +0 -1
  264. package/dist/assets/icons/index.js +0 -35
  265. package/dist/assets/logos/index.d.ts +0 -17
  266. package/dist/assets/logos/index.d.ts.map +0 -1
  267. package/dist/assets/logos/index.js +0 -17
  268. package/dist/assets/logos/logo-ai-elements.d.ts +0 -5
  269. package/dist/assets/logos/logo-ai-elements.d.ts.map +0 -1
  270. package/dist/assets/logos/logo-ai-elements.js +0 -5
  271. package/dist/assets/logos/logo-ai-sdk.d.ts +0 -5
  272. package/dist/assets/logos/logo-ai-sdk.d.ts.map +0 -1
  273. package/dist/assets/logos/logo-ai-sdk.js +0 -5
  274. package/dist/assets/logos/logo-chat-sdk.d.ts +0 -5
  275. package/dist/assets/logos/logo-chat-sdk.d.ts.map +0 -1
  276. package/dist/assets/logos/logo-chat-sdk.js +0 -5
  277. package/dist/assets/logos/logo-eve.d.ts +0 -5
  278. package/dist/assets/logos/logo-eve.d.ts.map +0 -1
  279. package/dist/assets/logos/logo-eve.js +0 -5
  280. package/dist/assets/logos/logo-flags-sdk.d.ts +0 -5
  281. package/dist/assets/logos/logo-flags-sdk.d.ts.map +0 -1
  282. package/dist/assets/logos/logo-flags-sdk.js +0 -5
  283. package/dist/assets/logos/logo-icon-vercel.d.ts +0 -5
  284. package/dist/assets/logos/logo-icon-vercel.d.ts.map +0 -1
  285. package/dist/assets/logos/logo-icon-vercel.js +0 -4
  286. package/dist/assets/logos/logo-nextjs.d.ts +0 -5
  287. package/dist/assets/logos/logo-nextjs.d.ts.map +0 -1
  288. package/dist/assets/logos/logo-nextjs.js +0 -9
  289. package/dist/assets/logos/logo-streamdown.d.ts +0 -5
  290. package/dist/assets/logos/logo-streamdown.d.ts.map +0 -1
  291. package/dist/assets/logos/logo-streamdown.js +0 -5
  292. package/dist/assets/logos/logo-svelte-kit.d.ts +0 -5
  293. package/dist/assets/logos/logo-svelte-kit.d.ts.map +0 -1
  294. package/dist/assets/logos/logo-svelte-kit.js +0 -4
  295. package/dist/assets/logos/logo-turborepo.d.ts +0 -5
  296. package/dist/assets/logos/logo-turborepo.d.ts.map +0 -1
  297. package/dist/assets/logos/logo-turborepo.js +0 -5
  298. package/dist/assets/logos/logo-vercel-oss.d.ts +0 -5
  299. package/dist/assets/logos/logo-vercel-oss.d.ts.map +0 -1
  300. package/dist/assets/logos/logo-vercel-oss.js +0 -4
  301. package/dist/assets/logos/logo-workflow-sdk.d.ts +0 -5
  302. package/dist/assets/logos/logo-workflow-sdk.d.ts.map +0 -1
  303. package/dist/assets/logos/logo-workflow-sdk.js +0 -5
  304. package/dist/components/badge.d.ts +0 -11
  305. package/dist/components/badge.d.ts.map +0 -1
  306. package/dist/components/badge.js +0 -22
  307. package/dist/components/button-group.d.ts +0 -2
  308. package/dist/components/button-group.d.ts.map +0 -1
  309. package/dist/components/button-group.js +0 -2
  310. package/dist/components/button.d.ts +0 -2
  311. package/dist/components/button.d.ts.map +0 -1
  312. package/dist/components/button.js +0 -2
  313. package/dist/components/card.d.ts +0 -2
  314. package/dist/components/card.d.ts.map +0 -1
  315. package/dist/components/card.js +0 -2
  316. package/dist/components/dialog.d.ts +0 -13
  317. package/dist/components/dialog.d.ts.map +0 -1
  318. package/dist/components/dialog.js +0 -35
  319. package/dist/components/drawer.d.ts +0 -2
  320. package/dist/components/drawer.d.ts.map +0 -1
  321. package/dist/components/drawer.js +0 -3
  322. package/dist/components/input-group.d.ts +0 -2
  323. package/dist/components/input-group.d.ts.map +0 -1
  324. package/dist/components/input-group.js +0 -3
  325. package/dist/components/input.d.ts +0 -2
  326. package/dist/components/input.d.ts.map +0 -1
  327. package/dist/components/input.js +0 -2
  328. package/dist/components/kbd.d.ts +0 -2
  329. package/dist/components/kbd.d.ts.map +0 -1
  330. package/dist/components/kbd.js +0 -2
  331. package/dist/components/separator.d.ts +0 -2
  332. package/dist/components/separator.d.ts.map +0 -1
  333. package/dist/components/separator.js +0 -3
  334. package/dist/components/sheet.d.ts +0 -2
  335. package/dist/components/sheet.d.ts.map +0 -1
  336. package/dist/components/sheet.js +0 -3
  337. package/dist/components/sonner.d.ts +0 -2
  338. package/dist/components/sonner.d.ts.map +0 -1
  339. package/dist/components/sonner.js +0 -3
  340. package/dist/components/spinner.d.ts +0 -2
  341. package/dist/components/spinner.d.ts.map +0 -1
  342. package/dist/components/spinner.js +0 -2
  343. package/dist/components/switch.d.ts +0 -11
  344. package/dist/components/switch.d.ts.map +0 -1
  345. package/dist/components/switch.js +0 -12
  346. package/dist/components/textarea.d.ts +0 -2
  347. package/dist/components/textarea.d.ts.map +0 -1
  348. package/dist/components/textarea.js +0 -2
  349. package/dist/components/theme-aware-image.d.ts +0 -12
  350. package/dist/components/theme-aware-image.d.ts.map +0 -1
  351. package/dist/components/theme-aware-image.js +0 -8
  352. package/dist/components/theme-switcher.d.ts +0 -8
  353. package/dist/components/theme-switcher.d.ts.map +0 -1
  354. package/dist/components/theme-switcher.js +0 -37
  355. package/dist/components/tooltip.d.ts +0 -2
  356. package/dist/components/tooltip.d.ts.map +0 -1
  357. package/dist/components/tooltip.js +0 -3
  358. package/dist/internal/chat/shimmer.d.ts +0 -11
  359. package/dist/internal/chat/shimmer.d.ts.map +0 -1
  360. package/dist/internal/chat/shimmer.js +0 -22
  361. package/dist/internal/cn.d.ts +0 -3
  362. package/dist/internal/cn.d.ts.map +0 -1
  363. package/dist/internal/cn.js +0 -47
  364. package/dist/internal/ui/button-group.d.ts +0 -13
  365. package/dist/internal/ui/button-group.d.ts.map +0 -1
  366. package/dist/internal/ui/button-group.js +0 -26
  367. package/dist/internal/ui/button.d.ts +0 -12
  368. package/dist/internal/ui/button.d.ts.map +0 -1
  369. package/dist/internal/ui/button.js +0 -33
  370. package/dist/internal/ui/card.d.ts +0 -6
  371. package/dist/internal/ui/card.d.ts.map +0 -1
  372. package/dist/internal/ui/card.js +0 -14
  373. package/dist/internal/ui/drawer.d.ts +0 -8
  374. package/dist/internal/ui/drawer.d.ts.map +0 -1
  375. package/dist/internal/ui/drawer.js +0 -19
  376. package/dist/internal/ui/input-group.d.ts +0 -15
  377. package/dist/internal/ui/input-group.d.ts.map +0 -1
  378. package/dist/internal/ui/input-group.js +0 -44
  379. package/dist/internal/ui/input.d.ts +0 -3
  380. package/dist/internal/ui/input.d.ts.map +0 -1
  381. package/dist/internal/ui/input.js +0 -5
  382. package/dist/internal/ui/kbd.d.ts +0 -4
  383. package/dist/internal/ui/kbd.d.ts.map +0 -1
  384. package/dist/internal/ui/kbd.js +0 -8
  385. package/dist/internal/ui/separator.d.ts +0 -4
  386. package/dist/internal/ui/separator.d.ts.map +0 -1
  387. package/dist/internal/ui/separator.js +0 -7
  388. package/dist/internal/ui/sheet.d.ts +0 -13
  389. package/dist/internal/ui/sheet.d.ts.map +0 -1
  390. package/dist/internal/ui/sheet.js +0 -24
  391. package/dist/internal/ui/sonner.d.ts +0 -3
  392. package/dist/internal/ui/sonner.d.ts.map +0 -1
  393. package/dist/internal/ui/sonner.js +0 -20
  394. package/dist/internal/ui/spinner.d.ts +0 -3
  395. package/dist/internal/ui/spinner.d.ts.map +0 -1
  396. package/dist/internal/ui/spinner.js +0 -6
  397. package/dist/internal/ui/textarea.d.ts +0 -3
  398. package/dist/internal/ui/textarea.d.ts.map +0 -1
  399. package/dist/internal/ui/textarea.js +0 -5
  400. package/dist/internal/ui/tooltip.d.ts +0 -7
  401. package/dist/internal/ui/tooltip.d.ts.map +0 -1
  402. package/dist/internal/ui/tooltip.js +0 -16
  403. package/docs/pages/theme-aware-image.md +0 -59
  404. package/template/app/[lang]/(home)/components/centered-section.tsx +0 -32
  405. package/template/content/docs/theme-aware-image.mdx +0 -57
@@ -44,7 +44,7 @@ Fix unrelated build failures first. A migration is safer when the starting point
44
44
 
45
45
  ## Install Geistdocs
46
46
 
47
- Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting.
47
+ Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting. Geistdocs requires Next.js 16.3.3 or later within 16.x. Earlier 16.3 releases can retain an optional catch-all route's index content after a client navigation to a child page when Cache Components and Partial Prefetching are enabled.
48
48
 
49
49
  For an existing project, use your package manager directly:
50
50
 
@@ -58,24 +58,26 @@ If you are starting from a generated Geistdocs project and moving content into i
58
58
  pnpm dlx @vercel/geistdocs init --name my-docs
59
59
  ```
60
60
 
61
- ## Enable Cache Components
61
+ ## Configure Next.js
62
62
 
63
- Geistdocs uses Next.js Cache Components to prerender static application shells while dynamic content streams from the server. Enable Cache Components in `next.config.ts`:
63
+ The Geistdocs Next.js integration composes Fumadocs MDX, enables automatic app-route discovery for agent-readable 404s, and preserves your Next.js configuration. Enable Cache Components in the same file:
64
64
 
65
65
  ```ts title="next.config.ts"
66
- import { createMDX } from "fumadocs-mdx/next";
66
+ import { createGeistdocs } from "@vercel/geistdocs/next";
67
67
  import type { NextConfig } from "next";
68
68
 
69
- const withMDX = createMDX();
69
+ const withGeistdocs = createGeistdocs();
70
70
 
71
71
  const config: NextConfig = {
72
72
  cacheComponents: true,
73
73
  partialPrefetching: true,
74
74
  };
75
75
 
76
- export default withMDX(config);
76
+ export default withGeistdocs(config);
77
77
  ```
78
78
 
79
+ Restart `next dev` after adding, deleting, or renaming an App Router page or route. Production builds always regenerate the route manifest.
80
+
79
81
  Every root dynamic parameter needs at least one value from `generateStaticParams`. For a site with a `[lang]` root segment, return every configured language from the root layout:
80
82
 
81
83
  ```tsx title="app/[lang]/layout.tsx"
@@ -375,16 +377,14 @@ For a base-path application whose root page is documentation, add `"/"` to the s
375
377
  Tailwind CSS v4 requires `@source` entries for package components and related dependencies.
376
378
 
377
379
  ```css title="app/styles/geistdocs.css"
378
- @import "tailwindcss";
380
+ @import "@vercel/geistcn/tailwind.css";
381
+ @import "@vercel/geistcn/styles.css";
379
382
  @import "fumadocs-ui/css/shadcn.css";
380
383
  @import "fumadocs-ui/css/preset.css";
381
- @import "tw-animate-css";
382
-
383
- @source "../../node_modules/@vercel/geistdocs/dist/**/*.js";
384
- @source "../../node_modules/streamdown/dist/*.js";
384
+ @import "@vercel/geistdocs/theme.css";
385
385
  ```
386
386
 
387
- Move Tailwind CSS v3 plugin utilities into CSS-first v4 utilities or theme variables. Keep custom token names stable while you migrate components.
387
+ Geistcn owns the Geist tokens, theme, typography, preflight, and animation utilities. The Geistdocs theme entry point remains during the compatibility migration for documentation and Fumadocs integration rules and to source the compiled runtime dependencies.
388
388
 
389
389
  ## Handle environment variables
390
390
 
@@ -2,7 +2,7 @@
2
2
  title: Proxy and markdown routes
3
3
  description: Add custom request logic while keeping Geistdocs markdown negotiation in the package
4
4
  type: reference
5
- summary: Configure createProxy with before and after hooks, markdown route mappings, and a static Next.js matcher.
5
+ summary: Configure createProxy with generated route discovery, request hooks, markdown mappings, and a static Next.js matcher.
6
6
  url: /docs/proxy
7
7
  source: apps/template/content/docs/proxy.mdx
8
8
  prerequisites:
@@ -179,6 +179,25 @@ export const config = {
179
179
 
180
180
  The package keeps `llms.txt`, `sitemap.md`, `agents.md`, MCP discovery, and RSS out of root page-Markdown negotiation. Continue to exclude site-specific application and API routes with the matcher or a `before` hook. A root Markdown page is exposed as `/index.md`, or `<basePath>/index.md` publicly.
181
181
 
182
+ ## Recover unmatched Markdown requests
183
+
184
+ `createGeistdocs` in `next.config.ts` generates a lightweight manifest from App Router pages and route handlers. When `agent` is enabled, `createProxy` uses this manifest to return a Markdown 404 only when a `GET` or `HEAD` request matches neither a Markdown mapping nor an application route.
185
+
186
+ The manifest contains route patterns, not page modules or content. Static, dynamic, catch-all, optional catch-all, grouped, and localized routes continue to Next.js. Root catch-all pages are treated as potentially valid, so the app remains responsible for their 404 behavior. The package's own `[...not-found]` route handler is excluded so it does not claim every path.
187
+
188
+ The integration also resolves `next.config.ts` rewrites. Static rewrite sources are matched exactly, while parameterized sources protect their safe static prefix. If a rewrite begins with a dynamic root segment, Geistdocs disables automatic recovery rather than risk returning a Markdown 404 for a real rewritten route.
189
+
190
+ No proxy option is required. Pass `markdownNotFound: false` only when the site needs to disable automatic recovery:
191
+
192
+ ```ts title="proxy.ts"
193
+ const proxy = createProxy({
194
+ config: geistdocsConfig,
195
+ markdownNotFound: false,
196
+ });
197
+ ```
198
+
199
+ Existing sites that use `createMDX` directly do not receive a generated manifest and keep the previous opt-in behavior. Restart `next dev` after adding, deleting, or renaming a route; production builds always regenerate the manifest.
200
+
182
201
  ## Hook context
183
202
 
184
203
  Both `before` and `after` receive the same context:
@@ -15,7 +15,9 @@ related:
15
15
 
16
16
  Geistdocs supports MDX, a superset of Markdown that allows you to use JSX components within your documentation. This guide covers all the formatting options available.
17
17
 
18
- Help me write a Geistdocs MDX page. Use this page as a syntax reference and create an example page with frontmatter, headings, links, a code block, a `Callout`, and a `CopyPrompt` component.
18
+ Help me write a Geistdocs MDX page. Use this page as a syntax reference and
19
+ create an example page with frontmatter, headings, links, a code block, a
20
+ `Callout`, and a `CopyPrompt` component.
19
21
 
20
22
  ## Frontmatter
21
23
 
@@ -67,11 +69,17 @@ Headings automatically generate anchor links for navigation and deep linking.
67
69
 
68
70
  Create unordered lists with `-`, `*`, or `+`:
69
71
 
70
- - First item
71
- - Second item
72
- - Nested item
73
- - Another nested item
74
- - Third item
72
+ ```md
73
+ - Install the required packages
74
+ - Configure your project
75
+ - Start the development server
76
+ ```
77
+
78
+ This renders as:
79
+
80
+ - Install the required packages
81
+ - Configure your project
82
+ - Start the development server
75
83
 
76
84
  Create ordered lists with numbers:
77
85
 
@@ -83,7 +91,64 @@ Create ordered lists with numbers:
83
91
 
84
92
  Use `>` to create blockquotes:
85
93
 
86
- > This is a blockquote. You can use it to highlight important information or quotes from external sources.
94
+ > **Watch:** Learn more about how to use `next/image` → [YouTube (9 minutes)](https://youtu.be/IU_qq_c_lKA).
95
+
96
+ ### Callouts
97
+
98
+ Use `<Callout>` for a highlighted informational note:
99
+
100
+ ```mdx
101
+ <Callout>This is automatically set when deploying to Vercel.</Callout>
102
+ ```
103
+
104
+ This renders as:
105
+
106
+ > This is automatically set when deploying to Vercel.
107
+
108
+ Callouts can also contain a title and lists:
109
+
110
+ > Note:
111
+ - The `App Router` uses [React canary
112
+ releases](https://react.dev/blog/2023/05/03/react-canaries) built-in, which
113
+ include all the stable React 19 changes, as well as newer features being
114
+ validated in frameworks, but you should still declare react and react-dom in
115
+ package.json for tooling and ecosystem compatibility.
116
+ - The `Pages Router` uses the React version from your `package.json`.
117
+
118
+ ### Copy Prompts
119
+
120
+ Short prompts render in full without an expansion control:
121
+
122
+ ```mdx
123
+ <CopyPrompt text="Summarize this documentation page and list the key concepts.">
124
+ Summarize this documentation page and list the key concepts.
125
+ </CopyPrompt>
126
+ ```
127
+
128
+ This renders as:
129
+
130
+ Summarize this documentation page and list the key concepts.
131
+
132
+ Long prompts initially show a preview with a **Show more** control:
133
+
134
+ ```mdx
135
+ <CopyPrompt collapsible text="Write a detailed migration plan for this project.">
136
+ Write a detailed migration plan for this project. Include prerequisites,
137
+ implementation steps, validation, rollback guidance, and common pitfalls.
138
+ </CopyPrompt>
139
+ ```
140
+
141
+ Set the boolean `collapsible` prop when the prompt should initially render as a
142
+ two-line preview. This renders as:
143
+
144
+ Review this Geistdocs project in detail. Explain how the `@vercel/geistdocs`
145
+ package, application layouts, local adapter files, source configuration,
146
+ `content/docs` directory, navigation metadata, MDX components, syntax
147
+ highlighting, search routes, and deployment configuration work together.
148
+ Then identify the safest first files to edit, describe the effect of each
149
+ change, call out common mistakes, and propose a step-by-step plan for
150
+ customizing the documentation site without breaking routing, generated
151
+ Markdown, or accessibility behavior.
87
152
 
88
153
  ### Links
89
154
 
@@ -92,6 +157,26 @@ Create links with `[text](url)`:
92
157
  - [External link](https://vercel.com)
93
158
  - [Internal link](/docs/getting-started)
94
159
 
160
+ Use an absolute `https://` or `http://` URL to mark a link as external. External
161
+ links open outside the docs site and display an arrow icon. Use a root-relative
162
+ path beginning with `/` for internal links:
163
+
164
+ ```md
165
+ [External link](https://vercel.com)
166
+ [Internal link](/docs/getting-started)
167
+ ```
168
+
169
+ External links can also contain inline code. The underline applies to the text,
170
+ but not the external-link icon:
171
+
172
+ ```md
173
+ Run independent requests in parallel with [`Promise.all`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise/all).
174
+ ```
175
+
176
+ This renders as:
177
+
178
+ Run independent requests in parallel with [`Promise.all`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise/all).
179
+
95
180
  ### Images
96
181
 
97
182
  Add images with `![alt text](url)`:
@@ -124,6 +209,16 @@ This renders as:
124
209
  | GFM | GitHub extensions | Supported |
125
210
  | MDX | JSX in Markdown | Supported |
126
211
 
212
+ Tables can also include inline code, as commonly used for file references:
213
+
214
+ | File | Description |
215
+ | -------------------- | ------------------------------------------------ |
216
+ | `next.config.js` | Configuration file for Next.js |
217
+ | `package.json` | Project dependencies and scripts |
218
+ | `instrumentation.ts` | OpenTelemetry and instrumentation file |
219
+ | `.env.local` | Local environment variables |
220
+ | `tsconfig.json` | Configuration file for TypeScript |
221
+
127
222
  ### Task Lists
128
223
 
129
224
  Create interactive task lists:
@@ -196,6 +291,78 @@ export const Button = ({ children }) => {
196
291
  };
197
292
  ```
198
293
 
294
+ ### Tabs and switchers
295
+
296
+ Use consecutive fences with `tab` metadata for code tabs that expose every
297
+ option at once:
298
+
299
+ ````md
300
+ ```ts tab="TypeScript" title="example.ts"
301
+ export const greeting: string = "Hello from TypeScript";
302
+ ```
303
+
304
+ ```js tab="JavaScript" title="example.js"
305
+ export const greeting = "Hello from JavaScript";
306
+ ```
307
+ ````
308
+
309
+ This renders as:
310
+
311
+ ```ts tab="TypeScript" title="example.ts"
312
+ export const greeting: string = "Hello from TypeScript";
313
+ ```
314
+
315
+ ```js tab="JavaScript" title="example.js"
316
+ export const greeting = "Hello from JavaScript";
317
+ ```
318
+
319
+ Wrap the same fences in `<CodeBlockTabs compact>` to move the selector into the
320
+ code-block header:
321
+
322
+ ````mdx
323
+ <CompactCodeBlockTabs defaultValue="TypeScript">
324
+ <CodeBlockTabsList>
325
+ <CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
326
+ <CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
327
+ </CodeBlockTabsList>
328
+ <CodeBlockTab value="TypeScript">
329
+ ```ts title="example.ts"
330
+ export const greeting: string = "Hello from TypeScript";
331
+ ```
332
+ </CodeBlockTab>
333
+ <CodeBlockTab value="JavaScript">
334
+ ```js title="example.js"
335
+ export const greeting = "Hello from JavaScript";
336
+ ```
337
+ </CodeBlockTab>
338
+ </CompactCodeBlockTabs>
339
+ ````
340
+
341
+ This renders as:
342
+
343
+ <CompactCodeBlockTabs defaultValue="TypeScript">
344
+ <CodeBlockTabsList>
345
+ <CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
346
+ <CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
347
+ </CodeBlockTabsList>
348
+ <CodeBlockTab value="TypeScript">
349
+ ```ts title="example.ts"
350
+ export const greeting: string = "Hello from TypeScript";
351
+ ```
352
+ </CodeBlockTab>
353
+ <CodeBlockTab value="JavaScript">
354
+ ```js title="example.js"
355
+ export const greeting = "Hello from JavaScript";
356
+ ```
357
+ </CodeBlockTab>
358
+ </CompactCodeBlockTabs>
359
+
360
+ When migrating an existing site such as next-site, translate adjacent
361
+ `switcher` fences to `tab="TypeScript"` and `tab="JavaScript"`, then wrap the
362
+ pair with `<CodeBlockTabs compact>`. Import `@vercel/geistdocs/styles.css` (or
363
+ `theme.css` with the documented Geist dependencies) so Tailwind scans the
364
+ package's compiled components and emits the tab layout utilities.
365
+
199
366
  ### Framework icons
200
367
 
201
368
  Append `#<framework>` to the title to show a framework logo instead of the
@@ -204,22 +371,22 @@ values are `#next` / `#nextjs` and `#svelte` / `#sveltekit`:
204
371
 
205
372
  ````md
206
373
  ```ts title="flags.ts#next"
207
- import { flag } from 'flags/next';
374
+ import { flag } from "flags/next";
208
375
  ```
209
376
 
210
377
  ```ts title="flags.ts#svelte"
211
- import { flag } from 'flags/sveltekit';
378
+ import { flag } from "flags/sveltekit";
212
379
  ```
213
380
  ````
214
381
 
215
382
  This renders as:
216
383
 
217
384
  ```ts title="flags.ts#next"
218
- import { flag } from 'flags/next';
385
+ import { flag } from "flags/next";
219
386
  ```
220
387
 
221
388
  ```ts title="flags.ts#svelte"
222
- import { flag } from 'flags/sveltekit';
389
+ import { flag } from "flags/sveltekit";
223
390
  ```
224
391
 
225
392
  ### Line Numbers
@@ -181,7 +181,7 @@ Each version can define an `icon` to override the default current/previous versi
181
181
  Use `GeistdocsRouteSelect` for framework, product, or route switchers that should not use version-specific labels:
182
182
 
183
183
  ```tsx
184
- import { LogoNextjs, LogoSvelteKit } from "@vercel/geistdocs/assets/logos";
184
+ import { LogoIconNextSvg, LogoSvelte } from "@vercel/geistcn-assets/logos";
185
185
  import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
186
186
 
187
187
  <GeistdocsRouteSelect
@@ -192,14 +192,14 @@ import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
192
192
  id: "nextjs",
193
193
  label: "Next.js",
194
194
  description: "React framework",
195
- icon: <LogoNextjs height={18} />,
195
+ icon: <LogoIconNextSvg size={18} />,
196
196
  href: "/:path*",
197
197
  },
198
198
  {
199
199
  id: "sveltekit",
200
200
  label: "SvelteKit",
201
201
  description: "Svelte framework",
202
- icon: <LogoSvelteKit height={18} />,
202
+ icon: <LogoSvelte height={18} />,
203
203
  routePrefix: "/sveltekit",
204
204
  href: "/sveltekit/:path*",
205
205
  },
package/docs/sitemap.md CHANGED
@@ -12,7 +12,7 @@ Use it to choose focused page files from `docs/pages/` before reading the full `
12
12
  - [Syntax](pages/syntax.md) | URL: /docs/syntax | Type: reference | Summary: Supported MDX syntax including text formatting, code blocks, line highlighting, and Mermaid diagrams.
13
13
  - [Geistdocs Provider](pages/provider.md) | URL: /docs/provider | Type: reference | Summary: The root provider component that wraps your application to handle toast notifications, search, and analytics.
14
14
  - [Versioned docs](pages/versioned-docs.md) | URL: /docs/versioned-docs | Type: guide | Summary: Use createVersionedSources to configure stable, pre-release, or host-based documentation versions.
15
- - [Proxy and markdown routes](pages/proxy.md) | URL: /docs/proxy | Type: reference | Summary: Configure createProxy with before and after hooks, markdown route mappings, and a static Next.js matcher.
15
+ - [Proxy and markdown routes](pages/proxy.md) | URL: /docs/proxy | Type: reference | Summary: Configure createProxy with generated route discovery, request hooks, markdown mappings, and a static Next.js matcher.
16
16
  - [.md Extension](pages/md.md) | URL: /docs/md | Type: conceptual | Summary: Access any documentation page as raw Markdown by appending .md or .mdx to the URL for AI tool consumption.
17
17
  - [Agent readiness](pages/agent-readiness.md) | URL: /docs/agent-readiness | Type: guide | Summary: Generate /agents.md and /.well-known/mcp.json from Geistdocs config so agents can find docs, Markdown surfaces, API specs, and MCP endpoints.
18
18
  - [Ask AI](pages/ask-ai.md) | URL: /docs/ask-ai | Type: conceptual | Summary: An AI-powered chat assistant with context-aware search, persistent history, and suggested prompts for your documentation.
@@ -24,4 +24,3 @@ Use it to choose focused page files from `docs/pages/` before reading the full `
24
24
  - [Open in Chat](pages/open-in-chat.md) | URL: /docs/open-in-chat | Type: conceptual | Summary: Transfer documentation context to AI chat platforms like ChatGPT, Claude, Cursor, and v0 with a single click.
25
25
  - [RSS](pages/rss.md) | URL: /docs/rss | Type: conceptual | Summary: An automatically generated RSS 2.0 feed that keeps users informed when documentation is published or updated.
26
26
  - [Table of contents](pages/table-of-contents.md) | URL: /docs/table-of-contents | Type: reference | Summary: Geistdocs builds the "On this page" outline from your headings, indents sub-headings under their parent, and tracks the active section along a straight vertical guide rail.
27
- - [Theme-Aware Image](pages/theme-aware-image.md) | URL: /docs/theme-aware-image | Type: reference | Summary: A component that swaps images based on the active theme, built on top of Next.js Image.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vercel/geistdocs",
3
3
  "description": "Runtime and CLI for Geistdocs projects.",
4
- "version": "1.24.1",
4
+ "version": "1.25.1-canary.47f1ad5",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -110,6 +110,10 @@
110
110
  "types": "./dist/proxy.d.ts",
111
111
  "default": "./dist/proxy.js"
112
112
  },
113
+ "./next": {
114
+ "types": "./dist/next.d.ts",
115
+ "default": "./dist/next.js"
116
+ },
113
117
  "./mdx": {
114
118
  "types": "./dist/mdx.d.ts",
115
119
  "default": "./dist/mdx.js"
@@ -127,26 +131,10 @@
127
131
  "types": "./dist/shiki-theme.d.ts",
128
132
  "default": "./dist/shiki-theme.js"
129
133
  },
130
- "./components/badge": {
131
- "types": "./dist/components/badge.d.ts",
132
- "default": "./dist/components/badge.js"
133
- },
134
- "./components/button": {
135
- "types": "./dist/components/button.d.ts",
136
- "default": "./dist/components/button.js"
137
- },
138
- "./components/button-group": {
139
- "types": "./dist/components/button-group.d.ts",
140
- "default": "./dist/components/button-group.js"
141
- },
142
134
  "./components/callout": {
143
135
  "types": "./dist/components/callout.d.ts",
144
136
  "default": "./dist/components/callout.js"
145
137
  },
146
- "./components/card": {
147
- "types": "./dist/components/card.d.ts",
148
- "default": "./dist/components/card.js"
149
- },
150
138
  "./components/code-block": {
151
139
  "types": "./dist/components/code-block.d.ts",
152
140
  "default": "./dist/components/code-block.js"
@@ -167,34 +155,10 @@
167
155
  "types": "./dist/components/copy-prompt.d.ts",
168
156
  "default": "./dist/components/copy-prompt.js"
169
157
  },
170
- "./components/dialog": {
171
- "types": "./dist/components/dialog.d.ts",
172
- "default": "./dist/components/dialog.js"
173
- },
174
- "./components/drawer": {
175
- "types": "./dist/components/drawer.d.ts",
176
- "default": "./dist/components/drawer.js"
177
- },
178
158
  "./components/dropdown-menu": {
179
159
  "types": "./dist/components/dropdown-menu.d.ts",
180
160
  "default": "./dist/components/dropdown-menu.js"
181
161
  },
182
- "./components/input": {
183
- "types": "./dist/components/input.d.ts",
184
- "default": "./dist/components/input.js"
185
- },
186
- "./components/input-group": {
187
- "types": "./dist/components/input-group.d.ts",
188
- "default": "./dist/components/input-group.js"
189
- },
190
- "./components/kbd": {
191
- "types": "./dist/components/kbd.d.ts",
192
- "default": "./dist/components/kbd.js"
193
- },
194
- "./components/theme-aware-image": {
195
- "types": "./dist/components/theme-aware-image.d.ts",
196
- "default": "./dist/components/theme-aware-image.js"
197
- },
198
162
  "./components/mermaid": {
199
163
  "types": "./dist/components/mermaid.d.ts",
200
164
  "default": "./dist/components/mermaid.js"
@@ -211,74 +175,30 @@
211
175
  "types": "./dist/components/scroll-area.d.ts",
212
176
  "default": "./dist/components/scroll-area.js"
213
177
  },
214
- "./components/separator": {
215
- "types": "./dist/components/separator.d.ts",
216
- "default": "./dist/components/separator.js"
217
- },
218
- "./components/sheet": {
219
- "types": "./dist/components/sheet.d.ts",
220
- "default": "./dist/components/sheet.js"
221
- },
222
- "./components/sonner": {
223
- "types": "./dist/components/sonner.d.ts",
224
- "default": "./dist/components/sonner.js"
225
- },
226
- "./components/spinner": {
227
- "types": "./dist/components/spinner.d.ts",
228
- "default": "./dist/components/spinner.js"
229
- },
230
- "./components/switch": {
231
- "types": "./dist/components/switch.d.ts",
232
- "default": "./dist/components/switch.js"
233
- },
234
- "./components/theme-switcher": {
235
- "types": "./dist/components/theme-switcher.d.ts",
236
- "default": "./dist/components/theme-switcher.js"
237
- },
238
- "./components/textarea": {
239
- "types": "./dist/components/textarea.d.ts",
240
- "default": "./dist/components/textarea.js"
241
- },
242
- "./components/tooltip": {
243
- "types": "./dist/components/tooltip.d.ts",
244
- "default": "./dist/components/tooltip.js"
245
- },
246
178
  "./components/video": {
247
179
  "types": "./dist/components/video.d.ts",
248
180
  "default": "./dist/components/video.js"
249
181
  },
250
- "./assets/icons": {
251
- "types": "./dist/assets/icons/index.d.ts",
252
- "default": "./dist/assets/icons/index.js"
253
- },
254
- "./assets/icons/*": {
255
- "types": "./dist/assets/icons/*.d.ts",
256
- "default": "./dist/assets/icons/*.js"
257
- },
258
- "./assets/logos": {
259
- "types": "./dist/assets/logos/index.d.ts",
260
- "default": "./dist/assets/logos/index.js"
261
- },
262
- "./assets/logos/*": {
263
- "types": "./dist/assets/logos/*.d.ts",
264
- "default": "./dist/assets/logos/*.js"
265
- },
266
182
  "./styles.css": "./styles.css",
267
183
  "./theme.css": "./theme.css",
268
184
  "./package.json": "./package.json"
269
185
  },
186
+ "scripts": {
187
+ "build": "rm -rf dist docs template && node ./scripts/bundle-template.mjs && node ./scripts/bundle-docs.mjs && tsc -p tsconfig.runtime.json && tsup --config tsup.config.cli.ts",
188
+ "dev": "tsc -p tsconfig.runtime.json --watch --preserveWatchOutput"
189
+ },
270
190
  "dependencies": {
271
191
  "@ai-sdk/react": "^3.0.134",
272
192
  "@clack/prompts": "^0.11.0",
273
- "@icons-pack/react-simple-icons": "^13.8.0",
274
193
  "@orama/tokenizers": "^3.1.16",
275
194
  "@streamdown/cjk": "^1.0.1",
276
195
  "@streamdown/code": "^1.0.1",
277
196
  "@vercel/agent-readability": "^0.6.0",
197
+ "@vercel/geistcn": "1.0.3",
198
+ "@vercel/geistcn-assets": "2.0.1",
278
199
  "@vercel/oidc": "^3.4.1",
279
200
  "ai": "^6.0.132",
280
201
  "class-variance-authority": "^0.7.1",
281
- "clsx": "^2.1.1",
282
202
  "commander": "^14.0.2",
283
203
  "dexie": "^4.2.1",
284
204
  "dexie-react-hooks": "^4.2.0",
@@ -286,29 +206,26 @@
286
206
  "fumadocs-mdx": "14.0.4",
287
207
  "fumadocs-ui": "16.2.2",
288
208
  "glob": "^11.0.0",
289
- "lucide-react": "^0.555.0",
290
209
  "mermaid": "^11.12.2",
291
210
  "motion": "^12.23.25",
292
211
  "next-themes": "^0.4.6",
212
+ "phase": "^0.5.4",
293
213
  "radix-ui": "1.6.4",
294
214
  "react-player": "^3.4.0",
295
215
  "remark-frontmatter": "^5.0.0",
296
216
  "remark-gfm": "^4.0.1",
297
217
  "remark-mdx": "^3.1.1",
298
218
  "remark-parse": "^11.0.0",
299
- "sonner": "^2.0.7",
300
219
  "streamdown": "^2.1.0",
301
- "tailwind-merge": "^3.4.0",
302
220
  "ts-morph": "^27.0.2",
303
221
  "tw-animate-css": "^1.4.0",
304
222
  "unified": "^11.0.5",
305
223
  "unist-util-visit": "^5.1.0",
306
224
  "use-stick-to-bottom": "^1.1.1",
307
- "vaul": "^1.1.2",
308
225
  "zod": "^4.1.13"
309
226
  },
310
227
  "peerDependencies": {
311
- "next": "^16.3.0",
228
+ "next": "^16.3.3",
312
229
  "react": "^19.2.3",
313
230
  "react-dom": "^19.2.3",
314
231
  "tailwindcss": "^4.1.17"
@@ -322,14 +239,10 @@
322
239
  "@types/react": "^19.2.7",
323
240
  "@types/react-dom": "^19.2.3",
324
241
  "mdast-util-mdx-jsx": "^3.2.0",
325
- "next": "16.3.1",
242
+ "next": "16.3.3",
326
243
  "react": "^19.2.3",
327
244
  "react-dom": "^19.2.3",
328
245
  "tsup": "^8.5.1",
329
246
  "typescript": "^5.9.3"
330
- },
331
- "scripts": {
332
- "build": "rm -rf dist docs template && node ./scripts/bundle-template.mjs && node ./scripts/bundle-docs.mjs && tsc -p tsconfig.runtime.json && tsup --config tsup.config.cli.ts",
333
- "dev": "tsc -p tsconfig.runtime.json --watch --preserveWatchOutput"
334
247
  }
335
- }
248
+ }
package/styles.css CHANGED
@@ -1,9 +1,10 @@
1
- @import "tailwindcss";
1
+ @import "@vercel/geistcn/tailwind.css";
2
2
  @import "fumadocs-ui/css/shadcn.css";
3
3
  @import "fumadocs-ui/css/preset.css";
4
- @import "tw-animate-css";
5
4
 
6
5
  /* The Geist design layer (theme tokens, utilities, base, fumadocs theming).
7
6
  Kept in a separate, import-free file so consuming apps can pull in the same
8
7
  design system without re-bundling Tailwind and the fumadocs presets. */
9
8
  @import "./theme.css";
9
+ @import "@vercel/geistcn/styles.css";
10
+ @import "@vercel/geistcn/marketing-typography.css";
@@ -52,12 +52,14 @@ Use these instructions when an AI coding agent edits this project.
52
52
  ## Routing and proxy guidelines
53
53
 
54
54
  - Keep App Router route files as thin adapters around package helpers such as `createDocsPage`, `createChatRoute`, `createLlmsRoute`, and `createProxy`.
55
+ - Keep `createGeistdocs` from `@vercel/geistdocs/next` as the `next.config.ts` wrapper. It composes Fumadocs MDX and generates the app-route manifest used by `createProxy`; do not replace it with `createMDX` directly.
55
56
  - Keep `cacheComponents: true` and `partialPrefetching: true` in `next.config.ts`. Do not export `dynamic`, `revalidate`, or `fetchCache` from App Router pages or route handlers.
56
57
  - Read `[lang]` from `next/root-params` in Server Components. Keep route context `params` in Route Handlers and Server Actions.
57
58
  - Use `prefetch={true}` for app-owned links to fully static documentation pages so navigation does not stop at the generic route shell.
58
59
  - Keep `export const config` in `proxy.ts` as a static object. Next.js must parse proxy matchers at build time.
59
60
  - Use proxy matcher exclusions that only match `/api` and `/api/...`, such as `api(?:/|$)`. Do not exclude broad prefixes like `api`, because that also excludes routes such as `/api-reference`.
60
61
  - Preserve markdown negotiation unless the task explicitly changes AI-readable output. Geistdocs serves `/agents.md`, `/llms.txt`, `/.well-known/mcp.json`, and per-page Markdown for `.md`, `.mdx`, `Accept: text/markdown`, and AI-agent requests.
62
+ - Restart `next dev` after adding, deleting, or renaming an App Router page or route so `createGeistdocs` regenerates its route manifest.
61
63
  - When adding custom proxy behavior, prefer `before`, `after`, and `markdownRoutes` options on `createProxy` instead of replacing the proxy.
62
64
  - Use explicit `markdownRoutes` for root-mounted docs or any site where homepage/app routes coexist with docs routes.
63
65
  - Keep source URLs, navigation links, `getPageUrl`, and `markdownRoutes` app-local when `config.basePath` is set. Geistdocs derives public page-action and Markdown URLs separately.
@@ -107,3 +109,13 @@ Use these instructions when an AI coding agent edits this project.
107
109
  - Run `pnpm dev` and open the changed pages when visual layout, navigation, or MDX rendering changes.
108
110
  - Check both `/docs` and AI-readable routes such as `/agents.md`, `/.well-known/mcp.json`, `/llms.txt`, or a page-level `.md` URL when changing content routing or proxy behavior.
109
111
  - Confirm no secrets were added to source files. Use `.env.local` for local values and keep it out of Git.
112
+
113
+ <!-- BEGIN:nextjs-agent-rules -->
114
+
115
+ # This is NOT the Next.js you know
116
+
117
+ This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
118
+
119
+ This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
120
+
121
+ <!-- END:nextjs-agent-rules -->
@@ -1,4 +1,4 @@
1
- import { Badge } from "@vercel/geistdocs/components/badge";
1
+ import { Badge } from "@vercel/geistcn/components/badge";
2
2
  import type { ReactNode } from "react";
3
3
 
4
4
  interface HeroProps {
@@ -11,7 +11,7 @@ interface HeroProps {
11
11
  export const Hero = ({ badge, title, description, children }: HeroProps) => (
12
12
  <section className="mt-(--fd-nav-height) space-y-6 px-4 @min-[640px]:pt-24 pt-16 pb-16 text-center">
13
13
  <div className="mx-auto w-full max-w-4xl space-y-5">
14
- <Badge className="rounded-full" variant="secondary">
14
+ <Badge className="rounded-full" contrast="low" variant="gray">
15
15
  <div className="size-2 rounded-full bg-gray-800" />
16
16
  <p>{badge}</p>
17
17
  </Badge>