microsite: add versioned docs config

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-08-29 14:30:42 +02:00
parent 7310b97bd4
commit 5d05ab03d0
4 changed files with 58 additions and 37 deletions
+20
View File
@@ -57,6 +57,22 @@ const config: Config = {
editUrl: 'https://github.com/backstage/backstage/edit/master/docs/',
path: '../docs',
sidebarPath: 'sidebars.json',
includeCurrentVersion: true,
lastVersion: 'stable',
versions: {
stable: {
label: 'Stable',
path: '/',
banner: 'none',
badge: false,
},
current: {
label: 'Next',
path: '/next',
banner: 'unreleased',
badge: true,
},
},
},
blog: {
path: 'blog',
@@ -259,6 +275,10 @@ const config: Config = {
label: 'Community',
position: 'left',
},
{
type: 'docsVersionDropdown',
position: 'right',
},
],
},
image: 'img/sharing-opengraph.png',