Skip to content

Commit 37ece0e

Browse files
committed
Merge branch 'master' of https://github.com/vuejs/docs-next
2 parents 0fc6871 + 84d3484 commit 37ece0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+256
-142
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"devDependencies": {
3+
"@vuepress/plugin-pwa": "^1.5.4",
34
"node-sass": "^4.13.1",
45
"sass-loader": "^8.0.2",
56
"vuepress": "^1.5.4"

src/.vuepress/config.js

Lines changed: 79 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
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+
{
811
title: 'Essentials',
912
collapsable: false,
1013
children: [
@@ -60,7 +63,8 @@ const sidebar = {
6063
{
6164
title: 'Advanced Guides',
6265
collapsable: false,
63-
children: [{
66+
children: [
67+
{
6468
title: 'Reactivity',
6569
children: [
6670
'/guide/reactivity',
@@ -88,7 +92,8 @@ const sidebar = {
8892
children: [
8993
'/guide/single-file-component',
9094
'/guide/testing',
91-
'/guide/typescript-support'
95+
'/guide/typescript-support',
96+
'/guide/mobile'
9297
]
9398
},
9499
{
@@ -177,21 +182,23 @@ const sidebar = {
177182
},
178183
'/api/composition-api'
179184
],
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+
]
195202
}
196203

197204
module.exports = {
@@ -201,27 +208,54 @@ module.exports = {
201208
[
202209
'link',
203210
{
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',
205213
rel: 'stylesheet'
206214
}
207215
],
208216
[
209217
'link',
210218
{
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',
212221
rel: 'stylesheet'
213222
}
214223
],
215-
['link', {
216-
rel: 'icon',
217-
href: '/logo.png'
218-
}],
219224
[
220-
'script',
225+
'link',
221226
{
222-
src: 'https://player.vimeo.com/api/player.js'
227+
rel: 'icon',
228+
href: '/logo.png'
223229
}
224230
],
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+
],
225259
[
226260
'script',
227261
{
@@ -232,10 +266,12 @@ module.exports = {
232266
],
233267
themeConfig: {
234268
logo: '/logo.png',
235-
nav: [{
269+
nav: [
270+
{
236271
text: 'Docs',
237272
ariaLabel: 'Documentation Menu',
238-
items: [{
273+
items: [
274+
{
239275
text: 'Guide',
240276
link: '/guide/introduction'
241277
},
@@ -263,10 +299,12 @@ module.exports = {
263299
},
264300
{
265301
text: 'Ecosystem',
266-
items: [{
302+
items: [
303+
{
267304
text: 'Community',
268305
ariaLabel: 'Community Menu',
269-
items: [{
306+
items: [
307+
{
270308
text: 'Team',
271309
link: '/community/team/'
272310
},
@@ -286,7 +324,8 @@ module.exports = {
286324
},
287325
{
288326
text: 'Official Projects',
289-
items: [{
327+
items: [
328+
{
290329
text: 'Vue Router',
291330
link: 'https://next.router.vuejs.org/'
292331
},
@@ -300,7 +339,8 @@ module.exports = {
300339
},
301340
{
302341
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'
304344
},
305345
{
306346
text: 'Devtools',
@@ -317,7 +357,8 @@ module.exports = {
317357
{
318358
text: 'Support Vue',
319359
link: '/support-vuejs/',
320-
items: [{
360+
items: [
361+
{
321362
text: 'One-time Donations',
322363
link: '/support-vuejs/#one-time-donations'
323364
},
3.36 KB
Loading
4.1 KB
Loading
849 Bytes
Loading
1.19 KB
Loading
1.59 KB
Loading
2.1 KB
Loading
2.58 KB
Loading
2.75 KB
Loading

0 commit comments

Comments
 (0)