Skip to content

Commit fa48f96

Browse files
committed
refactor: 💡 样式优化 & 代码主题定制
1 parent e5aaf7c commit fa48f96

File tree

12 files changed

+1617
-44
lines changed

12 files changed

+1617
-44
lines changed

demo/docs/.vitepress/config.mjs

+9-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ function init() {
3030
},
3131
// 配置 Markdown 解析器选项
3232
markdown: {
33-
lineNumbers: true
33+
lineNumbers: true,
34+
shikiSetup(shiki) {
35+
const theme = fs.readFileSync(path.resolve(__dirname, 'theme/github-light.json'))
36+
const themeJson = JSON.parse(theme)
37+
shiki.setTheme({
38+
name: 'github-light',
39+
...themeJson
40+
})
41+
}
3442
},
3543
themeConfig: {
3644
iframeConfig: {

0 commit comments

Comments
 (0)