-
Notifications
You must be signed in to change notification settings - Fork 0
/
vant.config.js
227 lines (227 loc) · 5.65 KB
/
vant.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
module.exports = {
name: 'v-power',
build: {
srcDir: 'src',
namedExport: true,
site: {
publicPath: '/v-power',
},
vetur: {
tagPrefix: 'vp-',
},
css: {
preprocessor: 'less',
},
},
site: {
defaultLang: 'en-US',
versions: [
// { label: 'v1', link: '/' },
],
baiduAnalytics: {
seed: '',
},
htmlPluginOptions: {
meta: {
'docsearch:version': 'v1',
},
},
locales: {
'zh-CN': {
title: 'v-power',
description: '轻量、可靠的移动端组件库',
logo:
'https://cdntest-1251804846.cos.ap-guangzhou.myqcloud.com/logo.png',
langLabel: '中',
links: [
{
logo: 'https://b.yzcdn.cn/vant/logo/weapp.svg',
url: 'https://gitee.com/null_639_5368/v-power',
},
{
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: 'https://github.com/MaybeQHL/v-power',
},
],
// searchConfig: {
// apiKey: '90067aecdaa2c85220e2783cd305caac',
// indexName: 'v-power',
// searchParameters: {
// facetFilters: ['lang:zh-CN', 'version:v3'],
// },
// transformItems(items) {
// if (location.hostname !== 'youzan.github.io') {
// items.forEach((item) => {
// if (item.url) {
// item.url =
// item.url &&
// item.url.replace('youzan.github.io', location.hostname);
// }
// });
// }
// return items;
// },
// },
nav: [
{
title: '开发指南',
items: [
{
path: 'home',
title: '介绍',
},
{
path: 'quickstart',
title: '快速上手',
},
{
path: 'faq',
title: '常见问题',
},
{
path: 'changelog',
title: '更新日志',
},
{
path: 'contribution',
title: '贡献指南',
},
{
path: 'locale',
title: '国际化',
},
{
path: 'parse',
title: '代码转换',
},
],
},
{
title: '基础组件',
items: [
{
path: 'container',
title: 'Container 容器',
},
{
path: 'list',
title: 'List 列表',
},
{
path: 'card',
title: 'Card 卡片',
},
{
path: 'form',
title: 'Form 表单',
},
{
path: 'verify-button',
title: 'VerifyButton 获取验证码',
},
{
path: 'video-uploader',
title: 'VideoUploader 视频上传',
},
],
},
{
title: '微信公众号',
items: [{
path: 'wx-imgs-uploader',
title: 'WxImgsUploader 多图上传',
}]
}
],
},
'en-US': {
title: 'v-power',
description: 'Mobile UI Components built on Vue',
logo:
'https://cdntest-1251804846.cos.ap-guangzhou.myqcloud.com/logo.png',
langLabel: 'EN',
links: [
{
logo: 'https://b.yzcdn.cn/vant/logo/weapp.svg',
url: 'https://gitee.com/null_639_5368/v-power',
},
{
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: 'https://github.com/MaybeQHL/v-power',
},
],
nav: [
{
title: 'Essentials',
items: [
{
path: 'home',
title: 'Introduction',
},
{
path: 'quickstart',
title: 'Quickstart',
},
{
path: 'faq',
title: 'Faq',
},
{
path: 'changelog',
title: 'Changelog',
},
{
path: 'contribution',
title: 'Contribution',
},
{
path: 'locale',
title: 'Locale',
},
{
path: 'parse',
title: 'Parse',
},
],
},
{
title: 'Basic Components',
items: [
{
path: 'container',
title: 'Container',
},
{
path: 'list',
title: 'List',
},
{
path: 'card',
title: 'Card',
},
{
path: 'form',
title: 'Form',
},
{
path: 'verify-button',
title: 'VerifyButton',
},
{
path: 'video-uploader',
title: 'VideoUploader',
},
],
},
{
title: 'Wechat official account',
items: [{
path: 'wx-imgs-uploader',
title: 'WxImgsUploader',
}]
}
],
},
},
},
};