Skip to content

Commit

Permalink
refactor: 💡 样式优化 & 代码主题定制
Browse files Browse the repository at this point in the history
  • Loading branch information
WeilinerL committed Nov 21, 2024
1 parent e5aaf7c commit fa48f96
Show file tree
Hide file tree
Showing 12 changed files with 1,617 additions and 44 deletions.
10 changes: 9 additions & 1 deletion demo/docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ function init() {
},
// 配置 Markdown 解析器选项
markdown: {
lineNumbers: true
lineNumbers: true,
shikiSetup(shiki) {
const theme = fs.readFileSync(path.resolve(__dirname, 'theme/github-light.json'))
const themeJson = JSON.parse(theme)
shiki.setTheme({
name: 'github-light',
...themeJson
})
}
},
themeConfig: {
iframeConfig: {
Expand Down
Loading

0 comments on commit fa48f96

Please sign in to comment.