From 160bc8ad941c993c16adf1543afc6ccba0b597c8 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Mon, 8 Jul 2024 12:51:26 +0200 Subject: [PATCH] docs: add links to other versions --- docs/.vitepress/config.ts | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index abb549416..44055099f 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -100,12 +100,36 @@ export default withPwa(defineConfig({ text: `v${version}`, items: [ { - text: 'Release Notes ', - link: releases, + items: [ + { + text: `v${version}`, + link: `https://github.com/vitest-dev/vitest/releases/tag/v${version}`, + }, + { + text: 'Releases Notes', + link: releases, + }, + { + text: 'Contributing ', + link: contributing, + }, + ], }, { - text: 'Contributing ', - link: contributing, + items: [ + { + text: 'unreleased', + link: 'https://main.vitest.dev/', + }, + { + text: 'v1.x', + link: 'https://v1.vitest.dev/', + }, + { + text: 'v2.x', + link: 'https://vitest.dev/', + }, + ], }, ], }, -- 2.51.2