fix doc link

This commit is contained in:
musistudio
2026-01-04 14:31:16 +08:00
parent 8d97fcbd64
commit 16ff14b9b3
2 changed files with 12 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ function HomepageHeader() {
> >
<Link <Link
className="px-6 sm:px-8 py-3 sm:py-4 bg-primary text-white hover:text-white rounded-lg text-base sm:text-lg font-semibold transition-all duration-300 shadow-lg hover:shadow-xl hover:scale-105" className="px-6 sm:px-8 py-3 sm:py-4 bg-primary text-white hover:text-white rounded-lg text-base sm:text-lg font-semibold transition-all duration-300 shadow-lg hover:shadow-xl hover:scale-105"
to={currentLocale === 'zh-CN' ? '/zh-CN/docs/intro' : '/docs/intro'} to={currentLocale === 'zh-CN' ? '/zh-CN/docs/cli/quick-start' : '/docs/cli/quick-start'}
> >
{t.getStarted} {t.getStarted}
</Link> </Link>
@@ -605,7 +605,7 @@ function CTASection() {
<div className="flex flex-col sm:flex-row gap-4 justify-center mb-8 sm:mb-12"> <div className="flex flex-col sm:flex-row gap-4 justify-center mb-8 sm:mb-12">
<Link <Link
className="group px-8 sm:px-10 py-4 sm:py-5 bg-white text-primary hover:bg-gray-50 rounded-xl text-base sm:text-lg font-bold transition-all duration-300 shadow-2xl hover:shadow-white/20 hover:scale-105 flex items-center justify-center gap-2" className="group px-8 sm:px-10 py-4 sm:py-5 bg-white text-primary hover:bg-gray-50 rounded-xl text-base sm:text-lg font-bold transition-all duration-300 shadow-2xl hover:shadow-white/20 hover:scale-105 flex items-center justify-center gap-2"
to={currentLocale === 'zh-CN' ? '/zh-CN/docs/intro' : '/docs/intro'} to={currentLocale === 'zh-CN' ? '/zh-CN/docs/cli/quick-start' : '/docs/cli/quick-start'}
> >
{t.getStarted} {t.getStarted}
<svg className="w-5 h-5 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg className="w-5 h-5 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -614,7 +614,7 @@ function CTASection() {
</Link> </Link>
<Link <Link
className="px-8 sm:px-10 py-4 sm:py-5 bg-white/10 backdrop-blur-sm text-white border-2 border-white/30 hover:bg-primary hover:border-primary hover:text-white rounded-xl text-base sm:text-lg font-bold transition-all duration-300 hover:scale-105 flex items-center justify-center gap-2" className="px-8 sm:px-10 py-4 sm:py-5 bg-white/10 backdrop-blur-sm text-white border-2 border-white/30 hover:bg-primary hover:border-primary hover:text-white rounded-xl text-base sm:text-lg font-bold transition-all duration-300 hover:scale-105 flex items-center justify-center gap-2"
to={currentLocale === 'zh-CN' ? '/zh-CN/docs' : '/docs'} to={currentLocale === 'zh-CN' ? '/zh-CN/docs/category/cli' : '/docs/category/cli'}
> >
{t.docs} {t.docs}
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -639,15 +639,17 @@ function CTASection() {
<div className="hidden sm:block w-px h-4 bg-white/30"></div> <div className="hidden sm:block w-px h-4 bg-white/30"></div>
<Link <a
to={currentLocale === 'zh-CN' ? '/zh-CN/docs' : '/docs'} href="https://github.com/musistudio/claude-code-router/discussions"
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 hover:text-white transition-colors group" className="flex items-center gap-2 hover:text-white transition-colors group"
> >
<svg className="w-5 h-5 group-hover:scale-110 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg className="w-5 h-5 group-hover:scale-110 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" /> <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" />
</svg> </svg>
<span className="text-sm font-medium">{t.community}</span> <span className="text-sm font-medium">{t.community}</span>
</Link> </a>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -3,9 +3,9 @@
"version": "2.0.0", "version": "2.0.0",
"description": "Use Claude Code without an Anthropics account and route it to another LLM provider", "description": "Use Claude Code without an Anthropics account and route it to another LLM provider",
"scripts": { "scripts": {
"build": "node scripts/build.js", "build": "pnpm build:shared && pnpm build:core && pnpm build:server && pnpm build:cli && pnpm build:ui",
"build:core": "node scripts/build-core.js", "build:core": "pnpm --filter @musistudio/llms build",
"build:shared": "node scripts/build-shared.js", "build:shared": "pnpm --filter @CCR/shared build",
"build:cli": "pnpm --filter @CCR/cli build", "build:cli": "pnpm --filter @CCR/cli build",
"build:server": "pnpm --filter @CCR/server build", "build:server": "pnpm --filter @CCR/server build",
"build:ui": "pnpm --filter @CCR/ui build", "build:ui": "pnpm --filter @CCR/ui build",
@@ -16,6 +16,7 @@
"dev:cli": "pnpm --filter @CCR/cli dev", "dev:cli": "pnpm --filter @CCR/cli dev",
"dev:server": "pnpm --filter @CCR/server dev", "dev:server": "pnpm --filter @CCR/server dev",
"dev:ui": "pnpm --filter @CCR/ui dev", "dev:ui": "pnpm --filter @CCR/ui dev",
"dev:core": "pnpm --filter @musistudio/llms dev",
"dev:docs": "pnpm --filter claude-code-router-docs start", "dev:docs": "pnpm --filter claude-code-router-docs start",
"serve:docs": "pnpm --filter claude-code-router-docs serve" "serve:docs": "pnpm --filter claude-code-router-docs serve"
}, },