-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Rendering readmes breaks with Docusaurus 2.2.0 #76
Comments
Yes, we have multiple sites set up this way and I was debugging the exact same issue today with one of them. |
Thanks for the report, will look into tonight! |
Published, let me know if it doesn't work. |
Perfect, works like a charm, thanks! |
Fab, thanks @milesj! Have a coffee on me ☕ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @milesj!
It looks like
docusaurus-plugin-typedoc-api
doesn't work with Docusaurus 2.2.0 whenreadmes
are set totrue
.Running Docusaurus results with the below error, even though I'm not using Mermaid:
When
readmes
are set tofalse
the website starts up correctly.Steps to reproduce
You should be able to see the same error in
boost
after upgrading all the Docusaurus modules to 2.2.0 and enablingreadmes
.Root cause
I'm not sure what the exact root cause is, but here's what I found out so far:
markdown.mermaid
that@docusaurus/mdx-loader
assumes is availabledocusaurus-plugin-typedoc-api
markdownLoader
, the loading process blows up asreqOptions.markdownConfig
isundefined
, and thereforereqOptions.markdownConfig.mermaid
is an invalid reference.Interestingly enough, all the other
.md
and.mdx
files are processed correctly and it's only thereadmes
that break it.This leads me to believe that in order to be compatible with Docusaurus 2.2.0,
docusaurus-plugin-typedoc-api
needs to somehow populate the default configuration values formarkdownConfig
.Unfortunately, I'm not sure where this would need to be done.
Adding
{markdown:{mermaid:false}}
todocusaurus.config.js
did not resolve the issue, so I'm not sure how the config object passed to the loader is determined 😕The text was updated successfully, but these errors were encountered: