Skip to content

Commit

Permalink
feat(docs): use shiki with vs code theme
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed May 15, 2022
1 parent 30cd14c commit 9298810
Show file tree
Hide file tree
Showing 3 changed files with 293 additions and 12 deletions.
5 changes: 4 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const anchorPlugin = require('markdown-it-anchor')
const { viteBundler } = require('@vuepress/bundler-vite');
const { shikiPlugin } = require('@vuepress/plugin-shiki')

const defaultTheme = require('./theme')
const { path } = require('@vuepress/utils')

Expand Down Expand Up @@ -73,7 +75,8 @@ module.exports = {
},
),
plugins: [
["@vuepress/plugin-prismjs", true],
["@vuepress/plugin-prismjs", false],
shikiPlugin({ theme: 'dark-plus' })
// https://github.com/shikijs/shiki/blob/main/docs/themes.md
// ["@vuepress/plugin-shiki", {
// theme: 'material-default'
Expand Down
Loading

0 comments on commit 9298810

Please sign in to comment.