@model-go/docs-core 0.1.0

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 (68) hide show
  1. package/README.md +77 -0
  2. package/assets/images/agents/cc-switch/claude-add.webp +0 -0
  3. package/assets/images/agents/cc-switch/config-cn.webp +0 -0
  4. package/assets/images/agents/cc-switch/config-global.webp +0 -0
  5. package/assets/images/agents/cc-switch/overview.webp +0 -0
  6. package/assets/images/agents/cc-switch/provider-cn.webp +0 -0
  7. package/assets/images/agents/cc-switch/provider-global.webp +0 -0
  8. package/assets/images/agents/cc-switch/use-cn.webp +0 -0
  9. package/assets/images/agents/cc-switch/use-global.webp +0 -0
  10. package/assets/images/agents/cherry-studio/add-provider.webp +0 -0
  11. package/assets/images/agents/cherry-studio/custom-provider-global.webp +0 -0
  12. package/assets/images/agents/cherry-studio/custom-provider.webp +0 -0
  13. package/assets/images/agents/cherry-studio/fetch-models-global.webp +0 -0
  14. package/assets/images/agents/cherry-studio/fetch-models.webp +0 -0
  15. package/assets/images/agents/cherry-studio/model-list-global.webp +0 -0
  16. package/assets/images/agents/cherry-studio/model-list.webp +0 -0
  17. package/assets/images/agents/cherry-studio/model-picker.webp +0 -0
  18. package/assets/images/agents/cline/cline-chat.webp +0 -0
  19. package/assets/images/agents/cline/cline-config-cn.webp +0 -0
  20. package/assets/images/agents/cline/cline-config-global.webp +0 -0
  21. package/assets/images/agents/cline/cline-market.webp +0 -0
  22. package/assets/images/agents/codex/codex-chat.webp +0 -0
  23. package/assets/images/agents/codex/codex-skip.webp +0 -0
  24. package/assets/images/agents/codex/codex-start.webp +0 -0
  25. package/assets/images/agents/cursor/add-model.webp +0 -0
  26. package/assets/images/agents/cursor/chat.webp +0 -0
  27. package/assets/images/agents/cursor/config-cn.webp +0 -0
  28. package/assets/images/agents/cursor/config-global.webp +0 -0
  29. package/assets/images/agents/cursor/install.webp +0 -0
  30. package/assets/images/agents/cursor/model-list.webp +0 -0
  31. package/assets/images/agents/cursor/settings.webp +0 -0
  32. package/assets/images/agents/deepseek-harness/install.webp +0 -0
  33. package/assets/images/agents/deepseek-harness/model-picker.webp +0 -0
  34. package/assets/images/agents/deepseek-harness/provider-config.webp +0 -0
  35. package/assets/images/agents/deepseek-harness/session.webp +0 -0
  36. package/assets/images/agents/deepseek-harness/settings.webp +0 -0
  37. package/assets/images/agents/kilo-code/jetbrains-byok.webp +0 -0
  38. package/assets/images/agents/kilo-code/jetbrains-config-cn.webp +0 -0
  39. package/assets/images/agents/kilo-code/jetbrains-config-global.webp +0 -0
  40. package/assets/images/agents/kilo-code/jetbrains-market.webp +0 -0
  41. package/assets/images/agents/kilo-code/jetbrains-panel.webp +0 -0
  42. package/assets/images/agents/kilo-code/jetbrains-start.webp +0 -0
  43. package/assets/images/agents/kilo-code/vscode-byok.webp +0 -0
  44. package/assets/images/agents/kilo-code/vscode-config-cn.webp +0 -0
  45. package/assets/images/agents/kilo-code/vscode-config-global.webp +0 -0
  46. package/assets/images/agents/kilo-code/vscode-market.webp +0 -0
  47. package/assets/images/agents/kilo-code/vscode-panel.webp +0 -0
  48. package/assets/images/agents/kilo-code/vscode-start.webp +0 -0
  49. package/assets/images/agents/opencode/chat.webp +0 -0
  50. package/assets/images/agents/opencode/model-search.webp +0 -0
  51. package/assets/images/agents/opencode/provider-filter.webp +0 -0
  52. package/assets/images/agents/opencode/provider-name.webp +0 -0
  53. package/assets/images/agents/zcode/chat.webp +0 -0
  54. package/assets/images/agents/zcode/install.webp +0 -0
  55. package/assets/images/agents/zcode/provider-fields.webp +0 -0
  56. package/assets/images/agents/zcode/provider-saved-global.webp +0 -0
  57. package/assets/images/agents/zcode/provider-saved.webp +0 -0
  58. package/assets/images/agents/zcode/setup.webp +0 -0
  59. package/dist/code-highlight.d.ts +1 -0
  60. package/dist/code-highlight.js +50 -0
  61. package/dist/content.generated.d.ts +2 -0
  62. package/dist/content.generated.js +4 -0
  63. package/dist/index.d.ts +67 -0
  64. package/dist/index.js +625 -0
  65. package/package.json +39 -0
  66. package/styles/docs-content.css +928 -0
  67. package/styles/docs-responsive.css +113 -0
  68. package/styles/docs-tokens.css +52 -0
@@ -0,0 +1,67 @@
1
+ export type DocsLang = 'zh' | 'en';
2
+ export type DocsSiteProfile = 'cn' | 'global';
3
+ export interface DocsNavPage {
4
+ id: string;
5
+ title: string;
6
+ slug: string;
7
+ description?: string;
8
+ }
9
+ export interface DocsNavSection {
10
+ id: string;
11
+ title: string | null;
12
+ pages: DocsNavPage[];
13
+ children?: DocsNavSection[];
14
+ }
15
+ export interface DocsNavResult {
16
+ title: string;
17
+ description: string;
18
+ sections: DocsNavSection[];
19
+ }
20
+ export interface DocsTocItem {
21
+ id: string;
22
+ title: string;
23
+ level: number;
24
+ }
25
+ export interface DocsPage {
26
+ slug: string;
27
+ title: string;
28
+ html: string;
29
+ markdown: string;
30
+ toc: DocsTocItem[];
31
+ }
32
+ /**
33
+ * 站点的模型调用网关地址(正文里的 `{{ api_endpoint }}` 用的同一个值)。
34
+ *
35
+ * 首页 hero 的「Base URL」卡片过去写死成 `/api/v1`——相对路径对用户毫无意义(他们要的是
36
+ * 能直接粘进 SDK 的完整地址),而且国内/国际两站显示同一个值。这里导出真源给它复用,
37
+ * 避免再各写一份(需求方 shared/modelgo_prd#376「文档内也需要更新」)。
38
+ */
39
+ export declare function siteApiEndpoint(profile: DocsSiteProfile): string;
40
+ export declare function getDocsNav(lang: DocsLang, profile: DocsSiteProfile): Promise<DocsNavResult>;
41
+ export interface DocsRenderOptions {
42
+ /** 站内文档链接前缀,默认 ''(文档站自身根)。 */
43
+ linkBase?: string;
44
+ /** 站内图片前缀,默认 ''。 */
45
+ assetBase?: string;
46
+ }
47
+ export declare function getDocsPage(slug: string, lang: DocsLang, profile: DocsSiteProfile, render?: DocsRenderOptions): Promise<DocsPage>;
48
+ export interface DocsSearchResult {
49
+ slug: string;
50
+ title: string;
51
+ excerpt: string;
52
+ }
53
+ export declare function searchDocs(query: string, lang: DocsLang, profile: DocsSiteProfile, limit?: number): DocsSearchResult[];
54
+ /**
55
+ * 某站点 + 语言下的全部文档 slug(相对 <profile>/<lang>/ 的文件路径,无扩展名)。
56
+ * 官网构建期用它生成静态路由(getStaticPaths)。
57
+ */
58
+ export declare function getDocSlugs(lang: DocsLang, profile: DocsSiteProfile): string[];
59
+ /**
60
+ * 更新日志(仓库根 changelog.md):不分市场/语言,只有一份。
61
+ * 它原来走 VitePress 自己的页面渲染(客户端再渲染),并入官网后同样要吃服务端 HTML。
62
+ */
63
+ export declare function getChangelog(profile: DocsSiteProfile, render?: DocsRenderOptions): {
64
+ title: string;
65
+ html: string;
66
+ toc: DocsTocItem[];
67
+ };