100 lines
2.6 KiB
TypeScript
100 lines
2.6 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
|
|
|
export default defineConfig({
|
|
title: "Message Nest",
|
|
description: "灵活而强大的消息推送整合平台",
|
|
lang: 'zh-CN',
|
|
|
|
// 如果部署到 GitHub Pages 的子路径,需要设置 base
|
|
// 例如:https://engigu.github.io/Message-Push-Nest/
|
|
// base: '/Message-Push-Nest/',
|
|
|
|
// 如果使用自定义域名或部署到根路径,注释掉 base 或设置为 '/'
|
|
base: '/Message-Push-Nest/',
|
|
|
|
// 网站图标
|
|
head: [
|
|
['link', { rel: 'icon', href: '/Message-Push-Nest/logo.svg' }]
|
|
],
|
|
|
|
themeConfig: {
|
|
logo: '/logo.svg',
|
|
|
|
nav: [
|
|
{ text: '首页', link: '/' },
|
|
{ text: '指南', link: '/guide/introduction' },
|
|
{ text: '部署', link: '/deployment/overview' },
|
|
{ text: 'API', link: '/api/v1' },
|
|
{ text: '演示站点', link: 'https://message-nest-demo-site.qwapi.eu.org/' }
|
|
],
|
|
|
|
sidebar: {
|
|
'/guide/': [
|
|
{ text: '介绍', link: '/guide/introduction' },
|
|
{ text: '特色功能', link: '/guide/features' },
|
|
{ text: '消息模板', link: '/guide/template' },
|
|
{ text: '更新日志', link: '/guide/changelog' }
|
|
],
|
|
'/deployment/': [
|
|
{
|
|
text: '部署方式',
|
|
items: [
|
|
{ text: '部署概览', link: '/deployment/overview' },
|
|
{ text: '直接运行', link: '/deployment/direct-run' },
|
|
{ text: '开发调试', link: '/deployment/development' },
|
|
{ text: 'Docker部署', link: '/deployment/docker' },
|
|
{ text: 'Docker Compose', link: '/deployment/docker-compose' }
|
|
]
|
|
},
|
|
{
|
|
text: '配置',
|
|
items: [
|
|
{ text: '配置说明', link: '/deployment/configuration' },
|
|
{ text: 'EmbedHtml说明', link: '/deployment/embed-html' }
|
|
]
|
|
}
|
|
],
|
|
'/api/': [
|
|
{
|
|
text: 'API文档',
|
|
items: [
|
|
{ text: 'V1 API(任务)', link: '/api/v1' },
|
|
{ text: 'V2 API(模板)', link: '/api/v2' }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
socialLinks: [
|
|
{ icon: 'github', link: 'https://github.com/engigu/Message-Push-Nest' }
|
|
],
|
|
|
|
footer: {
|
|
message: 'Released under the MIT License.',
|
|
copyright: 'Copyright © 2024-present Message-Push-Nest'
|
|
},
|
|
|
|
search: {
|
|
provider: 'local'
|
|
},
|
|
|
|
outline: {
|
|
level: [2, 3],
|
|
label: '目录'
|
|
},
|
|
|
|
docFooter: {
|
|
prev: '上一页',
|
|
next: '下一页'
|
|
},
|
|
|
|
lastUpdated: {
|
|
text: '最后更新于',
|
|
formatOptions: {
|
|
dateStyle: 'short',
|
|
timeStyle: 'short'
|
|
}
|
|
}
|
|
}
|
|
})
|