Skip to content

Commit

Permalink
build(vitepress): 优化主题配置
Browse files Browse the repository at this point in the history
  • Loading branch information
maomao1996 committed Apr 18, 2024
1 parent 4f90f5e commit 6f92f9d
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ export default defineConfig({

nav,
sidebar,

/* 右侧大纲配置 */
outline: {
level: 'deep',
label: '本页目录',
label: '目录',
},

socialLinks: [{ icon: 'github', link: 'https://github.com/maomao1996/vitepress-nav-template' }],
Expand All @@ -44,15 +45,26 @@ export default defineConfig({
copyright: 'Copyright © 2019-present maomao',
},

darkModeSwitchLabel: '外观',
returnToTopLabel: '返回顶部',
lastUpdatedText: '上次更新',
lastUpdated: {
text: '最后更新于',
formatOptions: {
dateStyle: 'short',
timeStyle: 'medium',
},
},

docFooter: {
prev: '上一篇',
next: '下一篇',
},

returnToTopLabel: '回到顶部',
sidebarMenuLabel: '菜单',
darkModeSwitchLabel: '主题',
lightModeSwitchTitle: '切换到浅色模式',
darkModeSwitchTitle: '切换到深色模式',

/*** 自定义配置 ***/
visitor: {
badgeId: 'maomao1996.vitepress-nav-template',
},
Expand Down

0 comments on commit 6f92f9d

Please sign in to comment.