Have you read the Contributing Guidelines on issues?
Prerequisites
Description
Hello.
I am building a multi-instance Docusaurus site.
I have a couple of products that i want to display using different Docusaurus/plugin-content-docs.
Everything works fine until i try to setup versioning.
I can setup versioning for each of my products, but when i add the dropdown in the navbar for the two products i can see all of them in all the pages.
What i want is to not to have any versioning in the landing page and have specific version dropdown in my product pages.
Tried this setup i found on Internet but without success:
{
type: 'docsVersionDropdown',
docsPluginId: 'product-a',
position: 'right',
dropdownActiveClassDisabled: true, // don't highlight outside /product-a/*
},
{
type: 'docsVersionDropdown',
docsPluginId: 'product-b',
position: 'right',
dropdownActiveClassDisabled: true,
},
Is this even possible?
Thank you.
Reproducible demo
No response
Steps to reproduce
Create a Docusaurus site.
Follow multi-instance documentation to setup two products docs that are using different docs-plugin.
Create a new version for each of the products.
Add version drop-down and set it not to display only on product docs pages.
Expected behavior
Version dropdown for a product only appears on that product docs pages.
Actual behavior
Both version dropdown appear on all pages.
Your environment
- Public source code:
- Public site URL:
- Docusaurus version used:
- Environment name and version (e.g. Chrome 89, Node.js 16.4):
- Operating system and version (e.g. Ubuntu 20.04.2 LTS):
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
Hello.
I am building a multi-instance Docusaurus site.
I have a couple of products that i want to display using different Docusaurus/plugin-content-docs.
Everything works fine until i try to setup versioning.
I can setup versioning for each of my products, but when i add the dropdown in the navbar for the two products i can see all of them in all the pages.
What i want is to not to have any versioning in the landing page and have specific version dropdown in my product pages.
Tried this setup i found on Internet but without success:
{
type: 'docsVersionDropdown',
docsPluginId: 'product-a',
position: 'right',
dropdownActiveClassDisabled: true, // don't highlight outside /product-a/*
},
{
type: 'docsVersionDropdown',
docsPluginId: 'product-b',
position: 'right',
dropdownActiveClassDisabled: true,
},
Is this even possible?
Thank you.
Reproducible demo
No response
Steps to reproduce
Create a Docusaurus site.
Follow multi-instance documentation to setup two products docs that are using different docs-plugin.
Create a new version for each of the products.
Add version drop-down and set it not to display only on product docs pages.
Expected behavior
Version dropdown for a product only appears on that product docs pages.
Actual behavior
Both version dropdown appear on all pages.
Your environment
Self-service