Files
cwd/docs/.vitepress/config.mjs
anghunk 2456adcfbb docs: 重构文档配置并添加邮箱提醒功能文档
- 将导航栏和侧边栏配置拆分为单独模块
- 添加邮箱提醒功能文档
- 优化文档配置结构,添加编辑链接和最后更新时间显示
- 从管理后台文档中移除邮箱配置内容,保持功能文档独立
2026-01-20 21:45:49 +08:00

39 lines
894 B
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-comments/blob/main/icon.png?raw=true',
},
],
],
themeConfig: {
nav,
sidebar,
outline: {
level: 'deep',
label: 'On this page',
},
editLink: {
pattern: 'https://github.com/anghunk/cwd-comments/blob/main/docs/:path',
text: '在 GitHub 上编辑此页面',
},
socialLinks: [{ icon: 'github', link: 'https://github.com/anghunk/cwd-comments' }],
lastUpdated: true,
lastUpdatedText: '最后更新于',
footer: {
message: '基于 Cloudflare Workers 构建',
copyright: 'Copyright © 2026',
},
},
});