Skip to content

Commit 0a2e852

Browse files
committed
docs: add icons plugin vitepress
1 parent 599f3ae commit 0a2e852

File tree

4 files changed

+176
-0
lines changed

4 files changed

+176
-0
lines changed

apps/docs/.vitepress/config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import { defineConfig } from 'vitepress'
2+
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'
23
import path from 'path'
34

45
// https://vitepress.dev/reference/site-config
56
export default defineConfig({
67
base: '/vue3-form-generator/',
78
title: 'Vue3 Form Generator',
89
description: 'Documentation for vue3-form-generator',
10+
markdown: {
11+
config(md) {
12+
md.use(groupIconMdPlugin)
13+
}
14+
},
915
themeConfig: {
1016
nav: [
1117
{ text: 'Home', link: '/' }
@@ -75,6 +81,7 @@ export default defineConfig({
7581
]
7682
},
7783
vite: {
84+
plugins: [ groupIconVitePlugin() ],
7885
resolve: {
7986
alias: {
8087
'@': path.resolve(__dirname, '../../../src')

apps/docs/.vitepress/theme/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import VueFormGenerator from '@/index'
33

44
import './index.css'
55
import '@/scss/themes/basic.scss'
6+
import 'virtual:group-icons.css'
67

78
export default {
89
extends: DefaultTheme,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"vite": "^5.4.19",
7070
"vite-plugin-dts": "^4.3.0",
7171
"vitepress": "^1.6.3",
72+
"vitepress-plugin-group-icons": "^1.5.5",
7273
"vitest": "^2.1.1",
7374
"vue": "^3.5.6",
7475
"vue-eslint-parser": "^9.4.3",

0 commit comments

Comments
 (0)