Files
CeruMusic/docs/.vitepress/config.mts

82 lines
2.4 KiB
TypeScript
Raw Normal View History

2025-08-28 00:34:07 +08:00
import { defineConfig } from 'vitepress'
2025-09-16 19:20:37 +08:00
import note from 'markdown-it-footnote'
2025-08-28 00:34:07 +08:00
export default defineConfig({
lang: 'zh-CN',
title: 'Ceru Music',
2025-09-11 01:06:46 +08:00
base: '/',
description:
'Ceru Music 是基于 Electron 和 Vue 开发的跨平台桌面音乐播放器工具,一个跨平台的音乐播放器应用,支持基于合规插件获取公开音乐信息与播放功能。',
markdown: {
config(md) {
2025-09-16 19:20:37 +08:00
md.use(note)
}
},
2025-08-28 00:34:07 +08:00
themeConfig: {
2025-09-16 19:20:37 +08:00
returnToTopLabel: '返回顶部',
2025-08-28 00:34:07 +08:00
// https://vitepress.dev/reference/default-theme-config
2025-08-28 01:25:43 +08:00
logo: '/logo.svg',
2025-08-28 00:34:07 +08:00
nav: [
{ text: '首页', link: '/' },
{ text: '使用文档', link: '/guide/' }
],
sidebar: [
{
text: 'CeruMusic',
items: [
2025-09-16 13:52:28 +08:00
{ text: '安装教程', link: '/guide/' },
{
2025-09-16 19:20:37 +08:00
text: '使用教程',
items: [{ text: '音乐播放列表', link: '/guide/used/playList' }]
2025-09-16 13:52:28 +08:00
},
{ text: '软件设计文档', link: '/guide/design' },
{ text: '更新日志', link: '/guide/updateLog' },
{ text: '更新计划', link: '/guide/update' }
2025-08-28 00:34:07 +08:00
]
},
{
text: '澜音&插件',
items: [
{ text: '插件类使用', link: '/guide/CeruMusicPluginHost' },
{ text: '澜音插件开发文档(重点)', link: '/guide/CeruMusicPluginDev' }
]
}
],
socialLinks: [
2025-08-28 04:55:13 +08:00
{ icon: 'github', link: 'https://github.com/timeshiftsauce/CeruMusic' },
{ icon: 'gitee', link: 'https://gitee.com/sqjcode/CeruMuisc' },
{ icon: 'qq', link: 'https://qm.qq.com/q/IDpQnbGd06' },
{ icon: 'beatsbydre', link: 'https://shiqianjiang.cn' },
{ icon: 'bilibili', link: 'https://space.bilibili.com/696709986' }
2025-08-28 00:34:07 +08:00
],
footer: {
message: 'Released under the Apache License 2.0 License.',
copyright: `Copyright © 2025-${new Date().getFullYear()} 时迁酱`
},
editLink: {
pattern: 'https://github.com/timeshiftsauce/CeruMusic/edit/main/docs/:path'
},
search: {
provider: 'local'
2025-09-16 19:20:37 +08:00
},
outline: {
level: [2, 4],
2025-09-16 19:20:37 +08:00
label: '文章导航'
},
docFooter: {
next: '下一篇',
prev: '上一篇'
},
lastUpdatedText: '上次更新'
2025-08-28 00:34:07 +08:00
},
2025-09-18 18:08:42 +08:00
sitemap: {
hostname: 'https://ceru.docs.shiqianjiang.cn'
},
2025-08-28 00:34:07 +08:00
lastUpdated: true,
head: [['link', { rel: 'icon', href: '/logo.svg' }]]
2025-08-28 00:34:07 +08:00
})
2025-09-11 01:04:55 +08:00
console.log(process.env.BASE_URL_DOCS)
2025-08-28 00:34:07 +08:00
// Smooth scrolling functions