Skip to main content

Support versioned and non-versioned docs

You may have a use-case where some part of your documentation is non-versioned and another part is versioned. Docusaurus supports multi-instance docs since the docs functionality is a plugin itself and can be re-used multiple times.

docusaurus.config.js
module.exports = {
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
// id: 'product', // omitted => default instance
path: "product",
routeBasePath: "product",
sidebarPath: require.resolve("./sidebarsProduct.js"),
// ... other options
},
},
],
],
plugins: [
[
"@docusaurus/plugin-content-docs",
{
id: "community",
path: "community",
routeBasePath: "community",
sidebarPath: require.resolve("./sidebarsCommunity.js"),
// ... other options
},
],
],
};

Up-to-date documentation on how to set this up can be found on Docusaurus' documentation.