Skip to content

Commit 06d15f8

Browse files
committed
feat: add file icons
1 parent 5fb329f commit 06d15f8

File tree

5 files changed

+160
-3
lines changed

5 files changed

+160
-3
lines changed

.vitepress/config.mts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import { defineConfig } from 'vitepress';
2+
import {
3+
groupIconMdPlugin,
4+
groupIconVitePlugin,
5+
} from 'vitepress-plugin-group-icons';
26

37
import head from './config/head';
48
import nav from './config/navbar';
@@ -70,5 +74,12 @@ export default defineConfig({
7074

7175
markdown: {
7276
lineNumbers: true,
77+
config(md) {
78+
md.use(groupIconMdPlugin);
79+
},
80+
},
81+
82+
vite: {
83+
plugins: [groupIconVitePlugin()],
7384
},
7485
});

.vitepress/theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DefaultTheme from 'vitepress/theme';
22
import { VueWriter } from 'vue-writer';
33

4+
import 'virtual:group-icons.css';
45
import './styles/index.css';
56

67
/** @type {import('vitepress').Theme} */

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"tailwind-merge": "^2.5.2",
2222
"tailwindcss-animate": "^1.0.7",
2323
"vitepress": "^1.3.4",
24+
"vitepress-plugin-group-icons": "^1.2.4",
2425
"vue": "^3.4.38",
2526
"vue-writer": "^2.0.2"
2627
},

pnpm-lock.yaml

Lines changed: 144 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)