Skip to content

Commit f74a6ec

Browse files
committed
docs: add version navigation
1 parent 5a15b1a commit f74a6ec

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

packages/docs/docs/.vuepress/nav/en.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ module.exports = [
5656
{
5757
text: 'Resources',
5858
items: [
59-
{
60-
text: '0.x Docs',
61-
link: 'https://v0.vuepress.vuejs.org/'
62-
},
6359
{
6460
text: 'Migrate from 0.x',
6561
link: '/miscellaneous/migration-guide.html'
@@ -71,5 +67,18 @@ module.exports = [
7167
]
7268
}
7369
]
70+
},
71+
{
72+
text: 'v1.x',
73+
items: [
74+
{
75+
text: 'v2.x',
76+
link: 'https://v2.vuepress.vuejs.org'
77+
},
78+
{
79+
text: 'v0.x',
80+
link: 'https://v0.vuepress.vuejs.org'
81+
}
82+
]
7483
}
7584
]

packages/docs/docs/.vuepress/nav/zh.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,16 @@ module.exports = [
6969
]
7070
},
7171
{
72-
text: '0.x',
73-
link: 'https://v0.vuepress.vuejs.org/'
72+
text: 'v1.x',
73+
items: [
74+
{
75+
text: 'v2.x',
76+
link: 'https://v2.vuepress.vuejs.org/zh/'
77+
},
78+
{
79+
text: 'v0.x',
80+
link: 'https://v0.vuepress.vuejs.org/zh/'
81+
}
82+
]
7483
}
7584
]

0 commit comments

Comments
 (0)