vitepress-blog/.vitepress/config.mts

47 lines
1.1 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:02:53 +08:00
// outDir: '/usr/src/app/dist',
2024-07-08 17:15:43 +08:00
markdown: {
container: {
tipLabel: '提示',
warningLabel: '警告',
dangerLabel: '危险',
infoLabel: '信息',
detailsLabel: '详细信息'
},
image: {
// 默认禁用图片懒加载
lazyLoading: true
},
},
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: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2024'
}
}
})