Looks like docsUrl is no longer supported in v2. Would love to be able to have more control over how these pages are presented.
My use-case: I have two top level areas called Guides and Docs within my sidebars. I would like to have the urls be my-site.com/docs and my-site.com/guides - right now each have to be pre-pended with docs/docs/ or docs/guides/.
it is supported in docs config field routeBasePath
// docusaurus.config.js
module.exports = {
// ...
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
},
},
],
],
};
Yeah what @wgao19 said. See the migration guide here - https://v2.docusaurus.io/docs/migrating-from-v1-to-v2#customdocspath-docsurl-editurl-enableupdateby-enableupdatetime
Most helpful comment
it is supported in docs config field
routeBasePath