升级:将 VitePress 版本升级为 v1.0.0-alpha.43(本次升级版本跨度大,调整内容也较多,包括:支持配置在大纲中隐藏 Badge 文本,VitePress 默认主题全局风格优化等)

This commit is contained in:
2023-01-30 19:56:20 +08:00
parent 75090ce89e
commit 612dde9bfa
6 changed files with 881 additions and 80 deletions

View File

@@ -3,8 +3,8 @@ import type { MarkdownOptions } from 'vitepress'
export const markdown: MarkdownOptions = {
// Shiki主题, 所有主题参见: https://github.com/shikijs/shiki/blob/main/docs/themes.md
theme: {
light: 'material-palenight',
dark: 'one-dark-pro'
light: 'one-dark-pro',
dark: 'material-theme-palenight'
},
// lineNumbers: true, // 启用行号

View File

@@ -9,6 +9,7 @@ export const themeConfig: DefaultTheme.Config = {
logo: '/logo.png',
outline: 'deep', // 右侧大纲标题层级
outlineTitle: '目录', // 右侧大纲标题文本配置
outlineBadges: false, // 是否在大纲中显示 Badge 文本
lastUpdatedText: '最后更新', // 最后更新时间文本配置, 需先配置lastUpdated为true
// 文档页脚文本配置
docFooter: {

View File

@@ -31,7 +31,7 @@ const { theme } = useData()
.VPFooter {
position: relative;
z-index: var(--vp-z-index-footer);
border-top: 1px solid var(--vp-c-divider-light);
border-top: 1px solid var(--vp-c-gutter);
padding: 25px 24px;
background-color: var(--vp-c-bg);
}