Files
WebAI2API/.vitepress/config.js
T
2025-12-20 20:39:10 +08:00

78 lines
1.9 KiB
JavaScript

import { defineConfig } from 'vitepress'
export default defineConfig({
srcDir: "docs",
outDir: "dist",
base: '/WebAI2API/',
lang: 'zh-CN',
title: "WebAI2API",
description: "网页版 AI 服务转 OpenAI 兼容 API",
head: [
['link', { rel: 'icon', href: '/favicon.png' }]
],
ignoreDeadLinks: [
/^http:\/\/localhost/
],
themeConfig: {
nav: [
{ text: '首页', link: '/' },
{ text: '入门指南', link: '/guide/requirements' },
{ text: 'API 参考', link: '/api/overview' }
],
sidebar: [
{
text: '入门指南',
items: [
{ text: '项目介绍', link: '/guide/introduction' },
{ text: '环境要求', link: '/guide/requirements' },
{ text: '快速部署', link: '/guide/deployment' },
{ text: '首次使用', link: '/guide/first-use' }
]
},
{
text: '配置说明',
items: [
{ text: '配置概览', link: '/config/overview' },
{ text: '实例配置', link: '/config/instances' },
{ text: '代理设置', link: '/config/proxy' }
]
},
{
text: 'API 参考',
items: [
{ text: '接口概览', link: '/api/overview' },
{ text: 'Chat Completions', link: '/api/chat' },
{ text: 'Models', link: '/api/models' },
{ text: 'Cookies', link: '/api/cookies' }
]
},
{
text: '运维管理',
items: [
{ text: 'Web 管理界面', link: '/admin/webui' },
{ text: 'Linux 部署', link: '/admin/linux' },
{ text: '故障排查', link: '/admin/troubleshooting' }
]
}
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/foxhui/WebAI2API' }
],
outline: {
label: '页面导航'
},
docFooter: {
prev: '上一页',
next: '下一页'
}
}
})