Feat : Gitbook

This commit is contained in:
decolua
2026-05-11 11:50:24 +07:00
parent 7ad538bcf2
commit fd92af77a0
124 changed files with 34154 additions and 4 deletions
+60
View File
@@ -0,0 +1,60 @@
export const DOCS_CONFIG = {
title: "9Router Documentation",
description: "Smart AI model router - Maximize subscriptions, minimize costs",
logo: "9Router",
appUrl: "https://9router.com",
githubUrl: "https://github.com/decolua/9router",
navigation: [
{
title: "Getting Started",
items: [
{ title: "Introduction", slug: "" },
{ title: "Quick Start", slug: "getting-started/quick-start" },
{ title: "Installation", slug: "getting-started/installation" }
]
},
{
title: "Providers",
items: [
{ title: "Subscription (Maximize)", slug: "providers/subscription" },
{ title: "Cheap (Backup)", slug: "providers/cheap" },
{ title: "Free (Fallback)", slug: "providers/free" }
]
},
{
title: "Features",
items: [
{ title: "Smart Routing", slug: "features/smart-routing" },
{ title: "Combos & Fallback", slug: "features/combos" },
{ title: "Quota Tracking", slug: "features/quota-tracking" }
]
},
{
title: "Integration",
items: [
{ title: "Claude Code", slug: "integration/claude-code" },
{ title: "OpenAI Codex", slug: "integration/codex" },
{ title: "Cursor", slug: "integration/cursor" },
{ title: "Cline", slug: "integration/cline" },
{ title: "Roo", slug: "integration/roo" },
{ title: "Continue", slug: "integration/continue" },
{ title: "Other Tools", slug: "integration/other-tools" }
]
},
{
title: "Deployment",
items: [
{ title: "Localhost", slug: "deployment/localhost" },
{ title: "Cloud (VPS/Docker)", slug: "deployment/cloud" }
]
},
{
title: "Help",
items: [
{ title: "Troubleshooting", slug: "troubleshooting" },
{ title: "FAQ", slug: "faq" }
]
}
]
};
+19
View File
@@ -0,0 +1,19 @@
export const DEFAULT_LANG = "en";
export const LANGUAGES = [
{ code: "en", name: "English", native: "English", flag: "🇺🇸" },
{ code: "vi", name: "Vietnamese", native: "Tiếng Việt", flag: "🇻🇳" },
{ code: "zh-CN", name: "Chinese (Simplified)", native: "简体中文", flag: "🇨🇳" },
{ code: "es", name: "Spanish", native: "Español", flag: "🇪🇸" },
{ code: "ja", name: "Japanese", native: "日本語", flag: "🇯🇵" }
];
export const LANG_CODES = LANGUAGES.map(l => l.code);
export function isValidLang(code) {
return LANG_CODES.includes(code);
}
export function getLanguage(code) {
return LANGUAGES.find(l => l.code === code) || LANGUAGES[0];
}