Skip to content

Commit

Permalink
docs: add group icon plugin (#329)
Browse files Browse the repository at this point in the history
* docs: add group icon plugin

* chore: fix lint error
  • Loading branch information
yuyinws authored Sep 10, 2024
1 parent 67f9664 commit d9768d8
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'vitepress'
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'
import { algolia } from './algolia'
import { en } from './en'

Expand Down Expand Up @@ -31,6 +32,14 @@ export default defineConfig({
dark: 'catppuccin-mocha',
light: 'catppuccin-latte',
},
config(md) {
md.use(groupIconMdPlugin)
},
},
vite: {
plugins: [
groupIconVitePlugin(),
],
},
themeConfig: {
logo: {
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import DefaultTheme from 'vitepress/theme'
import TwoslashClient from '@shikijs/vitepress-twoslash/client'
import '@shikijs/vitepress-twoslash/style.css'
import './style.css'
import 'virtual:group-icons.css'

export default {
extends: DefaultTheme,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"vitepress": "^1.3.4",
"vitepress-plugin-group-icons": "^1.1.0",
"vitest": "^2.0.5",
"vue": "^3.4.38",
"vue-tsc": "^2.1.4"
Expand Down
48 changes: 48 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 d9768d8

Please sign in to comment.