Sets the edit this page url to be static as it was before we generated versioned docs

Signed-off-by: Peter Macdonald <macdonald.peter90@gmail.com>
This commit is contained in:
Peter Macdonald
2024-09-18 11:20:50 +02:00
parent d0a007356b
commit f2a589777e
+4 -1
View File
@@ -84,7 +84,10 @@ const config: Config = {
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
editUrl: 'https://github.com/backstage/backstage/edit/master/docs/',
editUrl: ({ docPath }) => {
// Always point to the non-versioned directory when editing a doc page
return `https://github.com/backstage/backstage/edit/master/docs/${docPath}`;
},
path: '../docs',
sidebarPath: 'sidebars.js',
...(useVersionedDocs