Docusaurus: allow docsUrl in v2

Created on 7 Jan 2020  路  2Comments  路  Source: facebook/docusaurus

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/.

feature

Most helpful comment

it is supported in docs config field routeBasePath

// docusaurus.config.js
module.exports = {
  // ...
  presets: [
    [
      '@docusaurus/preset-classic',
      {
        docs: {
          routeBasePath: '/',
        },
      },
    ],
  ],
};

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NikitaIT picture NikitaIT  路  3Comments

muuvmuuv picture muuvmuuv  路  3Comments

rickyvetter picture rickyvetter  路  3Comments

omry picture omry  路  3Comments

JoelMarcey picture JoelMarcey  路  3Comments