File tree Expand file tree Collapse file tree 4 files changed +280
-2
lines changed
Expand file tree Collapse file tree 4 files changed +280
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ import { transformerTwoslash } from '@shikijs/vitepress-twoslash';
22import tailwindcss from '@tailwindcss/vite' ;
33import { defineConfig } from 'vitepress' ;
44import { getSidebar } from './sidebar' ;
5+ import {
6+ groupIconMdPlugin ,
7+ groupIconVitePlugin ,
8+ } from 'vitepress-plugin-group-icons' ;
59
610// https://vitepress.dev/reference/site-config
711export default defineConfig ( {
@@ -12,11 +16,14 @@ export default defineConfig({
1216 lastUpdated : true ,
1317 ignoreDeadLinks : true ,
1418 vite : {
15- plugins : [ tailwindcss ( ) ] ,
19+ plugins : [ tailwindcss ( ) , groupIconVitePlugin ( ) ] ,
1620 } ,
1721 srcDir : './src' ,
1822 markdown : {
1923 codeTransformers : [ transformerTwoslash ( ) ] ,
24+ config ( md ) {
25+ md . use ( groupIconMdPlugin ) ;
26+ } ,
2027 } ,
2128
2229 head : [
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client';
66import Layout from './Layout.vue' ;
77import type { EnhanceAppContext } from 'vitepress' ;
88import googleAnalytics from 'vitepress-plugin-google-analytics' ;
9+ import 'virtual:group-icons.css'
910
1011export default {
1112 extends : DefaultTheme ,
You can’t perform that action at this time.
0 commit comments