vitepress-blog/.vitepress/config.mts

49 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-07-08 17:15:43 +08:00
import { defineConfig } from 'vitepress'
import sidebar from './sidebar'
import nav from './nav'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "源码阅读",
description: "记录源码阅读记录",
srcDir: 'src',
2024-07-09 17:33:02 +08:00
// lastUpdated: true,
2024-07-09 21:47:25 +08:00
outDir: './dist',
2024-07-08 17:15:43 +08:00
markdown: {
container: {
tipLabel: '提示',
warningLabel: '警告',
dangerLabel: '危险',
2024-07-10 17:42:33 +08:00
infoLabel: 'info',
detailsLabel: '点我查看'
2024-07-08 17:15:43 +08:00
},
image: {
// 默认禁用图片懒加载
lazyLoading: true
},
2024-07-10 09:56:08 +08:00
},
sitemap: {
hostname: 'https://www.xiaokeaii.top'
2024-07-08 17:15:43 +08:00
},
themeConfig: {
outlineTitle: '页面导航',
// https://vitepress.dev/reference/default-theme-config
nav: nav,
sidebar: sidebar,
outline: {
level: [2, 6]
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
],
search: {
provider: 'local'
},
2024-07-09 17:33:02 +08:00
// lastUpdatedText: "最近更新时间",
2024-07-08 17:15:43 +08:00
docFooter: { prev: '上一篇', next: '下一篇' },
footer: {
2024-07-09 22:10:21 +08:00
message: '<a href="https://beian.miit.gov.cn/" target="_blank"> 豫ICP备2023030549号-1</a>',
2024-07-08 17:15:43 +08:00
copyright: 'Copyright © 2024'
}
}
})