1
- import { defineConfig } from 'vitepress'
2
- import { groupIconMdPlugin , groupIconVitePlugin } from 'vitepress-plugin-group-icons'
3
- import { componentViewMarkdownPlugin } from 'vitepress-plugin-vue-component-view'
1
+ import { defineConfig } from "vitepress" ;
2
+ import {
3
+ groupIconMdPlugin ,
4
+ groupIconVitePlugin ,
5
+ } from "vitepress-plugin-group-icons" ;
6
+ import { componentViewMarkdownPlugin } from "vitepress-plugin-vue-component-view" ;
7
+ import tailwindcss from "@tailwindcss/vite" ;
4
8
5
9
// https://vitepress.dev/reference/site-config
6
10
export default defineConfig ( {
7
- title : ' NextUI Vue' ,
8
- description : ' Vue 3 Component Library based on HeroUI Theme' ,
9
- head : [ [ ' link' , { rel : ' icon' , href : ' /logo.png' } ] ] ,
11
+ title : " NextUI Vue" ,
12
+ description : " Vue 3 Component Library based on HeroUI Theme" ,
13
+ head : [ [ " link" , { rel : " icon" , href : " /logo.png" } ] ] ,
10
14
ignoreDeadLinks : true ,
11
15
12
16
markdown : {
13
17
config ( md ) {
14
- md . use ( groupIconMdPlugin )
15
- md . use ( componentViewMarkdownPlugin )
18
+ md . use ( groupIconMdPlugin ) ;
19
+ md . use ( componentViewMarkdownPlugin ) ;
16
20
} ,
17
21
} ,
18
22
vite : {
19
- plugins : [
20
- groupIconVitePlugin ( ) ,
21
- ] ,
23
+ plugins : [ groupIconVitePlugin ( ) , tailwindcss ( ) ] ,
22
24
} ,
23
25
24
26
locales : {
25
27
root : {
26
- label : ' English' ,
27
- lang : 'en' ,
28
+ label : " English" ,
29
+ lang : "en" ,
28
30
link : "/en/" ,
29
- title : ' NextUI Vue' ,
30
- description : ' Vue 3 Component Library based on HeroUI Theme' ,
31
+ title : " NextUI Vue" ,
32
+ description : " Vue 3 Component Library based on HeroUI Theme" ,
31
33
themeConfig : {
32
34
nav : [
33
- { text : ' Guide' , link : ' /en/guide/introduction' } ,
34
- { text : ' Components' , link : ' /en/components/button' } ,
35
- { text : ' HeroUI' , link : ' https://heroui.com/' } ,
35
+ { text : " Guide" , link : " /en/guide/introduction" } ,
36
+ { text : " Components" , link : " /en/components/button" } ,
37
+ { text : " HeroUI" , link : " https://heroui.com/" } ,
36
38
] ,
37
39
sidebar : [
38
40
{
39
- text : ' Guide' ,
41
+ text : " Guide" ,
40
42
collapsed : false ,
41
43
items : [
42
- { text : ' Introduction' , link : ' /en/guide/introduction' } ,
43
- { text : ' Installation' , link : ' /en/guide/installation' } ,
44
+ { text : " Introduction" , link : " /en/guide/introduction" } ,
45
+ { text : " Installation" , link : " /en/guide/installation" } ,
44
46
] ,
45
47
} ,
46
48
{
47
- text : ' Components' ,
49
+ text : " Components" ,
48
50
collapsed : false ,
49
51
items : [
50
- { text : ' Button' , link : ' /en/components/button' } ,
51
- { text : ' Alert' , link : ' /en/components/alert' } ,
52
+ { text : " Button" , link : " /en/components/button" } ,
53
+ { text : " Alert" , link : " /en/components/alert" } ,
52
54
] ,
53
55
} ,
54
56
] ,
55
57
} ,
56
58
} ,
57
59
zh : {
58
- label : ' 简体中文' ,
60
+ label : " 简体中文" ,
59
61
link : "/zh/" ,
60
- lang : ' zh-CN' ,
61
- title : ' NextUI Vue' ,
62
- description : ' 基于HeroUI Theme构建的Vue3组件库' ,
62
+ lang : " zh-CN" ,
63
+ title : " NextUI Vue" ,
64
+ description : " 基于HeroUI Theme构建的Vue3组件库" ,
63
65
themeConfig : {
64
66
nav : [
65
- { text : '指南' , link : ' /zh/guide/introduction' } ,
66
- { text : '组件' , link : ' /zh/components/button' } ,
67
- { text : ' HeroUI' , link : ' https://heroui.com/' } ,
67
+ { text : "指南" , link : " /zh/guide/introduction" } ,
68
+ { text : "组件" , link : " /zh/components/button" } ,
69
+ { text : " HeroUI" , link : " https://heroui.com/" } ,
68
70
] ,
69
71
sidebar : [
70
72
{
71
- text : '指南' ,
73
+ text : "指南" ,
72
74
collapsed : false ,
73
75
items : [
74
- { text : '介绍' , link : ' /zh/guide/introduction' } ,
75
- { text : '安装' , link : ' /zh/guide/installation' } ,
76
+ { text : "介绍" , link : " /zh/guide/introduction" } ,
77
+ { text : "安装" , link : " /zh/guide/installation" } ,
76
78
] ,
77
79
} ,
78
80
{
79
- text : '组件' ,
81
+ text : "组件" ,
80
82
collapsed : false ,
81
83
items : [
82
- { text : ' Button' , link : ' /zh/components/button' } ,
83
- { text : ' Alert' , link : ' /zh/components/alert' } ,
84
+ { text : " Button" , link : " /zh/components/button" } ,
85
+ { text : " Alert" , link : " /zh/components/alert" } ,
84
86
] ,
85
87
} ,
86
88
] ,
@@ -89,27 +91,27 @@ export default defineConfig({
89
91
} ,
90
92
91
93
themeConfig : {
92
- logo : ' /logo.png' ,
94
+ logo : " /logo.png" ,
93
95
search : {
94
- provider : ' local' ,
96
+ provider : " local" ,
95
97
} ,
96
- outline : ' deep' ,
98
+ outline : " deep" ,
97
99
98
100
socialLinks : [
99
- { icon : ' github' , link : ' https://github.com/nextui-vue/nextui-vue' } ,
101
+ { icon : " github" , link : " https://github.com/nextui-vue/nextui-vue" } ,
100
102
] ,
101
103
102
104
footer : {
103
- message : ' MIT Licensed' ,
104
- copyright : ' ©hotdogc1017' ,
105
+ message : " MIT Licensed" ,
106
+ copyright : " ©hotdogc1017" ,
105
107
} ,
106
108
107
109
// Language switcher
108
- langMenuLabel : ' Change language' ,
109
- returnToTopLabel : ' Return to top' ,
110
- sidebarMenuLabel : ' Menu' ,
111
- darkModeSwitchLabel : ' Dark mode' ,
112
- lightModeSwitchTitle : ' Switch to light theme' ,
113
- darkModeSwitchTitle : ' Switch to dark theme' ,
110
+ langMenuLabel : " Change language" ,
111
+ returnToTopLabel : " Return to top" ,
112
+ sidebarMenuLabel : " Menu" ,
113
+ darkModeSwitchLabel : " Dark mode" ,
114
+ lightModeSwitchTitle : " Switch to light theme" ,
115
+ darkModeSwitchTitle : " Switch to dark theme" ,
114
116
} ,
115
- } )
117
+ } ) ;
0 commit comments