Skip to content

Commit

Permalink
feat(docs): use shiki code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed May 10, 2022
1 parent fb0ce99 commit f1a317c
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { viteBundler } = require('@vuepress/bundler-vite');
const defaultTheme = require('./theme')
const { registerComponentsPlugin } = require('@vuepress/plugin-register-components')
const { searchPlugin } = require('@vuepress/plugin-search')
const { shikiPlugin } = require('@vuepress/plugin-shiki')
const { path } = require('@vuepress/utils')

// eslint-disable-next-line no-control-regex
Expand Down Expand Up @@ -72,6 +73,7 @@ module.exports = {
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, 'examples')
}),
shikiPlugin({ theme: 'dark-plus' }),
],
markdown: {
importCode: {
Expand Down
79 changes: 79 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@vue/cli-service": "~5.0.0",
"@vuepress/plugin-register-components": "^2.0.0-beta.43",
"@vuepress/plugin-search": "^2.0.0-beta.43",
"@vuepress/plugin-shiki": "^2.0.0-beta.43",
"core-js": "^3.22.2",
"eslint": "^8.14.0",
"eslint-plugin-vue": "^8.0.3",
Expand Down

0 comments on commit f1a317c

Please sign in to comment.