Files
cwd/docs/.vitepress/config.mjs
anghunk 6c1651b4e9 feat(admin): 优化表格展示并限制访问页面数据数量
docs: 更新项目描述为更详细的介绍
refactor(api): 限制访问页面接口返回数量为20条
style(admin): 为表格添加响应式布局和滚动支持
2026-01-22 09:29:58 +08:00

62 lines
1.3 KiB
JavaScript

import nav from './configs/nav';
import sidebar from './configs/sidebar';
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/blob/main/icon.png?raw=true',
},
],
],
themeConfig: {
nav,
sidebar,
outline: {
level: [2, 3],
label: 'On this page',
},
editLink: {
pattern: 'https://github.com/anghunk/cwd/blob/main/docs/:path',
text: '在 GitHub 上编辑此页面',
},
socialLinks: [{ icon: 'github', link: 'https://github.com/anghunk/cwd' }],
lastUpdated: true,
lastUpdatedText: '最后更新于',
footer: {
message: '基于 Cloudflare Workers 构建',
copyright: 'Copyright © 2026',
},
search: {
provider: 'local',
options: {
locales: {
zh: {
translations: {
button: {
buttonText: '搜索文档',
buttonAriaLabel: '搜索文档',
},
modal: {
noResultsText: '无法找到相关结果',
resetButtonTitle: '清除查询条件',
footer: {
selectText: '选择',
navigateText: '切换',
},
},
},
},
},
},
},
},
});