It doesn't seem to be possible to specify a "base path" for items listed under a category. This results in a lot of duplication of paths when sidebar categories are nested more than 1 layer deep.
Is it possible to add a 'basePath' property to the SidebarItemCategory type that would prefix any items sidebar items listed?
Current
sidebars.js
SidebarItemCategory:
{
type: 'category',
label: 'Testing',
items: [
'apps/testing/trace-logs',
'apps/testing/trace-sql',
]
},
Proposed SidebarItemCategory:
{
type: 'category',
label: 'Testing',
basePath: 'apps/testing/'
items: [
'trace-logs',
'trace-sql',
]
},
This would make managing the
sidebar.js
much easier when there are a lot of entries with nested paths.