Files

95 lines
2.0 KiB
TypeScript

import { defineUserConfig } from 'vuepress'
import { plumeTheme } from 'vuepress-theme-plume'
import { viteBundler } from '@vuepress/bundler-vite'
import { commentPlugin } from '@vuepress/plugin-comment'
import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics'
export default defineUserConfig({
base: '/',
lang: 'zh-CN',
title: '仲夏夜之梦',
description: '爱与回忆的小世界,记录生活中的每一份温暖与感动',
head: [
['link', { rel: 'icon', type: 'image/png', href: 'https://theme-plume.vuejs.press/favicon-32x32.png' }],
],
bundler: viteBundler(),
shouldPrefetch: false,
theme: plumeTheme({
/* 站点域名,启动 SEO 优化 */
hostname: 'https://notes.simengweb.com',
/* 博客文章页面链接前缀 */
article: '/article/',
/* 启用数学公式支持和Mermaid图表 */
markdown: {
math: {
type: 'katex',
},
mermaid: true,
demo: true,
},
/**
* 编译缓存,加快编译速度
*/
cache: 'filesystem',
/* 本地搜索, 默认启用 */
search: { provider: 'local' },
/**
* 博客相关配置
*/
blog: {
postCover: {
layout: 'left',
width: 300,
compact: true
}
},
/**
* 文章贡献者配置
*/
contributors: {
mode: 'inline',
info: [
{
username: 'si-meng-spec',
name: 'si-meng-spec',
alias: ['si-meng-spec'],
}
]
},
/**
* Git插件配置
* 设置为true以在开发环境也启用
*/
plugins: {
git: true
},
codeHighlighter: {
lineNumbers: true,
}
}),
plugins: [
commentPlugin({
provider: 'Waline',
serverURL: 'https://vercel.simengweb.com',
meta: ['nick'],
requiredMeta: ['nick']
}),
umamiAnalyticsPlugin({
id: 'a4f0ca65-2da6-4e6b-a01b-f3b3157d05a3',
link: 'https://umami.simengweb.com/script.js',
domains: ['notes.simengweb.com'],
cache: true
}),
],
})