@vercel/geistdocs 1.2.2 → 1.2.3-canary.a12a9c6

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 (357) hide show
  1. package/dist/assets/icons/icon-arrow-up-right-small.d.ts +8 -0
  2. package/dist/assets/icons/icon-arrow-up-right-small.d.ts.map +1 -0
  3. package/dist/assets/icons/icon-arrow-up-right-small.js +4 -0
  4. package/dist/assets/icons/icon-arrow-up-right.d.ts +5 -0
  5. package/dist/assets/icons/icon-arrow-up-right.d.ts.map +1 -0
  6. package/dist/assets/icons/icon-arrow-up-right.js +4 -0
  7. package/dist/assets/icons/icon-check.d.ts +5 -0
  8. package/dist/assets/icons/icon-check.d.ts.map +1 -0
  9. package/dist/assets/icons/icon-check.js +4 -0
  10. package/dist/assets/icons/icon-chevron-down-small.d.ts +8 -0
  11. package/dist/assets/icons/icon-chevron-down-small.d.ts.map +1 -0
  12. package/dist/assets/icons/icon-chevron-down-small.js +7 -0
  13. package/dist/assets/icons/icon-chevron-right.d.ts +5 -0
  14. package/dist/assets/icons/icon-chevron-right.d.ts.map +1 -0
  15. package/dist/assets/icons/icon-chevron-right.js +4 -0
  16. package/dist/assets/icons/icon-copy.d.ts +5 -0
  17. package/dist/assets/icons/icon-copy.d.ts.map +1 -0
  18. package/dist/assets/icons/icon-copy.js +4 -0
  19. package/dist/assets/icons/icon-file-text.d.ts +5 -0
  20. package/dist/assets/icons/icon-file-text.d.ts.map +1 -0
  21. package/dist/assets/icons/icon-file-text.js +4 -0
  22. package/dist/assets/icons/icon-menu-alt.d.ts +5 -0
  23. package/dist/assets/icons/icon-menu-alt.d.ts.map +1 -0
  24. package/dist/assets/icons/icon-menu-alt.js +4 -0
  25. package/dist/assets/icons/icon-slash-forward.d.ts +8 -0
  26. package/dist/assets/icons/icon-slash-forward.d.ts.map +1 -0
  27. package/dist/assets/icons/icon-slash-forward.js +4 -0
  28. package/dist/assets/icons/index.d.ts +10 -0
  29. package/dist/assets/icons/index.d.ts.map +1 -0
  30. package/dist/assets/icons/index.js +10 -0
  31. package/dist/assets/logos/index.d.ts +13 -0
  32. package/dist/assets/logos/index.d.ts.map +1 -0
  33. package/dist/assets/logos/index.js +13 -0
  34. package/dist/assets/logos/logo-ai-elements.d.ts +8 -0
  35. package/dist/assets/logos/logo-ai-elements.d.ts.map +1 -0
  36. package/dist/assets/logos/logo-ai-elements.js +8 -0
  37. package/dist/assets/logos/logo-ai-sdk.d.ts +8 -0
  38. package/dist/assets/logos/logo-ai-sdk.d.ts.map +1 -0
  39. package/dist/assets/logos/logo-ai-sdk.js +8 -0
  40. package/dist/assets/logos/logo-chat-sdk.d.ts +8 -0
  41. package/dist/assets/logos/logo-chat-sdk.d.ts.map +1 -0
  42. package/dist/assets/logos/logo-chat-sdk.js +8 -0
  43. package/dist/assets/logos/logo-flags-sdk.d.ts +8 -0
  44. package/dist/assets/logos/logo-flags-sdk.d.ts.map +1 -0
  45. package/dist/assets/logos/logo-flags-sdk.js +8 -0
  46. package/dist/assets/logos/logo-icon-vercel.d.ts +9 -0
  47. package/dist/assets/logos/logo-icon-vercel.d.ts.map +1 -0
  48. package/dist/assets/logos/logo-icon-vercel.js +8 -0
  49. package/dist/assets/logos/logo-streamdown.d.ts +8 -0
  50. package/dist/assets/logos/logo-streamdown.d.ts.map +1 -0
  51. package/dist/assets/logos/logo-streamdown.js +8 -0
  52. package/dist/assets/logos/logo-vercel-oss.d.ts +8 -0
  53. package/dist/assets/logos/logo-vercel-oss.d.ts.map +1 -0
  54. package/dist/assets/logos/logo-vercel-oss.js +7 -0
  55. package/dist/assets/logos/logo-workflow-sdk.d.ts +8 -0
  56. package/dist/assets/logos/logo-workflow-sdk.d.ts.map +1 -0
  57. package/dist/assets/logos/logo-workflow-sdk.js +8 -0
  58. package/dist/cli/index.js +3 -0
  59. package/dist/components/callout.d.ts +12 -0
  60. package/dist/components/callout.d.ts.map +1 -0
  61. package/dist/components/callout.js +7 -0
  62. package/dist/components/code-block-tabs.d.ts +7 -0
  63. package/dist/components/code-block-tabs.d.ts.map +1 -0
  64. package/dist/components/code-block-tabs.js +7 -0
  65. package/dist/components/code-block.d.ts +14 -0
  66. package/dist/components/code-block.d.ts.map +1 -0
  67. package/dist/components/code-block.js +45 -0
  68. package/dist/components/copy-prompt.d.ts +11 -0
  69. package/dist/components/copy-prompt.d.ts.map +1 -0
  70. package/dist/components/copy-prompt.js +58 -0
  71. package/dist/components/mermaid.d.ts +4 -0
  72. package/dist/components/mermaid.d.ts.map +1 -0
  73. package/dist/components/mermaid.js +44 -0
  74. package/dist/components/theme-aware-image.d.ts +12 -0
  75. package/dist/components/theme-aware-image.d.ts.map +1 -0
  76. package/dist/components/theme-aware-image.js +8 -0
  77. package/dist/components/video.d.ts +6 -0
  78. package/dist/components/video.d.ts.map +1 -0
  79. package/dist/components/video.js +3 -0
  80. package/dist/config.d.ts +71 -0
  81. package/dist/config.d.ts.map +1 -0
  82. package/dist/config.js +1 -0
  83. package/dist/controls.d.ts +15 -0
  84. package/dist/controls.d.ts.map +1 -0
  85. package/dist/controls.js +52 -0
  86. package/dist/internal/chat/context.d.ts +19 -0
  87. package/dist/internal/chat/context.d.ts.map +1 -0
  88. package/dist/internal/chat/context.js +36 -0
  89. package/dist/internal/chat/conversation.d.ts +10 -0
  90. package/dist/internal/chat/conversation.d.ts.map +1 -0
  91. package/dist/internal/chat/conversation.js +16 -0
  92. package/dist/internal/chat/copy-chat.d.ts +5 -0
  93. package/dist/internal/chat/copy-chat.d.ts.map +1 -0
  94. package/dist/internal/chat/copy-chat.js +35 -0
  95. package/dist/internal/chat/db.d.ts +13 -0
  96. package/dist/internal/chat/db.d.ts.map +1 -0
  97. package/dist/internal/chat/db.js +19 -0
  98. package/dist/internal/chat/message-metadata.d.ts +8 -0
  99. package/dist/internal/chat/message-metadata.d.ts.map +1 -0
  100. package/dist/internal/chat/message-metadata.js +29 -0
  101. package/dist/internal/chat/message.d.ts +11 -0
  102. package/dist/internal/chat/message.d.ts.map +1 -0
  103. package/dist/internal/chat/message.js +11 -0
  104. package/dist/internal/chat/prompt-input.d.ts +13 -0
  105. package/dist/internal/chat/prompt-input.d.ts.map +1 -0
  106. package/dist/internal/chat/prompt-input.js +39 -0
  107. package/dist/internal/chat/shell.d.ts +2 -0
  108. package/dist/internal/chat/shell.d.ts.map +1 -0
  109. package/dist/internal/chat/shell.js +194 -0
  110. package/dist/internal/chat/shimmer.d.ts +11 -0
  111. package/dist/internal/chat/shimmer.d.ts.map +1 -0
  112. package/dist/internal/chat/shimmer.js +18 -0
  113. package/dist/internal/chat/sources.d.ts +13 -0
  114. package/dist/internal/chat/sources.d.ts.map +1 -0
  115. package/dist/internal/chat/sources.js +9 -0
  116. package/dist/internal/chat/suggestion.d.ts +11 -0
  117. package/dist/internal/chat/suggestion.d.ts.map +1 -0
  118. package/dist/internal/chat/suggestion.js +12 -0
  119. package/dist/internal/cn.d.ts +3 -0
  120. package/dist/internal/cn.d.ts.map +1 -0
  121. package/dist/internal/cn.js +3 -0
  122. package/dist/internal/feedback-action.d.ts +14 -0
  123. package/dist/internal/feedback-action.d.ts.map +1 -0
  124. package/dist/internal/feedback-action.js +34 -0
  125. package/dist/internal/i18n.d.ts +6 -0
  126. package/dist/internal/i18n.d.ts.map +1 -0
  127. package/dist/internal/i18n.js +18 -0
  128. package/dist/internal/languages.d.ts +7 -0
  129. package/dist/internal/languages.d.ts.map +1 -0
  130. package/dist/internal/languages.js +18 -0
  131. package/dist/internal/not-implemented.d.ts +2 -0
  132. package/dist/internal/not-implemented.d.ts.map +1 -0
  133. package/dist/internal/not-implemented.js +4 -0
  134. package/dist/internal/page-actions-client.d.ts +13 -0
  135. package/dist/internal/page-actions-client.d.ts.map +1 -0
  136. package/dist/internal/page-actions-client.js +160 -0
  137. package/dist/internal/page-actions.d.ts +18 -0
  138. package/dist/internal/page-actions.d.ts.map +1 -0
  139. package/dist/internal/page-actions.js +4 -0
  140. package/dist/internal/provider-client.d.ts +9 -0
  141. package/dist/internal/provider-client.d.ts.map +1 -0
  142. package/dist/internal/provider-client.js +23 -0
  143. package/dist/internal/search.d.ts +5 -0
  144. package/dist/internal/search.d.ts.map +1 -0
  145. package/dist/internal/search.js +14 -0
  146. package/dist/internal/sidebar.d.ts +9 -0
  147. package/dist/internal/sidebar.d.ts.map +1 -0
  148. package/dist/internal/sidebar.js +38 -0
  149. package/dist/internal/table-of-contents.d.ts +9 -0
  150. package/dist/internal/table-of-contents.d.ts.map +1 -0
  151. package/dist/internal/table-of-contents.js +5 -0
  152. package/dist/internal/ui/button-group.d.ts +13 -0
  153. package/dist/internal/ui/button-group.d.ts.map +1 -0
  154. package/dist/internal/ui/button-group.js +26 -0
  155. package/dist/internal/ui/button.d.ts +12 -0
  156. package/dist/internal/ui/button.d.ts.map +1 -0
  157. package/dist/internal/ui/button.js +33 -0
  158. package/dist/internal/ui/card.d.ts +6 -0
  159. package/dist/internal/ui/card.d.ts.map +1 -0
  160. package/dist/internal/ui/card.js +14 -0
  161. package/dist/internal/ui/collapsible.d.ts +6 -0
  162. package/dist/internal/ui/collapsible.d.ts.map +1 -0
  163. package/dist/internal/ui/collapsible.js +12 -0
  164. package/dist/internal/ui/drawer.d.ts +6 -0
  165. package/dist/internal/ui/drawer.d.ts.map +1 -0
  166. package/dist/internal/ui/drawer.js +13 -0
  167. package/dist/internal/ui/dropdown-menu.d.ts +22 -0
  168. package/dist/internal/ui/dropdown-menu.d.ts.map +1 -0
  169. package/dist/internal/ui/dropdown-menu.js +41 -0
  170. package/dist/internal/ui/input-group.d.ts +15 -0
  171. package/dist/internal/ui/input-group.d.ts.map +1 -0
  172. package/dist/internal/ui/input-group.js +44 -0
  173. package/dist/internal/ui/input.d.ts +3 -0
  174. package/dist/internal/ui/input.d.ts.map +1 -0
  175. package/dist/internal/ui/input.js +5 -0
  176. package/dist/internal/ui/kbd.d.ts +4 -0
  177. package/dist/internal/ui/kbd.d.ts.map +1 -0
  178. package/dist/internal/ui/kbd.js +8 -0
  179. package/dist/internal/ui/popover.d.ts +6 -0
  180. package/dist/internal/ui/popover.d.ts.map +1 -0
  181. package/dist/internal/ui/popover.js +13 -0
  182. package/dist/internal/ui/scroll-area.d.ts +5 -0
  183. package/dist/internal/ui/scroll-area.d.ts.map +1 -0
  184. package/dist/internal/ui/scroll-area.js +12 -0
  185. package/dist/internal/ui/separator.d.ts +4 -0
  186. package/dist/internal/ui/separator.d.ts.map +1 -0
  187. package/dist/internal/ui/separator.js +7 -0
  188. package/dist/internal/ui/sheet.d.ts +10 -0
  189. package/dist/internal/ui/sheet.d.ts.map +1 -0
  190. package/dist/internal/ui/sheet.js +24 -0
  191. package/dist/internal/ui/sonner.d.ts +3 -0
  192. package/dist/internal/ui/sonner.d.ts.map +1 -0
  193. package/dist/internal/ui/sonner.js +20 -0
  194. package/dist/internal/ui/spinner.d.ts +3 -0
  195. package/dist/internal/ui/spinner.d.ts.map +1 -0
  196. package/dist/internal/ui/spinner.js +6 -0
  197. package/dist/internal/ui/textarea.d.ts +3 -0
  198. package/dist/internal/ui/textarea.d.ts.map +1 -0
  199. package/dist/internal/ui/textarea.js +5 -0
  200. package/dist/internal/ui/tooltip.d.ts +7 -0
  201. package/dist/internal/ui/tooltip.d.ts.map +1 -0
  202. package/dist/internal/ui/tooltip.js +16 -0
  203. package/dist/internal/use-mobile.d.ts +2 -0
  204. package/dist/internal/use-mobile.d.ts.map +1 -0
  205. package/dist/internal/use-mobile.js +16 -0
  206. package/dist/layout.d.ts +14 -0
  207. package/dist/layout.d.ts.map +1 -0
  208. package/dist/layout.js +31 -0
  209. package/dist/mdx.d.ts +36 -0
  210. package/dist/mdx.d.ts.map +1 -0
  211. package/dist/mdx.js +80 -0
  212. package/dist/pages/docs.d.ts +77 -0
  213. package/dist/pages/docs.d.ts.map +1 -0
  214. package/dist/pages/docs.js +92 -0
  215. package/dist/proxy.d.ts +37 -0
  216. package/dist/proxy.d.ts.map +1 -0
  217. package/dist/proxy.js +162 -0
  218. package/dist/routes/chat.d.ts +14 -0
  219. package/dist/routes/chat.d.ts.map +1 -0
  220. package/dist/routes/chat.js +242 -0
  221. package/dist/routes/llms.d.ts +51 -0
  222. package/dist/routes/llms.d.ts.map +1 -0
  223. package/dist/routes/llms.js +59 -0
  224. package/dist/routes/search.d.ts +11 -0
  225. package/dist/routes/search.d.ts.map +1 -0
  226. package/dist/routes/search.js +74 -0
  227. package/dist/routes/sitemap.d.ts +44 -0
  228. package/dist/routes/sitemap.d.ts.map +1 -0
  229. package/dist/routes/sitemap.js +168 -0
  230. package/dist/shiki-theme.d.ts +20 -0
  231. package/dist/shiki-theme.d.ts.map +1 -0
  232. package/dist/shiki-theme.js +110 -0
  233. package/dist/sidebar.d.ts +11 -0
  234. package/dist/sidebar.d.ts.map +1 -0
  235. package/dist/sidebar.js +16 -0
  236. package/dist/source.d.ts +174 -0
  237. package/dist/source.d.ts.map +1 -0
  238. package/dist/source.js +129 -0
  239. package/dist/versions.d.ts +15 -0
  240. package/dist/versions.d.ts.map +1 -0
  241. package/dist/versions.js +52 -0
  242. package/package.json +161 -9
  243. package/styles.css +556 -0
  244. package/template/_gitignore +29 -0
  245. package/template/app/[lang]/(home)/components/centered-section.tsx +24 -0
  246. package/template/app/[lang]/(home)/components/cta.tsx +19 -0
  247. package/template/app/[lang]/(home)/components/hero.tsx +27 -0
  248. package/template/app/[lang]/(home)/components/one-two-section.tsx +23 -0
  249. package/template/app/[lang]/(home)/components/templates.tsx +48 -0
  250. package/template/app/[lang]/(home)/components/text-grid-section.tsx +20 -0
  251. package/template/app/[lang]/(home)/layout.tsx +14 -0
  252. package/template/app/[lang]/(home)/page.tsx +126 -0
  253. package/template/app/[lang]/docs/[[...slug]]/page.tsx +19 -0
  254. package/template/app/[lang]/docs/layout.tsx +14 -0
  255. package/template/app/[lang]/layout.tsx +29 -0
  256. package/template/app/[lang]/llms.mdx/[[...slug]]/route.ts +7 -0
  257. package/template/app/[lang]/llms.txt/route.ts +6 -0
  258. package/template/app/[lang]/og/[...slug]/background.png +0 -0
  259. package/template/app/[lang]/og/[...slug]/geist-sans-regular.ttf +0 -0
  260. package/template/app/[lang]/og/[...slug]/geist-sans-semibold.ttf +0 -0
  261. package/template/app/[lang]/og/[...slug]/route.tsx +95 -0
  262. package/template/app/[lang]/rss.xml/route.ts +52 -0
  263. package/template/app/[lang]/sitemap.md/route.ts +9 -0
  264. package/template/app/actions/feedback/emotions.ts +18 -0
  265. package/template/app/actions/feedback/index.ts +45 -0
  266. package/template/app/api/chat/route.ts +8 -0
  267. package/template/app/api/search/route.ts +5 -0
  268. package/template/app/favicon.ico +0 -0
  269. package/template/app/global.css +2 -0
  270. package/template/app/robots.ts +14 -0
  271. package/template/app/sitemap.ts +36 -0
  272. package/template/app/styles/geistdocs.css +595 -0
  273. package/template/components/geistdocs/chat.tsx +24 -0
  274. package/template/components/geistdocs/desktop-menu.tsx +52 -0
  275. package/template/components/geistdocs/docs-layout.tsx +20 -0
  276. package/template/components/geistdocs/feedback.tsx +139 -0
  277. package/template/components/geistdocs/footer.tsx +30 -0
  278. package/template/components/geistdocs/github-button.tsx +19 -0
  279. package/template/components/geistdocs/home-layout.tsx +46 -0
  280. package/template/components/geistdocs/language-selector.tsx +3 -0
  281. package/template/components/geistdocs/mdx-components.tsx +5 -0
  282. package/template/components/geistdocs/mobile-docs-bar.tsx +77 -0
  283. package/template/components/geistdocs/mobile-menu.tsx +150 -0
  284. package/template/components/geistdocs/navbar-logo.tsx +124 -0
  285. package/template/components/geistdocs/navbar.tsx +22 -0
  286. package/template/components/geistdocs/provider.tsx +31 -0
  287. package/template/components/geistdocs/rss-button.tsx +10 -0
  288. package/template/components/geistdocs/search.tsx +17 -0
  289. package/template/components/geistdocs/sidebar.tsx +128 -0
  290. package/template/components/geistdocs/theme-aware-image.tsx +22 -0
  291. package/template/components/geistdocs/theme-toggle.tsx +3 -0
  292. package/template/components/ui/badge.tsx +46 -0
  293. package/template/components/ui/button.tsx +60 -0
  294. package/template/components/ui/card.tsx +92 -0
  295. package/template/components/ui/command-prompt.tsx +488 -0
  296. package/template/components/ui/dialog.tsx +143 -0
  297. package/template/components/ui/input-group.tsx +170 -0
  298. package/template/components/ui/input.tsx +21 -0
  299. package/template/components/ui/navigation-menu.tsx +192 -0
  300. package/template/components/ui/popover.tsx +48 -0
  301. package/template/components/ui/separator.tsx +28 -0
  302. package/template/components/ui/sheet.tsx +139 -0
  303. package/template/components/ui/textarea.tsx +18 -0
  304. package/template/components.json +22 -0
  305. package/template/content/docs/ask-ai.cn.mdx +85 -0
  306. package/template/content/docs/ask-ai.mdx +89 -0
  307. package/template/content/docs/configuration.cn.mdx +155 -0
  308. package/template/content/docs/configuration.mdx +200 -0
  309. package/template/content/docs/deployment.cn.mdx +34 -0
  310. package/template/content/docs/deployment.mdx +40 -0
  311. package/template/content/docs/edit-on-github.cn.mdx +47 -0
  312. package/template/content/docs/edit-on-github.mdx +51 -0
  313. package/template/content/docs/env.cn.mdx +25 -0
  314. package/template/content/docs/env.mdx +29 -0
  315. package/template/content/docs/feedback.cn.mdx +85 -0
  316. package/template/content/docs/feedback.mdx +89 -0
  317. package/template/content/docs/getting-started.cn.mdx +86 -0
  318. package/template/content/docs/getting-started.mdx +107 -0
  319. package/template/content/docs/index.cn.mdx +57 -0
  320. package/template/content/docs/index.mdx +92 -0
  321. package/template/content/docs/internationalization.cn.mdx +111 -0
  322. package/template/content/docs/internationalization.mdx +122 -0
  323. package/template/content/docs/llms-txt.cn.mdx +72 -0
  324. package/template/content/docs/llms-txt.mdx +85 -0
  325. package/template/content/docs/md.cn.mdx +65 -0
  326. package/template/content/docs/md.mdx +81 -0
  327. package/template/content/docs/meta.json +23 -0
  328. package/template/content/docs/open-in-chat.cn.mdx +78 -0
  329. package/template/content/docs/open-in-chat.mdx +80 -0
  330. package/template/content/docs/provider.cn.mdx +70 -0
  331. package/template/content/docs/provider.mdx +74 -0
  332. package/template/content/docs/proxy.cn.mdx +96 -0
  333. package/template/content/docs/proxy.mdx +124 -0
  334. package/template/content/docs/rss.cn.mdx +104 -0
  335. package/template/content/docs/rss.mdx +108 -0
  336. package/template/content/docs/syntax.cn.mdx +416 -0
  337. package/template/content/docs/syntax.mdx +411 -0
  338. package/template/content/docs/theme-aware-image.mdx +57 -0
  339. package/template/content/docs/versioned-docs.cn.mdx +117 -0
  340. package/template/content/docs/versioned-docs.mdx +181 -0
  341. package/template/geistdocs.tsx +51 -0
  342. package/template/hooks/geistdocs/use-sidebar.ts +13 -0
  343. package/template/hooks/use-mobile.ts +19 -0
  344. package/template/lib/geistdocs/config.tsx +27 -0
  345. package/template/lib/geistdocs/fonts.ts +18 -0
  346. package/template/lib/geistdocs/i18n.ts +13 -0
  347. package/template/lib/geistdocs/md-tracking.ts +56 -0
  348. package/template/lib/geistdocs/source.ts +12 -0
  349. package/template/lib/utils.ts +6 -0
  350. package/template/next.config.ts +22 -0
  351. package/template/package.json +63 -0
  352. package/template/postcss.config.mjs +5 -0
  353. package/template/proxy.ts +18 -0
  354. package/template/source.config.ts +179 -0
  355. package/template/tsconfig.json +37 -0
  356. package/dist/index.js +0 -2
  357. /package/dist/{index.d.ts → cli/index.d.ts} +0 -0
@@ -0,0 +1,111 @@
1
+ ---
2
+ title: 国际化
3
+ description: 为您的文档站点添加多语言支持
4
+ type: guide
5
+ summary: 通过 Geistdocs CLI 和 Fumadocs 路由实现多语言文档自动翻译。
6
+ prerequisites:
7
+ - /docs/getting-started
8
+ related:
9
+ - /docs/configuration
10
+ ---
11
+
12
+ Geistdocs 支持开箱即用的国际化 (i18n),使用 Fumadocs 的语言感知路由。您可以通过 Geistdocs CLI 提供多语言文档并使用自动翻译。
13
+
14
+ ## 工作原理
15
+
16
+ i18n 系统使用带有 `[lang]` URL 段的动态路由。默认语言(英语)不会显示在 URL 中,而其他语言会获得前缀:
17
+
18
+ - `/docs/getting-started` - 英语(默认)
19
+ - `/cn/docs/getting-started` - 中文
20
+
21
+ 用户可以使用导航栏中的语言选择器切换语言。
22
+
23
+ ## 翻译内容
24
+
25
+ 使用 Geistdocs CLI 自动翻译您的 MDX 文件:
26
+
27
+ ```bash
28
+ npx @vercel/geistdocs translate
29
+ ```
30
+
31
+ CLI 会从 `geistdocs.tsx` 中读取目标语言并提示您选择要翻译的文件。
32
+
33
+ 翻译由 Geistdocs 平台生成,并与原始文件并存保存在带有区域后缀的文件中(例如,`introduction.cn.mdx`)。
34
+
35
+ ### 命令选项
36
+
37
+ 您可以直接传递选项以跳过交互式提示:
38
+
39
+ ```bash
40
+ # Translate files using the default glob pattern
41
+ npx @vercel/geistdocs translate
42
+
43
+ # Translate files matching a specific glob pattern
44
+ npx @vercel/geistdocs translate "content/docs/**/*.mdx"
45
+
46
+ # Use a custom config file
47
+ npx @vercel/geistdocs translate "content/**/*.mdx" --config custom-config.tsx
48
+ ```
49
+
50
+ | 选项 | 描述 |
51
+ | ----------- | ---------------------------------------------------------- |
52
+ | `--config` | 含有翻译配置的配置文件路径(默认:`geistdocs.tsx`) |
53
+ | `--url` | 自定义翻译 API URL |
54
+
55
+ ### 批量处理
56
+
57
+ 当翻译多个文件时,CLI 会自动将它们分成每组 10 个的批次,以避免速率限制。每个批次完成时都会显示进度。
58
+
59
+ ## 配置
60
+
61
+ 在 `geistdocs.tsx` 中配置支持的语言:
62
+
63
+ ```typescript title="geistdocs.tsx"
64
+ export const translations = {
65
+ en: {
66
+ displayName: "English",
67
+ },
68
+ cn: {
69
+ displayName: "中文",
70
+ search: "搜尋文檔",
71
+ },
72
+ };
73
+ ```
74
+
75
+ `translations` 对象中的第一个区域设置被视为默认/源语言,并且不会作为翻译目标。
76
+
77
+ ### 添加新语言
78
+
79
+ 添加新语言的步骤:
80
+
81
+ 1. 在 `translations` 对象中添加带有语言代码的新键
82
+ 2. 为诸如 `displayName` 和 `search` 之类的 UI 元素添加翻译
83
+ 3. 运行 `npx @vercel/geistdocs translate "content/**/*.mdx"` 以生成翻译内容
84
+
85
+ 语言选择器将自动包含您添加的新语言。
86
+
87
+ ## 内容组织
88
+
89
+ 翻译后的文件与原始文件并存并带有语言后缀保存:
90
+
91
+ ```
92
+ content/docs/
93
+ ├── getting-started.mdx # English (default)
94
+ ├── getting-started.cn.mdx # Chinese
95
+ ├── getting-started.fr.mdx # French
96
+ └── getting-started.es.mdx # Spanish
97
+ ```
98
+
99
+ Fumadocs 会根据 URL 路径自动提供正确的文件。
100
+
101
+ ## 翻译 UI 元素
102
+
103
+ `geistdocs.tsx` 中的 `translations` 对象控制诸如搜索占位符、导航标签和错误消息等 UI 文本。为您支持的每种语言添加相应的翻译。
104
+
105
+ 如果您没有为某个特定元素提供翻译,则会回退到英语。
106
+
107
+ ## 语言检测
108
+
109
+ 语言由 URL 路径确定。不根据浏览器设置进行自动检测——用户必须使用语言选择器显式选择他们的语言。
110
+
111
+ 这种方法为用户提供了完全的控制,并确保他们看到预期的语言。
@@ -0,0 +1,122 @@
1
+ ---
2
+ title: Internationalization
3
+ description: Add multi-language support to your documentation site
4
+ type: guide
5
+ summary: Serve documentation in multiple languages with automatic translation via the Geistdocs CLI and Fumadocs routing.
6
+ prerequisites:
7
+ - /docs/getting-started
8
+ related:
9
+ - /docs/configuration
10
+ ---
11
+
12
+ Geistdocs supports internationalization (i18n) out of the box using Fumadocs' language-aware routing. You can serve documentation in multiple languages with automatic translation via the Geistdocs CLI.
13
+
14
+ <CopyPrompt text="Help me add a new language to this Geistdocs project. Update translations in geistdocs.tsx, run the Geistdocs translate command for content/docs, and explain how localized routes are generated.">
15
+ Help me add a new language to this Geistdocs project. Update `translations` in `geistdocs.tsx`, run the Geistdocs translate command for `content/docs`, and explain how localized routes are generated.
16
+ </CopyPrompt>
17
+
18
+ ## How it works
19
+
20
+ The i18n system uses dynamic routing with a `[lang]` URL segment. The default language (English) doesn't show in URLs, while other languages get a prefix:
21
+
22
+ - `/docs/getting-started` - English (default)
23
+ - `/cn/docs/getting-started` - Chinese
24
+
25
+ Users can switch languages using the language selector in the navigation bar.
26
+
27
+ ## Translating Content
28
+
29
+ Use the Geistdocs CLI to automatically translate your MDX files:
30
+
31
+ ```bash
32
+ pnpm translate
33
+ ```
34
+
35
+ The CLI reads your target locales from `geistdocs.tsx`. If no locales are found in the config, you'll be prompted to enter them manually.
36
+
37
+ Translations are generated using the Geistdocs platform and saved alongside your original file with the locale suffix (e.g., `introduction.cn.mdx`).
38
+
39
+ ### Command Options
40
+
41
+ You can pass options directly to customize the translation behavior:
42
+
43
+ ```bash
44
+ # Translate all MDX files (uses default pattern)
45
+ pnpm translate
46
+
47
+ # Translate files matching a specific glob pattern
48
+ pnpm translate "content/docs/**/*.mdx"
49
+
50
+ # Use a custom config file
51
+ pnpm translate "content/**/*.mdx" --config custom-config.tsx
52
+
53
+ # Use a custom translation API URL
54
+ pnpm translate --url "https://custom-api.example.com/translate"
55
+ ```
56
+
57
+ | Option | Description |
58
+ | ----------- | -------------------------------------------------------- |
59
+ | `--config` | Path to config file with translations (default: `geistdocs.tsx`) |
60
+ | `--url` | Custom translation API URL (can also use `GEISTDOCS_TRANSLATE_URL` env var) |
61
+
62
+ Pass the glob pattern as the command argument. If you omit it, Geistdocs uses `content/docs/**/*.mdx`.
63
+
64
+ The CLI automatically excludes files that already have a locale suffix (e.g., `getting-started.cn.mdx`) to avoid translating already-translated content.
65
+
66
+ ### Batch Processing
67
+
68
+ When translating multiple files, the CLI automatically batches them into groups of 10. Progress is displayed as each batch completes, and a 1-second delay is added between batches to avoid rate limiting.
69
+
70
+ ## Configuration
71
+
72
+ Configure supported languages in `geistdocs.tsx`:
73
+
74
+ ```typescript title="geistdocs.tsx"
75
+ export const translations = {
76
+ en: {
77
+ displayName: "English",
78
+ },
79
+ cn: {
80
+ displayName: "中文",
81
+ search: "搜尋文檔",
82
+ },
83
+ };
84
+ ```
85
+
86
+ The first locale in the `translations` object is treated as your default/source language and is excluded from translation targets.
87
+
88
+ ### Adding a New Language
89
+
90
+ To add a new language:
91
+
92
+ 1. Add a new key to the `translations` object with the language code
93
+ 2. Add translations for UI elements like `displayName` and `search`
94
+ 3. Run `pnpm translate "content/**/*.mdx"` to generate translated content
95
+
96
+ The language selector will automatically include your new language.
97
+
98
+ ## Content Organization
99
+
100
+ Translated files are saved alongside the original with a locale suffix:
101
+
102
+ ```
103
+ content/docs/
104
+ ├── getting-started.mdx # English (default)
105
+ ├── getting-started.cn.mdx # Chinese
106
+ ├── getting-started.fr.mdx # French
107
+ └── getting-started.es.mdx # Spanish
108
+ ```
109
+
110
+ Fumadocs automatically serves the correct file based on the URL path.
111
+
112
+ ## Translating UI Elements
113
+
114
+ The `translations` object in `geistdocs.tsx` controls UI text like search placeholders, navigation labels, and error messages. Add translations for each language you support.
115
+
116
+ If you don't provide a translation for a specific element, it falls back to English.
117
+
118
+ ## Language Detection
119
+
120
+ The language is determined by the URL path. There's no automatic detection based on browser settings - users must explicitly choose their language using the language selector.
121
+
122
+ This approach gives users full control and ensures they see the language they expect.
@@ -0,0 +1,72 @@
1
+ ---
2
+ title: llms.txt
3
+ description: 一个包含您所有文档的纯文本单文件,供 AI 使用
4
+ type: conceptual
5
+ summary: 遵循 llms.txt 标准,将所有文档以纯 Markdown 文本形式返回的单一端点。
6
+ related:
7
+ - /docs/md
8
+ - /docs/ask-ai
9
+ - /docs/proxy
10
+ ---
11
+
12
+ Geistdocs 实现了 [llms.txt 标准](https://llmstxt.org/) —— 一种约定,将您所有的文档内容提供为单个、AI 可读的文本文件。这使得语言模型可以一次性轻松理解您的完整文档。
13
+
14
+ ## 它是什么
15
+
16
+ `/llms.txt` 端点以单次响应返回您所有的文档页面,格式为纯 Markdown。每个页面之间用空行分隔,便于 AI 工具解析和理解您的完整文档。
17
+
18
+ ### 访问
19
+
20
+ ```
21
+ https://yourdomain.com/llms.txt
22
+ ```
23
+
24
+ 将所有文档页面串联为纯文本返回。
25
+
26
+ ## 工作原理
27
+
28
+ 该端点会:
29
+
30
+ 1. 从您的文档中获取所有页面
31
+ 2. 处理每个页面以提取干净的 Markdown
32
+ 3. 将所有内容合并为单个文本文件
33
+ 4. 以 `text/markdown` 返回
34
+
35
+ 页面之间使用双换行符 (`\n\n`) 连接以便清晰分隔。
36
+
37
+ ## 配置 sources
38
+
39
+ 生成的项目使用一个文档 source:
40
+
41
+ ```ts title="app/[lang]/llms.txt/route.ts"
42
+ import { createLlmsRoute } from "@vercel/geistdocs/routes/llms";
43
+ import { geistdocsSource } from "@/lib/geistdocs/source";
44
+
45
+ export const { GET, revalidate } = createLlmsRoute({
46
+ source: geistdocsSource,
47
+ });
48
+ ```
49
+
50
+ 有多个内容区或版本的站点可以传入 `sources`:
51
+
52
+ ```ts title="app/[lang]/llms.txt/route.ts"
53
+ export const { GET, revalidate } = createLlmsRoute({
54
+ sources: [docsSource, cookbookSource],
55
+ });
56
+ ```
57
+
58
+ ## 使用场景
59
+
60
+ 此功能可用于:
61
+
62
+ - **AI 训练** - 将您的文档作为 AI 助手的上下文
63
+ - **搜索索引** - 将您完整的文档提供给搜索系统
64
+ - **内容分析** - 分析跨文档的模式和内容
65
+ - **批量处理** - 一次处理所有文档
66
+ - **LLM 上下文** - 为语言模型提供完整的文档上下文
67
+
68
+ ## llms.txt 标准
69
+
70
+ llms.txt 标准是一种简单的约定,使文档对 AI 工具更易访问。它在精神上类似于 `robots.txt`,但设计目标是面向语言模型而非搜索爬虫。
71
+
72
+ 在 [llmstxt.org](https://llmstxt.org/) 了解更多。
@@ -0,0 +1,85 @@
1
+ ---
2
+ title: llms.txt
3
+ description: A single file containing all your documentation in plain text for AI consumption
4
+ type: conceptual
5
+ summary: A single endpoint that returns all documentation as plain Markdown text following the llms.txt standard.
6
+ related:
7
+ - /docs/md
8
+ - /docs/ask-ai
9
+ - /docs/proxy
10
+ ---
11
+
12
+ Geistdocs implements the [llms.txt standard](https://llmstxt.org/), a convention for exposing documentation as one AI-readable text file. Language models and coding agents can use `/llms.txt` to retrieve broad documentation context.
13
+
14
+ <CopyPrompt text="Help me verify this Geistdocs site's AI-readable docs. Check /llms.txt and a few .mdx page URLs, then explain whether an AI assistant can retrieve the full documentation context.">
15
+ Help me verify this Geistdocs site's AI-readable docs. Check `/llms.txt` and a few `.mdx` page URLs, then explain whether an AI assistant can retrieve the full documentation context.
16
+ </CopyPrompt>
17
+
18
+ ## What it is
19
+
20
+ The `/llms.txt` endpoint returns all configured documentation pages as Markdown in a single response. Each page is separated by blank lines so AI tools can parse the complete documentation set.
21
+
22
+ ### Access
23
+
24
+ ```
25
+ https://yourdomain.com/llms.txt
26
+ ```
27
+
28
+ Returns all documentation pages concatenated together as Markdown.
29
+
30
+ ## How it works
31
+
32
+ The package route helper:
33
+
34
+ 1. Fetches pages from one or more source bundles.
35
+ 2. Processes each page to extract clean Markdown.
36
+ 3. Combines the pages into a single response.
37
+ 4. Returns the response as `text/markdown`.
38
+
39
+ Pages are joined with double newlines (`\n\n`) for clear separation.
40
+
41
+ ## Use cases
42
+
43
+ This feature enables:
44
+
45
+ - **AI Training** - Provide your docs as context for AI assistants
46
+ - **Search Indexing** - Feed your entire documentation to search systems
47
+ - **Content Analysis** - Analyze patterns and content across all docs
48
+ - **Bulk Processing** - Process all documentation at once
49
+ - **LLM Context** - Give language models complete documentation context
50
+
51
+ ## Configure sources
52
+
53
+ Generated projects use one documentation source:
54
+
55
+ ```ts title="app/[lang]/llms.txt/route.ts"
56
+ import { createLlmsRoute } from "@vercel/geistdocs/routes/llms";
57
+ import { geistdocsSource } from "@/lib/geistdocs/source";
58
+
59
+ export const { GET, revalidate } = createLlmsRoute({
60
+ source: geistdocsSource,
61
+ });
62
+ ```
63
+
64
+ Sites with multiple content sections or versions can pass `sources`:
65
+
66
+ ```ts title="app/[lang]/llms.txt/route.ts"
67
+ export const { GET, revalidate } = createLlmsRoute({
68
+ sources: [docsSource, cookbookSource],
69
+ });
70
+ ```
71
+
72
+ Use `filterPage` to exclude pages from `/llms.txt`, such as internal or preview-only docs:
73
+
74
+ ```ts title="app/[lang]/llms.txt/route.ts"
75
+ export const { GET, revalidate } = createLlmsRoute({
76
+ source: geistdocsSource,
77
+ filterPage: (page) => !page.url.includes("/internal"),
78
+ });
79
+ ```
80
+
81
+ ## The llms.txt standard
82
+
83
+ The llms.txt standard is a simple convention that makes documentation more accessible to AI tools. It's similar in spirit to `robots.txt` but designed for language models instead of search crawlers.
84
+
85
+ Learn more at [llmstxt.org](https://llmstxt.org/)
@@ -0,0 +1,65 @@
1
+ ---
2
+ title: .md 扩展
3
+ description: 通过在任何 URL 后追加 .md 或 .mdx 来以原始 Markdown 访问文档页面
4
+ type: conceptual
5
+ summary: 通过在 URL 后追加 .md 或 .mdx 以原始 Markdown 格式访问任何文档页面,供 AI 工具使用。
6
+ related:
7
+ - /docs/llms-txt
8
+ - /docs/proxy
9
+ ---
10
+
11
+ Geistdocs 允许 AI 工具和语言模型以纯 Markdown 的形式访问文档页面。在文档 URL 后追加 `.md` 或 `.mdx`,即可获取该页面处理后的 Markdown 内容。
12
+
13
+ ## 工作原理
14
+
15
+ 当你在任何文档 URL 后添加 `.md` 或 `.mdx` 时,你将得到页面内容的纯文本 Markdown,而不是呈现的 HTML。这样可以方便 AI 工具读取并理解你的文档。
16
+
17
+ ### 示例
18
+
19
+ ```
20
+ # Normal page
21
+ https://yourdomain.com/docs/getting-started
22
+
23
+ # Markdown version
24
+ https://yourdomain.com/docs/getting-started.mdx
25
+ ```
26
+
27
+ `.mdx` 版本返回:
28
+
29
+ - 页面标题作为 H1 级标题
30
+ - 完整的处理后 Markdown 内容
31
+ - 无 HTML、样式或导航
32
+
33
+ ## 使用场景
34
+
35
+ 此功能特别适用于:
36
+
37
+ - **AI 聊天工具** - 像 ChatGPT、Claude 和 Cursor 这样的工具可以获取并读取你的文档
38
+ - **LLM 上下文** - 为语言模型提示提供干净的文本
39
+ - **文档分析** - 提取内容以便处理或分析
40
+ - **内容迁移** - 以干净的格式导出文档
41
+
42
+ ## 实现
43
+
44
+ 包内 proxy 会将 `.md` 和 `.mdx` 请求路由到返回 Markdown 的 route handler:
45
+
46
+ ```ts title="proxy.ts"
47
+ const proxy = createProxy({
48
+ config: geistdocsConfig,
49
+ markdownRoutes: [
50
+ { from: "/docs/*path", to: "/[lang]/llms.mdx/*path" },
51
+ ],
52
+ });
53
+ ```
54
+
55
+ 目标 route 使用 `createDocsMarkdownRoute` 处理页面,并以 `text/markdown` 内容类型返回 Markdown。
56
+
57
+ ## 响应格式
58
+
59
+ 响应包含:
60
+
61
+ - Content-Type: `text/markdown`
62
+ - 页面标题作为一级标题
63
+ - 来自 Fumadocs 的处理后 Markdown 内容
64
+
65
+ 所有 MDX 组件都会被处理并转换为等效的纯 Markdown。
@@ -0,0 +1,81 @@
1
+ ---
2
+ title: .md Extension
3
+ description: Access documentation pages as raw Markdown by appending .md or .mdx to any URL
4
+ type: conceptual
5
+ summary: Access any documentation page as raw Markdown by appending .md or .mdx to the URL for AI tool consumption.
6
+ related:
7
+ - /docs/llms-txt
8
+ - /docs/proxy
9
+ ---
10
+
11
+ Geistdocs lets AI tools and language models access documentation pages as plain Markdown. Append `.md` or `.mdx` to a documentation URL to get the processed Markdown content for that page.
12
+
13
+ <CopyPrompt text="Help me test raw Markdown routes in this Geistdocs project. Fetch a docs page with .mdx appended, compare it to the rendered page, and explain how AI tools can use it.">
14
+ Help me test raw Markdown routes in this Geistdocs project. Fetch a docs page with `.mdx` appended, compare it to the rendered page, and explain how AI tools can use it.
15
+ </CopyPrompt>
16
+
17
+ ## How it works
18
+
19
+ When you add `.md` or `.mdx` to a documentation URL, Geistdocs returns the page content as Markdown instead of rendered HTML. AI tools can use that response as focused context for one page.
20
+
21
+ ### Example
22
+
23
+ ```
24
+ # Normal page
25
+ https://yourdomain.com/docs/getting-started
26
+
27
+ # Markdown version
28
+ https://yourdomain.com/docs/getting-started.mdx
29
+ ```
30
+
31
+ The `.mdx` version returns:
32
+
33
+ - The page title as an H1 heading
34
+ - The full processed Markdown content
35
+ - No HTML, styling, or navigation
36
+
37
+ ## Use cases
38
+
39
+ This feature is particularly useful for:
40
+
41
+ - **AI Chat Tools** - Tools like ChatGPT, Claude, and Cursor can fetch and read your docs
42
+ - **LLM Context** - Provides clean text for language model prompts
43
+ - **Documentation Analysis** - Extract content for processing or analysis
44
+ - **Content Migration** - Export documentation in a clean format
45
+
46
+ ## Implementation
47
+
48
+ The package proxy routes `.md` and `.mdx` requests to the package-backed markdown route handler:
49
+
50
+ ```ts title="proxy.ts"
51
+ const proxy = createProxy({
52
+ config: geistdocsConfig,
53
+ markdownRoutes: [
54
+ { from: "/docs/*path", to: "/[lang]/llms.mdx/*path" },
55
+ ],
56
+ });
57
+ ```
58
+
59
+ The destination route uses `createDocsMarkdownRoute` to process the page and return Markdown with a `text/markdown` content type:
60
+
61
+ ```ts title="app/[lang]/llms.mdx/[[...slug]]/route.ts"
62
+ import { createDocsMarkdownRoute } from "@vercel/geistdocs/routes/llms";
63
+ import { geistdocsSource } from "@/lib/geistdocs/source";
64
+
65
+ export const { GET, generateStaticParams, revalidate } =
66
+ createDocsMarkdownRoute({
67
+ source: geistdocsSource,
68
+ });
69
+ ```
70
+
71
+ Read [Proxy and markdown routes](/docs/proxy) to configure additional route families such as `/cookbook` or `/v5/docs`.
72
+
73
+ ## Response Format
74
+
75
+ The response includes:
76
+
77
+ - Content-Type: `text/markdown`
78
+ - The page title as a level 1 heading
79
+ - Processed Markdown content from Fumadocs
80
+
81
+ All MDX components are processed and converted to plain Markdown equivalents.
@@ -0,0 +1,23 @@
1
+ {
2
+ "title": "Geistdocs Documentation",
3
+ "description": "Learn how to use and customize Geistdocs",
4
+ "root": true,
5
+ "pages": [
6
+ "index",
7
+ "getting-started",
8
+ "env",
9
+ "deployment",
10
+ "configuration",
11
+ "---Internals---",
12
+ "syntax",
13
+ "provider",
14
+ "versioned-docs",
15
+ "proxy",
16
+ "---Features---",
17
+ "...",
18
+ "---AI---",
19
+ "open-in-chat",
20
+ "llms-txt",
21
+ "ask-ai"
22
+ ]
23
+ }
@@ -0,0 +1,78 @@
1
+ ---
2
+ title: 在聊天中打开
3
+ description: 允许用户通过一次点击在其偏好的 AI 聊天平台中继续对话
4
+ type: conceptual
5
+ summary: 一键将文档上下文传输到 ChatGPT、Claude、Cursor 和 v0 等 AI 聊天平台。
6
+ related:
7
+ - /docs/ask-ai
8
+ - /docs/env
9
+ ---
10
+
11
+ "The "Open in Chat" feature enables users to seamlessly transfer documentation context to their preferred AI assistant. With a single click, users can open the current page in external AI chat platforms like ChatGPT, Claude, v0, Cursor, and more."
12
+
13
+ ## 如何工作
14
+
15
+ 在每个文档页面的目录侧边栏中,用户会看到一个 **在聊天中打开** 按钮。点击后,会出现一个菜单,列出可将页面在各类 AI 平台中打开的选项:
16
+
17
+ 1. 用户点击 **在聊天中打开**
18
+ 2. 下拉菜单显示可用平台
19
+ 3. 用户选择其偏好的 AI 助手
20
+ 4. 平台以预填充的提示打开,提示包含页面 URL 和上下文
21
+
22
+ 该提示会自动包含:
23
+
24
+ ```
25
+ Read this page, I want to ask questions about it. [URL]
26
+ ```
27
+
28
+ 这允许 AI 助手在回答用户问题之前获取并理解页面内容。
29
+
30
+ ## 支持的平台
31
+
32
+ 该功能与多个流行的 AI 平台集成:
33
+
34
+ ### 代码与开发工具
35
+
36
+ - **[Cursor](https://cursor.sh/)** - AI 驱动的代码编辑器
37
+ - **[v0](https://v0.dev/)** - Vercel 的 AI 界面设计工具
38
+
39
+ ### 通用 AI 助手
40
+
41
+ - **[ChatGPT](https://chat.openai.com/)** - OpenAI 的对话式 AI
42
+ - **[Claude](https://claude.ai/)** - Anthropic 的 AI 助手
43
+ - **[T3](https://t3.gg/)** - T3 Stack 的 AI 助手
44
+ - **[Scira](https://scira.app/)** - AI 驱动的文档助手
45
+
46
+ ## 配置
47
+
48
+ 必须设置环境变量 `NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL`,有关详细信息,请参阅 [环境变量](/docs/env) 一节。
49
+
50
+ ## 用户体验
51
+
52
+ ### 桌面体验
53
+
54
+ **在聊天中打开** 按钮出现在目录侧边栏中,带有外部链接图标。点击该按钮会显示包含所有可用平台的下拉菜单。
55
+
56
+ ### 平台特定行为
57
+
58
+ 每个平台有其各自的集成方式:
59
+
60
+ - **基于浏览器的平台**(ChatGPT、Claude、v0):在新浏览器标签页中打开,并预填充提示
61
+ - **桌面应用**(Cursor):使用自定义 URL 方案打开以启动该应用
62
+ - **专业工具**(T3、Scira):使用平台特定的参数和上下文打开
63
+
64
+ ## 优势
65
+
66
+ ### 对于用户
67
+
68
+ 1. **无缝工作流程** - 无需手动复制 URL 或切换上下文
69
+ 2. **一致的体验** - 无论偏好的 AI 平台如何,都有相同的起点
70
+ 3. **节省时间** - 通过适当的上下文即时获取 AI 助手的帮助
71
+ 4. **工具选择自由** - 使用他们最熟悉的 AI 平台
72
+
73
+ ### 对于文档作者
74
+
75
+ 1. **增强支持** - 用户可以获得超出文档内容的帮助
76
+ 2. **减轻支持负担** - AI 助手可以处理常见问题
77
+ 3. **更好的用户参与度** - 用户可以更深入地探索主题
78
+ 4. **平台灵活性** - 支持用户多样的 AI 偏好