1
1
const sidebar = {
2
- cookbook : [ {
3
- title : 'Cookbook' ,
4
- collapsable : false ,
5
- children : [ '/cookbook/' , '/cookbook/editable-svg-icons' ]
6
- } ] ,
7
- guide : [ {
2
+ cookbook : [
3
+ {
4
+ title : 'Cookbook' ,
5
+ collapsable : false ,
6
+ children : [ '/cookbook/' , '/cookbook/editable-svg-icons' ]
7
+ }
8
+ ] ,
9
+ guide : [
10
+ {
8
11
title : 'Essentials' ,
9
12
collapsable : false ,
10
13
children : [
@@ -60,7 +63,8 @@ const sidebar = {
60
63
{
61
64
title : 'Advanced Guides' ,
62
65
collapsable : false ,
63
- children : [ {
66
+ children : [
67
+ {
64
68
title : 'Reactivity' ,
65
69
children : [
66
70
'/guide/reactivity' ,
@@ -88,7 +92,8 @@ const sidebar = {
88
92
children : [
89
93
'/guide/single-file-component' ,
90
94
'/guide/testing' ,
91
- '/guide/typescript-support'
95
+ '/guide/typescript-support' ,
96
+ '/guide/mobile'
92
97
]
93
98
} ,
94
99
{
@@ -177,21 +182,23 @@ const sidebar = {
177
182
} ,
178
183
'/api/composition-api'
179
184
] ,
180
- examples : [ {
181
- title : 'Examples' ,
182
- collapsable : false ,
183
- children : [
184
- '/examples/markdown' ,
185
- '/examples/commits' ,
186
- '/examples/grid-component' ,
187
- '/examples/tree-view' ,
188
- '/examples/svg' ,
189
- '/examples/modal' ,
190
- '/examples/elastic-header' ,
191
- '/examples/select2' ,
192
- '/examples/todomvc'
193
- ]
194
- } ]
185
+ examples : [
186
+ {
187
+ title : 'Examples' ,
188
+ collapsable : false ,
189
+ children : [
190
+ '/examples/markdown' ,
191
+ '/examples/commits' ,
192
+ '/examples/grid-component' ,
193
+ '/examples/tree-view' ,
194
+ '/examples/svg' ,
195
+ '/examples/modal' ,
196
+ '/examples/elastic-header' ,
197
+ '/examples/select2' ,
198
+ '/examples/todomvc'
199
+ ]
200
+ }
201
+ ]
195
202
}
196
203
197
204
module . exports = {
@@ -201,27 +208,54 @@ module.exports = {
201
208
[
202
209
'link' ,
203
210
{
204
- href : 'https://fonts.googleapis.com/css?family=Inter:300,400,500,600|Open+Sans:400,600;display=swap' ,
211
+ href :
212
+ 'https://fonts.googleapis.com/css?family=Inter:300,400,500,600|Open+Sans:400,600;display=swap' ,
205
213
rel : 'stylesheet'
206
214
}
207
215
] ,
208
216
[
209
217
'link' ,
210
218
{
211
- href : 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ,
219
+ href :
220
+ 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ,
212
221
rel : 'stylesheet'
213
222
}
214
223
] ,
215
- [ 'link' , {
216
- rel : 'icon' ,
217
- href : '/logo.png'
218
- } ] ,
219
224
[
220
- 'script ' ,
225
+ 'link ' ,
221
226
{
222
- src : 'https://player.vimeo.com/api/player.js'
227
+ rel : 'icon' ,
228
+ href : '/logo.png'
223
229
}
224
230
] ,
231
+ [ 'link' , { rel : 'manifest' , href : '/manifest.json' } ] ,
232
+ [ 'meta' , { name : 'theme-color' , content : '#3eaf7c' } ] ,
233
+ [ 'meta' , { name : 'apple-mobile-web-app-capable' , content : 'yes' } ] ,
234
+ [
235
+ 'meta' ,
236
+ { name : 'apple-mobile-web-app-status-bar-style' , content : 'black' }
237
+ ] ,
238
+ [
239
+ 'link' ,
240
+ {
241
+ rel : 'apple-touch-icon' ,
242
+ href : '/images/icons/apple-icon-152x152.png'
243
+ }
244
+ ] ,
245
+ [
246
+ 'meta' ,
247
+ {
248
+ name : 'msapplication-TileImage' ,
249
+ content : '/images/icons/ms-icon-144x144.png'
250
+ }
251
+ ] ,
252
+ [ 'meta' , { name : 'msapplication-TileColor' , content : '#000000' } ] ,
253
+ [
254
+ ( 'script' ,
255
+ {
256
+ src : 'https://player.vimeo.com/api/player.js'
257
+ } )
258
+ ] ,
225
259
[
226
260
'script' ,
227
261
{
@@ -232,10 +266,12 @@ module.exports = {
232
266
] ,
233
267
themeConfig : {
234
268
logo : '/logo.png' ,
235
- nav : [ {
269
+ nav : [
270
+ {
236
271
text : 'Docs' ,
237
272
ariaLabel : 'Documentation Menu' ,
238
- items : [ {
273
+ items : [
274
+ {
239
275
text : 'Guide' ,
240
276
link : '/guide/introduction'
241
277
} ,
@@ -263,10 +299,12 @@ module.exports = {
263
299
} ,
264
300
{
265
301
text : 'Ecosystem' ,
266
- items : [ {
302
+ items : [
303
+ {
267
304
text : 'Community' ,
268
305
ariaLabel : 'Community Menu' ,
269
- items : [ {
306
+ items : [
307
+ {
270
308
text : 'Team' ,
271
309
link : '/community/team/'
272
310
} ,
@@ -286,7 +324,8 @@ module.exports = {
286
324
} ,
287
325
{
288
326
text : 'Official Projects' ,
289
- items : [ {
327
+ items : [
328
+ {
290
329
text : 'Vue Router' ,
291
330
link : 'https://next.router.vuejs.org/'
292
331
} ,
@@ -300,7 +339,8 @@ module.exports = {
300
339
} ,
301
340
{
302
341
text : 'Vue Test Utils' ,
303
- link : 'https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html'
342
+ link :
343
+ 'https://vuejs.github.io/vue-test-utils-next-docs/guide/introduction.html'
304
344
} ,
305
345
{
306
346
text : 'Devtools' ,
@@ -317,7 +357,8 @@ module.exports = {
317
357
{
318
358
text : 'Support Vue' ,
319
359
link : '/support-vuejs/' ,
320
- items : [ {
360
+ items : [
361
+ {
321
362
text : 'One-time Donations' ,
322
363
link : '/support-vuejs/#one-time-donations'
323
364
} ,
0 commit comments