ForcePilot/docs/.vitepress/config.mts
Wenjie Zhang 74229c05a4 feat: 添加API密钥管理功能,可通过 API_KEY 代替 Token 访问接口
- 引入了用于API密钥管理的新路由,包含列出、创建、更新、删除和重新生成API密钥的端点。
- 在后端实现了API密钥生成逻辑和验证。
- 增强了认证中间件以支持API密钥认证以及JWT认证。
- 创建了用于在前端管理API密钥的新Vue组件,包括用于创建、显示和删除密钥的用户界面。
2026-03-24 11:09:55 +08:00

104 lines
3.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vitepress'
import markdownItTaskCheckbox from 'markdown-it-task-checkbox'
// https://vitepress.dev/reference/site-config
export default defineConfig({
lang: 'zh-CN',
title: "Yuxi",
description: "语析",
base: '/Yuxi-Know/',
ignoreDeadLinks: [
/localhost/
],
markdown: {
config: (md) => {
md.use(markdownItTaskCheckbox)
}
},
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: "/favicon.svg",
nav: [
{ text: '快速开始', link: '/intro/quick-start' },
{ text: '智能体开发', link: '/agents/agents-config' }
],
sidebar: [
{
text: '简介',
items: [
{ text: '什么是 Yuxi', link: '/intro/project-overview' },
{ text: '快速开始', link: '/intro/quick-start' },
{ text: '模型配置', link: '/intro/model-config' },
{ text: '知识库与知识图谱', link: '/intro/knowledge-base' },
{ text: '知识库评估', link: '/intro/evaluation' }
]
},
{
text: '智能体开发',
items: [
{ text: '智能体配置', link: '/agents/agents-config' },
{ text: '上下文配置', link: '/agents/context-config' },
{ text: '工具系统', link: '/agents/tools-system' },
{ text: '中间件', link: '/agents/middleware' },
{ text: 'MCP 集成', link: '/agents/mcp-integration' },
{ text: 'Skills 管理', link: '/agents/skills-management' },
{ text: 'SubAgents 管理', link: '/agents/subagents-management' }
]
},
{
text: '高级配置',
items: [
{ text: '配置系统详解', link: '/advanced/configuration' },
{ text: '文档解析', link: '/advanced/document-processing' },
{ text: '品牌自定义', link: '/advanced/branding' },
{ text: '其他配置', link: '/advanced/misc' },
{ text: '生产部署', link: '/advanced/deployment' },
{ text: 'API Key 外部集成', link: '/advanced/api-key-integration' }
]
},
{
text: '更新日志',
items: [
{ text: '路线图', link: '/changelog/roadmap' },
{ text: '参与贡献', link: '/changelog/contributing' },
{ text: '常见问题', link: '/changelog/faq' },
{ text: '迁移至 v0.5', link: '/changelog/migrate_to_v0-5' }
]
}
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/xerrors/Yuxi-Know' }
],
footer: {
message: '本项目基于 MIT License 开源,欢迎使用和贡献。',
copyright: 'Copyright © 2025-present Yuxi'
},
editLink: {
pattern: 'https://github.com/xerrors/Yuxi-Know/edit/main/docs/:path',
text: '在 GitHub 上编辑此页'
},
lastUpdated: {
text: '最后更新时间',
formatOptions: {
dateStyle: 'full',
timeStyle: 'medium'
}
},
search: {
provider: 'local'
},
docFooter: {
prev: '上一页',
next: '下一页'
}
},
})