feat(docs): include the current version on nav

pull/895/head
Joaquín Sánchez Jiménez 3 years ago
parent fcd7642924
commit 77c6b44d9f

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

@ -1,5 +1,9 @@
# Prev Next Link # Prev Next Link
:::warning
This feature is currently work in progress
:::
Prev or Next Link allows you to add buttons at the end of each page that allow you to go to the previous or next topic. To enable it, add `themeConfig.prev` or `themeConfig.next` to your configuration. Prev or Next Link allows you to add buttons at the end of each page that allow you to go to the previous or next topic. To enable it, add `themeConfig.prev` or `themeConfig.next` to your configuration.

Loading…
Cancel
Save