Skip to content

Commit

Permalink
feat: add plugin-markdown-tab (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope authored Sep 21, 2024
1 parent 12a8d5d commit 49ea97c
Show file tree
Hide file tree
Showing 23 changed files with 1,852 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { docsearchPlugin } from '@vuepress/plugin-docsearch'
import { feedPlugin } from '@vuepress/plugin-feed'
import { markdownImagePlugin } from '@vuepress/plugin-markdown-image'
import { markdownMathPlugin } from '@vuepress/plugin-markdown-math'
import { markdownTabPlugin } from '@vuepress/plugin-markdown-tab'
import { redirectPlugin } from '@vuepress/plugin-redirect'
import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
import { shikiPlugin } from '@vuepress/plugin-shiki'
Expand Down Expand Up @@ -96,6 +97,10 @@ export default defineUserConfig({
size: true,
}),
markdownMathPlugin(),
markdownTabPlugin({
codeTabs: true,
tabs: true,
}),
redirectPlugin({
switchLocale: 'modal',
}),
Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/configs/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const sidebarEn: SidebarOptions = {
'markdown-image',
'markdown-hint',
'markdown-math',
'markdown-tab',
'links-check',
'prismjs',
'shiki',
Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/configs/sidebar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const sidebarZh: SidebarOptions = {
'markdown-image',
'markdown-hint',
'markdown-math',
'markdown-tab',
'links-check',
'prismjs',
'shiki',
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@vuepress/plugin-feed": "workspace:*",
"@vuepress/plugin-markdown-image": "workspace:*",
"@vuepress/plugin-markdown-math": "workspace:*",
"@vuepress/plugin-markdown-tab": "workspace:*",
"@vuepress/plugin-medium-zoom": "workspace:*",
"@vuepress/plugin-nprogress": "workspace:*",
"@vuepress/plugin-photo-swipe": "workspace:*",
Expand Down
Loading

0 comments on commit 49ea97c

Please sign in to comment.