Skip to content

Commit

Permalink
docs: add version navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jun 11, 2021
1 parent 5a15b1a commit f74a6ec
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
17 changes: 13 additions & 4 deletions packages/docs/docs/.vuepress/nav/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ module.exports = [
{
text: 'Resources',
items: [
{
text: '0.x Docs',
link: 'https://v0.vuepress.vuejs.org/'
},
{
text: 'Migrate from 0.x',
link: '/miscellaneous/migration-guide.html'
Expand All @@ -71,5 +67,18 @@ module.exports = [
]
}
]
},
{
text: 'v1.x',
items: [
{
text: 'v2.x',
link: 'https://v2.vuepress.vuejs.org'
},
{
text: 'v0.x',
link: 'https://v0.vuepress.vuejs.org'
}
]
}
]
13 changes: 11 additions & 2 deletions packages/docs/docs/.vuepress/nav/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,16 @@ module.exports = [
]
},
{
text: '0.x',
link: 'https://v0.vuepress.vuejs.org/'
text: 'v1.x',
items: [
{
text: 'v2.x',
link: 'https://v2.vuepress.vuejs.org/zh/'
},
{
text: 'v0.x',
link: 'https://v0.vuepress.vuejs.org/zh/'
}
]
}
]

0 comments on commit f74a6ec

Please sign in to comment.