Skip to content

Commit b6a067c

Browse files
committed
[docs][zh] updated config
1 parent ca77b66 commit b6a067c

File tree

1 file changed

+86
-32
lines changed

1 file changed

+86
-32
lines changed

docs/.vuepress/config.js

Lines changed: 86 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,96 @@
11
module.exports = {
2-
title: 'Vue Loader',
3-
description: 'Webpack loader for single-file Vue components',
2+
locales: {
3+
'/': {
4+
lang: 'en-US',
5+
title: 'Vue Loader',
6+
description: 'Webpack loader for single-file Vue components'
7+
},
8+
'/zh/': {
9+
lang: 'zh-CN',
10+
title: 'Vue Loader',
11+
description: '处理 Vue 单文件组件的 Webpack loader'
12+
}
13+
},
414
serviceWorker: true,
515
theme: 'vue',
616
themeConfig: {
717
repo: 'vuejs/vue-loader',
818
docsDir: 'docs',
9-
nav: [
10-
{
11-
text: 'Guide',
12-
link: '/guide/'
19+
locales: {
20+
'/': {
21+
label: 'English',
22+
selectText: 'Languages',
23+
editLinkText: 'Edit this page on GitHub',
24+
nav: [
25+
{
26+
text: 'Guide',
27+
link: '/guide/'
28+
},
29+
{
30+
text: 'SFC Spec',
31+
link: '/spec.html'
32+
},
33+
{
34+
text: 'Options Reference',
35+
link: '/options.html'
36+
},
37+
{
38+
text: 'Migrating from v14',
39+
link: '/migrating.md'
40+
}
41+
],
42+
sidebar: [
43+
'/',
44+
'/guide/',
45+
'/guide/asset-url',
46+
'/guide/pre-processors',
47+
'/guide/scoped-css',
48+
'/guide/css-modules',
49+
'/guide/hot-reload',
50+
'/guide/functional',
51+
'/guide/custom-blocks',
52+
'/guide/extract-css',
53+
'/guide/linting',
54+
'/guide/testing'
55+
]
1356
},
14-
{
15-
text: 'SFC Spec',
16-
link: '/spec.html'
17-
},
18-
{
19-
text: 'Options Reference',
20-
link: '/options.html'
21-
},
22-
{
23-
text: 'Migrating from v14',
24-
link: '/migrating.md'
57+
'/zh/': {
58+
label: '简体中文',
59+
selectText: '选择语言',
60+
editLinkText: '在 GitHub 上编辑此页',
61+
nav: [
62+
{
63+
text: '指南',
64+
link: '/zh/guide/'
65+
},
66+
{
67+
text: '单文件组件规范',
68+
link: '/zh/spec.html'
69+
},
70+
{
71+
text: '选项手册',
72+
link: '/zh/options.html'
73+
},
74+
{
75+
text: '如何从 v14 迁移',
76+
link: '/zh/migrating.md'
77+
}
78+
],
79+
sidebar: [
80+
'/zh/',
81+
'/zh/guide/',
82+
'/zh/guide/asset-url',
83+
'/zh/guide/pre-processors',
84+
'/zh/guide/scoped-css',
85+
'/zh/guide/css-modules',
86+
'/zh/guide/hot-reload',
87+
'/zh/guide/functional',
88+
'/zh/guide/custom-blocks',
89+
'/zh/guide/extract-css',
90+
'/zh/guide/linting',
91+
'/zh/guide/testing'
92+
]
2593
}
26-
],
27-
sidebar: [
28-
'/',
29-
'/guide/',
30-
'/guide/asset-url',
31-
'/guide/pre-processors',
32-
'/guide/scoped-css',
33-
'/guide/css-modules',
34-
'/guide/hot-reload',
35-
'/guide/functional',
36-
'/guide/custom-blocks',
37-
'/guide/extract-css',
38-
'/guide/linting',
39-
'/guide/testing'
40-
]
94+
}
4195
}
4296
}

0 commit comments

Comments
 (0)