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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user