docs(v2): add link to master docs (#2506)

This commit is contained in:
Yangshun Tay 2020-04-02 14:45:10 +08:00 committed by GitHub
parent f51b56460e
commit 2a2824e976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,12 +98,15 @@ module.exports = {
label: versions[0],
to: 'docs/introduction',
},
].concat(
versions.slice(1).map(version => ({
...versions.slice(1).map(version => ({
label: version,
to: `docs/${version}/introduction`,
})),
),
{
label: 'Master/Unreleased',
to: 'docs/next/introduction',
},
],
},
{to: 'blog', label: 'Blog', position: 'left'},
{to: 'showcase', label: 'Showcase', position: 'left'},