mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
Feat : Gitbook
This commit is contained in:
@@ -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" }
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -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];
|
||||
}
|
||||
Reference in New Issue
Block a user