升级:将 VitePress 版本升级为 v1.0.0-alpha.43(本次升级版本跨度大,调整内容也较多,包括:支持配置在大纲中隐藏 Badge 文本,VitePress 默认主题全局风格优化等)
This commit is contained in:
@@ -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, // 启用行号
|
||||
|
||||
|
@@ -9,6 +9,7 @@ export const themeConfig: DefaultTheme.Config = {
|
||||
logo: '/logo.png',
|
||||
outline: 'deep', // 右侧大纲标题层级
|
||||
outlineTitle: '目录', // 右侧大纲标题文本配置
|
||||
outlineBadges: false, // 是否在大纲中显示 Badge 文本
|
||||
lastUpdatedText: '最后更新', // 最后更新时间文本配置, 需先配置lastUpdated为true
|
||||
// 文档页脚文本配置
|
||||
docFooter: {
|
||||
|
@@ -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);
|
||||
}
|
||||
|
12
package.json
12
package.json
@@ -6,20 +6,20 @@
|
||||
"build": "node collect-article-data.mjs && vitepress build docs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@arco-design/web-vue": "^2.41.0",
|
||||
"@arco-design/web-vue": "^2.42.0",
|
||||
"flexsearch": "^0.7.31",
|
||||
"markdown-it": "^13.0.1",
|
||||
"mermaid": "^9.3.0",
|
||||
"unplugin-vue-components": "^0.22.12",
|
||||
"unplugin-vue-components": "^0.23.0",
|
||||
"vite": "^4.0.4",
|
||||
"vitepress": "1.0.0-alpha.35",
|
||||
"vitepress-plugin-mermaid": "^2.0.8",
|
||||
"vitepress-plugin-search": "1.0.4-alpha.17",
|
||||
"vitepress": "1.0.0-alpha.43",
|
||||
"vitepress-plugin-mermaid": "2.0.8",
|
||||
"vitepress-plugin-search": "^1.0.4-alpha.19",
|
||||
"vue": "^3.2.45"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antv/g2plot": "^2.4.23",
|
||||
"axios": "^1.2.2",
|
||||
"axios": "^1.2.6",
|
||||
"blueimp-md5": "^2.19.0",
|
||||
"dayjs": "^1.11.7",
|
||||
"fast-glob": "^3.2.12",
|
||||
|
941
pnpm-lock.yaml
generated
941
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user