Skip to content

Commit

Permalink
docs: fix markdown highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Sep 3, 2024
1 parent 11578f0 commit 8fc01dc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineUserConfig } from 'vuepress'
import { viteBundler } from '@vuepress/bundler-vite'
import { defaultTheme } from '@vuepress/theme-default'
import { shikiPlugin } from '@vuepress/plugin-shiki'
import { socialSharePlugin } from 'vuepress-plugin-social-share'
import type { SocialShareNetworkData } from 'vuepress-plugin-social-share'

Expand Down Expand Up @@ -51,6 +52,26 @@ export default defineUserConfig({
}),

plugins: [
shikiPlugin({
langs: [
'js',
'ts',
'md',
'jsx',
'tsx',
'html',
'vue',
'css',
'scss',
'json',
'jsonc',
'yml',
'yaml',
'bash',
'shell',
],
theme: 'one-dark-pro',
}),
socialSharePlugin({
networks: ['qq', 'twitter', 'weibo', 'email', 'linkedin', 'pinterest', 'wechat'],
twitterUser: 'ntnyq',
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"devDependencies": {
"@vuepress/bundler-vite": "^2.0.0-rc.15",
"@vuepress/plugin-shiki": "^2.0.0-rc.42",
"@vuepress/theme-default": "^2.0.0-rc.42",
"vuepress-plugin-social-share": "workspace:*"
}
Expand Down

0 comments on commit 8fc01dc

Please sign in to comment.