Skip to content

Commit 2a91153

Browse files
Jinjiangyyx990803
authored andcommitted
[docs] using vuepress (vuejs#1277)
1 parent d1a1d01 commit 2a91153

File tree

164 files changed

+8314
-3052
lines changed

Some content is hidden

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

164 files changed

+8314
-3052
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
node_modules
33
TODO.md
44
lib
5-
docs/_book
5+
docs/.vuepress/dist
66
examples/**/build.js
77
types/typings
88
types/test/*.js
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/.vuepress/_redirects

Whitespace-only changes.

docs/.vuepress/config.js

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
module.exports = {
2+
locales: {
3+
'/': {
4+
lang: 'en-US',
5+
title: 'Vuex',
6+
description: 'Centralized State Management for Vue.js'
7+
},
8+
'/zh/': {
9+
lang: 'zh-CN',
10+
title: 'Vuex',
11+
description: 'Vue.js 的中心化状态管理方案'
12+
}
13+
},
14+
serviceWorker: true,
15+
theme: 'vue',
16+
themeConfig: {
17+
repo: 'vuejs/vuex',
18+
docsDir: 'docs',
19+
locales: {
20+
'/': {
21+
label: 'English',
22+
selectText: 'Languages',
23+
editLinkText: 'Edit this page on GitHub',
24+
nav: [
25+
{
26+
text: 'Getting Started',
27+
link: '/getting-started'
28+
},
29+
{
30+
text: 'API Reference',
31+
link: '/api'
32+
},
33+
{
34+
text: 'Release Notes',
35+
link: 'https://github.com/vuejs/vuex/releases'
36+
}
37+
],
38+
sidebar: [
39+
'/installation',
40+
'/',
41+
'/getting-started',
42+
{
43+
title: 'Core Concepts',
44+
collapsable: false,
45+
children: [
46+
'/state',
47+
'/getters',
48+
'/mutations',
49+
'/actions',
50+
'/modules'
51+
]
52+
},
53+
'/structure',
54+
'/plugins',
55+
'/strict',
56+
'/forms',
57+
'/testing',
58+
'/hot-reload'
59+
]
60+
},
61+
'/zh/': {
62+
label: '简体中文',
63+
selectText: '选择语言',
64+
editLinkText: '在 GitHub 上编辑此页',
65+
nav: [
66+
{
67+
text: '指南',
68+
link: '/zh/getting-started'
69+
},
70+
{
71+
text: 'API 参考',
72+
link: '/zh/api'
73+
},
74+
{
75+
text: '更新记录',
76+
link: 'https://github.com/vuejs/vuex/releases'
77+
}
78+
],
79+
sidebar: [
80+
'/zh/installation',
81+
'/zh/',
82+
'/zh/getting-started',
83+
{
84+
title: '核心概念',
85+
collapsable: false,
86+
children: [
87+
'/zh/state',
88+
'/zh/getters',
89+
'/zh/mutations',
90+
'/zh/actions',
91+
'/zh/modules'
92+
]
93+
},
94+
'/zh/structure',
95+
'/zh/plugins',
96+
'/zh/strict',
97+
'/zh/forms',
98+
'/zh/testing',
99+
'/zh/hot-reload'
100+
]
101+
}
102+
}
103+
}
104+
}
File renamed without changes.
File renamed without changes.

docs/en/intro.md docs/README.md

+2-2

docs/en/actions.md docs/actions.md

docs/api.md

+263

0 commit comments

Comments
 (0)