docs: 更新文档内容及结构调整

- 修复文档中的格式问题和错误
- 新增功能文档:数据迁移和管理后台
- 调整文档目录结构,将管理后台移至功能分类
- 更新API文档中的字段说明和响应示例
- 优化后端配置文档,移除冗余内容
This commit is contained in:
anghunk
2026-01-20 15:32:51 +08:00
parent 9d3d4f79a9
commit 4a4349e0b9
10 changed files with 216 additions and 299 deletions

View File

@@ -1,49 +1,56 @@
import { defineConfig } from 'vitepress'
import { defineConfig } from 'vitepress';
export default defineConfig({
title: 'CWD 评论系统文档',
description: '基于 Cloudflare Workers 的轻量级评论系统',
lang: 'zh-CN',
head: [
['link', {
rel: 'icon',
href: 'https://github.com/anghunk/cwd-comments/blob/main/icon.png?raw=true'
}]
],
themeConfig: {
nav: [
{ text: '首页', link: '/' },
{ text: '配置', link: '/guide/getting-started' },
{ text: 'API', link: '/api/overview' }
],
title: 'CWD 评论系统文档',
description: '基于 Cloudflare Workers 的轻量级评论系统',
lang: 'zh-CN',
head: [
[
'link',
{
rel: 'icon',
href: 'https://github.com/anghunk/cwd-comments/blob/main/icon.png?raw=true',
},
],
],
themeConfig: {
nav: [
{ text: '首页', link: '/' },
{ text: '配置', link: '/guide/getting-started' },
{ text: 'API', link: '/api/overview' },
],
sidebar: [
{
text: '配置',
items: [
{ text: '快速开始', link: '/guide/getting-started' },
{ text: '后端配置', link: '/guide/backend-config' },
{ text: '前端配置', link: '/guide/frontend-config' },
{ text: '管理后台', link: '/guide/admin-panel' },
]
},
{
text: 'API 文档',
items: [
{ text: '概览', link: '/api/overview' },
{ text: '公开 API', link: '/api/public' },
{ text: '管理员 API', link: '/api/admin' }
]
}
],
sidebar: [
{
text: '配置',
items: [
{ text: '快速开始', link: '/guide/getting-started' },
{ text: '后端配置', link: '/guide/backend-config' },
{ text: '前端配置', link: '/guide/frontend-config' },
],
},
{
text: '功能',
items: [
{ text: '管理后台', link: '/function/admin-panel' },
{ text: '数据迁移', link: '/function/data-migration' },
],
},
{
text: 'API 文档',
items: [
{ text: '概览', link: '/api/overview' },
{ text: '公开 API', link: '/api/public' },
{ text: '管理员 API', link: '/api/admin' },
],
},
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/anghunk/cwd-comments' }
],
socialLinks: [{ icon: 'github', link: 'https://github.com/anghunk/cwd-comments' }],
footer: {
message: '基于 Cloudflare Workers 构建',
copyright: 'Copyright © 2026'
}
}
})
footer: {
message: '基于 Cloudflare Workers 构建',
copyright: 'Copyright © 2026',
},
},
});