From 89035d0f28c09c076629fba14c9f304c141d3e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Sat, 2 Jul 2022 13:15:54 +0200 Subject: [PATCH] docs: include the current version on nav (#895) --- docs/.vitepress/config.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 94315e62..64dd74f4 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -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' + }, + ], + }, ] }