docs: include the current version on nav (#895)

pull/897/head
Joaquín Sánchez 3 years ago committed by GitHub
parent e1339fdc4f
commit 89035d0f28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,7 @@
import { defineConfig } from '../../src/node'
import { version } from '../../package.json'
export default defineConfig({
lang: 'en-US',
title: 'VitePress',
@ -47,9 +49,14 @@ function nav() {
{ text: 'Guide', link: '/guide/what-is-vitepress', activeMatch: '/guide/' },
{ text: 'Configs', link: '/config/introduction', activeMatch: '/config/' },
{
text: 'Changelog',
link: 'https://github.com/vuejs/vitepress/blob/main/CHANGELOG.md'
}
text: version,
items: [
{
text: 'Changelog',
link: 'https://github.com/vuejs/vitepress/blob/main/CHANGELOG.md'
},
],
},
]
}

Loading…
Cancel
Save