Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 升级hope主题版本,支持主题色设置,优化build命令日志 #111

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/.vuepress/styles/config.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 参考:https://theme-hope.vuejs.press/zh/guide/interface/code-theme.htm
// 参考:https://theme-hope.vuejs.press/zh/guide/interface/code-theme.html

// 浅色主题
$code-light-them: 'coldark-cold';
Expand All @@ -9,4 +9,4 @@ $code-dark-theme: 'atom-dark';
// 主题色
// $theme-colors: #2196f3, #f26d6d, #3eaf7c, #fb9b5f;

$theme-color: #6184e8;
$theme-color: #2196f3;
7 changes: 5 additions & 2 deletions docs/.vuepress/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {
}),
// 代码块
mdEnhance: {
codetabs: true,
// codetabs: true,
tasklist: true, // 支持任务列表
playground: {
presets: ['ts', 'vue'],
Expand All @@ -105,7 +105,7 @@ export default {
],
sub: true,
sup: true,
tabs: true,
// tabs: true,
vPre: true,
vuePlayground: true,
// 文件导入
Expand Down Expand Up @@ -136,6 +136,9 @@ export default {
'/': searchProCNLocals,
},
},
// 参考:https://theme-hope.vuejs.press/zh/config/plugins/others.html#markdowntab
markdownTab: true,
nprogress: true,
// 代码高亮:https://theme-hope.vuejs.press/zh/guide/feature/code-block.html
shiki: {
langs: ['ts', 'js', 'json', 'vue', 'json5', 'bash', 'diff', 'c', 'c++', 'dockerfile', 'nginx', 'proto', 'java', 'javascript', 'typescript'],
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
"@142vip/fairy-cli": "^0.0.3-alpha.11",
"@142vip/utils": "^0.0.1-alpha.5",
"@vue/repl": "^4.3.1",
"@vuepress/bundler-vite": "2.0.0-rc.15",
"@vuepress/bundler-vite": "2.0.0-rc.17",
"@vuepress/plugin-feed": "2.0.0-rc.3",
"@vuepress/plugin-markdown-image": "2.0.0-rc.30",
"@vuepress/plugin-markdown-tab": "2.0.0-rc.47",
"@vuepress/plugin-redirect": "2.0.0-rc.8",
"dashjs": "^4.7.4",
"hls.js": "^1.5.13",
"markmap-cli": "^0.15.8",
Expand All @@ -46,10 +48,9 @@
"vercel": "^32.7.2",
"vidstack": "^1.11.30",
"vue": "^3.5.8",
"vuepress": "2.0.0-rc.15",
"vuepress-plugin-search-pro": "2.0.0-rc.53",
"vuepress-theme-hope": "2.0.0-rc.53",
"webpack": "^5.91.0",
"vuepress": "2.0.0-rc.17",
"vuepress-plugin-search-pro": "2.0.0-rc.57",
"vuepress-theme-hope": "2.0.0-rc.56",
"xmind-embed-viewer": "^1.2.0"
}
}
Loading
Loading