forked from vuejs/vue-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
177 lines (177 loc) · 5.11 KB
/
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
module.exports = {
locales: {
'/': {
lang: 'en-US',
title: 'Vue Router',
description: 'The official router for Vue.js.'
},
'/zh/': {
lang: 'zh-CN',
title: 'Vue Router',
description: 'Vue.js 官方的路由管理器。'
},
'/ja/': {
lang: 'ja',
title: 'Vue Router',
description: 'Vue.js の公式ルータ'
}
},
serviceWorker: true,
theme: 'vue',
themeConfig: {
repo: 'vuejs/vue-router',
docsDir: 'docs',
locales: {
'/': {
label: 'English',
selectText: 'Languages',
editLinkText: 'Edit this page on GitHub',
nav: [
{
text: 'Guide',
link: '/guide/'
},
{
text: 'API Reference',
link: '/api/'
},
{
text: 'Release Notes',
link: 'https://github.com/vuejs/vue-router/releases'
}
],
sidebar: [
'/installation.md',
'/',
{
title: 'Essentials',
collapsable: false,
children: [
'/guide/',
'/guide/essentials/dynamic-matching.md',
'/guide/essentials/nested-routes.md',
'/guide/essentials/navigation.md',
'/guide/essentials/named-routes.md',
'/guide/essentials/named-views.md',
'/guide/essentials/redirect-and-alias.md',
'/guide/essentials/passing-props.md',
'/guide/essentials/history-mode.md'
]
},
{
title: 'Advanced',
collapsable: false,
children: [
'/guide/advanced/navigation-guards.md',
'/guide/advanced/meta.md',
'/guide/advanced/transitions.md',
'/guide/advanced/data-fetching.md',
'/guide/advanced/scroll-behavior.md',
'/guide/advanced/lazy-loading.md'
]
}
]
},
'/zh/': {
label: '简体中文',
selectText: '选择语言',
editLinkText: '在 GitHub 上编辑此页',
nav: [
{
text: '指南',
link: '/zh/guide/'
},
{
text: 'API 参考',
link: '/zh/api/'
},
{
text: '更新记录',
link: 'https://github.com/vuejs/vue-router/releases'
}
],
sidebar: [
'/zh/installation.md',
'/zh/',
{
title: '基础',
collapsable: false,
children: [
'/zh/guide/',
'/zh/guide/essentials/dynamic-matching.md',
'/zh/guide/essentials/nested-routes.md',
'/zh/guide/essentials/navigation.md',
'/zh/guide/essentials/named-routes.md',
'/zh/guide/essentials/named-views.md',
'/zh/guide/essentials/redirect-and-alias.md',
'/zh/guide/essentials/passing-props.md',
'/zh/guide/essentials/history-mode.md'
]
},
{
title: '进阶',
collapsable: false,
children: [
'/zh/guide/advanced/navigation-guards.md',
'/zh/guide/advanced/meta.md',
'/zh/guide/advanced/transitions.md',
'/zh/guide/advanced/data-fetching.md',
'/zh/guide/advanced/scroll-behavior.md',
'/zh/guide/advanced/lazy-loading.md'
]
}
]
},
'/ja/': {
label: '日本語',
selectText: '言語',
editLinkText: 'GitHub 上でこのページを編集する',
nav: [
{
text: 'ガイド',
link: '/ja/guide/'
},
{
text: 'API リファレンス',
link: '/ja/api/'
},
{
text: 'リリースノート',
link: 'https://github.com/vuejs/vue-router/releases'
}
],
sidebar: [
'/ja/installation.md',
'/ja/',
{
title: '基本的な使い方',
collapsable: false,
children: [
'/ja/guide/',
'/ja/guide/essentials/dynamic-matching.md',
'/ja/guide/essentials/nested-routes.md',
'/ja/guide/essentials/navigation.md',
'/ja/guide/essentials/named-routes.md',
'/ja/guide/essentials/named-views.md',
'/ja/guide/essentials/redirect-and-alias.md',
'/ja/guide/essentials/passing-props.md',
'/ja/guide/essentials/history-mode.md'
]
},
{
title: '高度な使い方',
collapsable: false,
children: [
'/ja/guide/advanced/navigation-guards.md',
'/ja/guide/advanced/meta.md',
'/ja/guide/advanced/transitions.md',
'/ja/guide/advanced/data-fetching.md',
'/ja/guide/advanced/scroll-behavior.md',
'/ja/guide/advanced/lazy-loading.md'
]
}
]
}
}
}
}