[V2] Configure multiple docs
See original GitHub issue❓ Questions and Help
Is it possible to configure multiple documentation routes?
My motivation is that I need a doc route for ‘Guidelines’, another for ‘API Documentation’ and so on.
I’m trying to configure multiple @docusaurus/plugin-content-docs plugins but this error occur:
Identifier 'React' has already been declared (21:133)
My config:
{
...
presets: [
[
'@docusaurus/preset-classic',
{
blog: {...},
theme: {...},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
},
},
],
],
plugins: [
['@docusaurus/plugin-content-docs', {
path: 'docs2',
routeBasePath: 'docs2',
sidebarPath: require.resolve('./sidebars2.js'),
}],
],
...
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Configuration File V2 - Read the Docs
Read the Docs supports configuring your documentation builds with a YAML file. The configuration file must be in the root directory of your...
Read more >Working with multiple Documents | Royal Apps
In short, you can have multiple files open at the same time, ... With Royal TS V2 we've also streamlined the way you...
Read more >Generate multiple different documents at once with one ...
Generate multiple different documents at once with one Google Form · 1. Copy the predefined templates · 2. Configure Form Publisher on the...
Read more >Configuring the AWS SDK for Go V2
In the AWS SDK for Go V2, you can configure common settings for service clients, such as the logger, log level, and retry...
Read more >How to: Share multiple files in Google Drive - YouTube
Share multiple files in Google DriveLearn More → https://goo.gle/3PDoWLQTry Google Drive for yourself → https://goo.gle/3vtlf2b What is ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@jwitz In my case it was because the docs were actually included two times. Make sure the path of your second docs plugin config does not point to a subdirectory of the docs folder.
Or try deactivating the preset docs plugin and configure everything manually:
@rayronvictor I know this was ages ago, but do you remember how you ended up fixing this? I don’t see anything related on the linked doc, and now I’m running into the same problem even as I follow these steps exactly: https://docusaurus.io/docs/docs-multi-instance