Skip to content

Commit dc08166

Browse files
committed
feat: integrate vitepress-plugin-group-icons for enhanced icon management
1 parent cacbfb1 commit dc08166

File tree

4 files changed

+280
-2
lines changed

4 files changed

+280
-2
lines changed

.vitepress/config.mts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { transformerTwoslash } from '@shikijs/vitepress-twoslash';
22
import tailwindcss from '@tailwindcss/vite';
33
import { defineConfig } from 'vitepress';
44
import { getSidebar } from './sidebar';
5+
import {
6+
groupIconMdPlugin,
7+
groupIconVitePlugin,
8+
} from 'vitepress-plugin-group-icons';
59

610
// https://vitepress.dev/reference/site-config
711
export 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: [

.vitepress/theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client';
66
import Layout from './Layout.vue';
77
import type { EnhanceAppContext } from 'vitepress';
88
import googleAnalytics from 'vitepress-plugin-google-analytics';
9+
import 'virtual:group-icons.css'
910

1011
export default {
1112
extends: DefaultTheme,

0 commit comments

Comments
 (0)