export type DocsNavItem = { href: string; label: string; children?: DocsNavItem[]; }; /** 与 content/_meta.js 保持同步的文档侧栏 */ export const docsNav: DocsNavItem[] = [ { href: "/docs", label: "文档中心" }, { href: "/docs/getting-started", label: "快速开始" }, { href: "/docs/integrations/overview", label: "工具接入", children: [ { href: "/docs/integrations/overview", label: "接入概览" }, { href: "/docs/integrations/cursor", label: "Cursor" }, { href: "/docs/integrations/claude_code", label: "Claude Code" }, { href: "/docs/integrations/continue", label: "Continue" }, { href: "/docs/integrations/cline", label: "Cline" }, ], }, { href: "/docs/guides/http_api", label: "开发指南", children: [ { href: "/docs/guides/http_api", label: "HTTP API" }, { href: "/docs/guides/openai_compatible", label: "OpenAI 兼容 SDK" }, { href: "/docs/guides/streaming", label: "流式调用" }, { href: "/docs/guides/console", label: "控制台" }, { href: "/docs/guides/api_keys", label: "API Key" }, { href: "/docs/guides/billing", label: "计费与财务" }, ], }, { href: "/docs/concepts/overview", label: "核心概念", children: [{ href: "/docs/concepts/overview", label: "核心概念" }], }, { href: "/docs/faq", label: "常见问题" }, { href: "/docs/legal/user-agreement", label: "法律条款", children: [ { href: "/docs/legal/user-agreement", label: "用户协议" }, { href: "/docs/legal/privacy", label: "隐私政策" }, ], }, ];