feat: 首页添加 API 端点一览卡片,修复模板转义错误
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 44s
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 44s
- 在首页 hero 下方添加 GPT/Claude/Gemini 三个 API 端点卡片 - 使用 String.raw 修复 PowerShell 命令中 \xc 无效转义序列 - 开发服务器端口改为 9527
This commit is contained in:
@@ -1,61 +1,62 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
import { defineConfig } from "vitepress";
|
||||
|
||||
export default defineConfig({
|
||||
title: 'XCodeCLI',
|
||||
description: '一键配置 Claude Code / Gemini CLI / Codex',
|
||||
lang: 'zh-CN',
|
||||
title: "XCodeCLI",
|
||||
description: "一键配置 Claude Code / Gemini CLI / Codex",
|
||||
lang: "zh-CN",
|
||||
|
||||
head: [
|
||||
['link', { rel: 'icon', href: '/favicon.ico' }]
|
||||
],
|
||||
head: [["link", { rel: "icon", href: "/favicon.ico" }]],
|
||||
|
||||
themeConfig: {
|
||||
logo: '/logo.svg',
|
||||
logo: "/logo.svg",
|
||||
|
||||
nav: [
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '快速开始', link: '/guide/' },
|
||||
{ text: "首页", link: "/" },
|
||||
{ text: "快速开始", link: "/guide/" },
|
||||
// { text: 'API 状态', link: '/status' }
|
||||
],
|
||||
|
||||
sidebar: [
|
||||
{
|
||||
text: '快速开始',
|
||||
text: "快速开始",
|
||||
items: [
|
||||
{ text: '介绍', link: '/guide/' },
|
||||
{ text: 'Claude Code', link: '/guide/claude-code' },
|
||||
{ text: 'Gemini CLI', link: '/guide/gemini-cli' },
|
||||
{ text: 'Codex', link: '/guide/codex' }
|
||||
]
|
||||
{ text: "介绍", link: "/guide/" },
|
||||
{ text: "Claude Code", link: "/guide/claude-code" },
|
||||
{ text: "Gemini CLI", link: "/guide/gemini-cli" },
|
||||
{ text: "Codex", link: "/guide/codex" },
|
||||
],
|
||||
},
|
||||
{
|
||||
text: '参考',
|
||||
text: "参考",
|
||||
items: [
|
||||
{ text: 'Cherry Studio 配置', link: '/cherry-studio-nanobana' }
|
||||
]
|
||||
}
|
||||
{ text: "Cherry Studio 配置", link: "/cherry-studio-nanobana" },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://gitea.sususu.cf/sususu/xcodecli-shells' }
|
||||
{
|
||||
icon: "github",
|
||||
link: "https://gitea.sususu.cf/sususu/xcodecli-shells",
|
||||
},
|
||||
],
|
||||
|
||||
footer: {
|
||||
message: 'XCodeCLI API Router',
|
||||
copyright: '© 2025'
|
||||
message: "XCodeCLI API Router",
|
||||
copyright: "© 2026",
|
||||
},
|
||||
|
||||
search: {
|
||||
provider: 'local'
|
||||
provider: "local",
|
||||
},
|
||||
|
||||
outline: {
|
||||
label: '目录'
|
||||
label: "目录",
|
||||
},
|
||||
|
||||
docFooter: {
|
||||
prev: '上一页',
|
||||
next: '下一页'
|
||||
}
|
||||
}
|
||||
})
|
||||
prev: "上一页",
|
||||
next: "下一页",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user