Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using multiple docs plugins, if the path is a prefix of the path of another plugin it will cause errors #4102

Closed
vjpr opened this issue Jan 25, 2021 · 1 comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@vjpr
Copy link

vjpr commented Jan 25, 2021

Solution is to add a trailing slash to the include rule here:

include: flatten(versionsMetadata.map(getDocsDirPaths)),

This caused me the error outlined here: #4101

E.g.

If you have a plugin with path: clis/cli and then a path: clis/cli-foo, the first plugin will attempt to process the second plugins mdx files and it will mess with the mdx metadata code. See #4101.

{ include: 'clis/cli' }

{ include: 'clis/cli-foo' }
@vjpr vjpr added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Jan 25, 2021
@slorber
Copy link
Collaborator

slorber commented Jan 27, 2021

Thanks, this has been fixed already by #3970

Will be in next release

@slorber slorber closed this as completed Jan 27, 2021
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

No branches or pull requests

3 participants