Skip to content

Commit

Permalink
docs: add group icon
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Aug 17, 2024
1 parent eed9a94 commit 1472ce2
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { search as ptSearch } from './pt'
import { search as ruSearch } from './ru'
import { search as esSearch } from './es'
import { search as koSearch } from './ko'
import { groupIconPlugin } from 'vitepress-plugin-group-icons'

export const shared = defineConfig({
title: 'VitePress',
Expand All @@ -25,7 +26,10 @@ export const shared = defineConfig({
return code.replace(/\[\!\!code/g, '[!code')
}
}
]
],
config: (md) => {
md.use(groupIconPlugin)
}
},

sitemap: {
Expand Down
10 changes: 10 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import DefaultTheme from 'vitepress/theme'
import type { EnhanceAppContext } from 'vitepress'
import { GroupIconComponent } from 'vitepress-plugin-group-icons/client'

export default {
extends: DefaultTheme,
enhanceApp({ app }: EnhanceAppContext) {
app.use(GroupIconComponent)
},
}
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@lunariajs/core": "^0.1.1",
"markdown-it-mathjax3": "^4.3.2",
"open-cli": "^8.0.0",
"vitepress": "workspace:*"
"vitepress": "workspace:*",
"vitepress-plugin-group-icons": "^0.0.9"
}
}
38 changes: 38 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 1472ce2

Please sign in to comment.