-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[docs][i18n] Figure out what to do with remaining relative MDX imports #20795
Comments
Interesting to note: Docusaurus V2 also runs into this same problem with regard to versioning. Relative links in MDX don't work on versioned docs because they're in a different relative directory (much like translated docs). Their solution to this is to use an alias. This seems like it might be a potential solution? While using path aliases in general can lead to havok, this would be a pretty limited use case for them (only used to reference www components from the docs). |
Description
Follow-up of #20685
Now that the major components have been taken care of, there are still some pages that use one-off components that require relative imports:
graphql-api.md: UsesAPIReference
andGraphqlApiQuery
to pull in API references.docs-and-website-components: Pulls inBreadcrumb
andTableOfContents
to show them as examples (even though these components aren't intended to be used in MDX docs)blog/100-days.md: Uses a custom<EmailCaptureForm100Days/>
component that really should just be the normal email capture form.For now, we can just exclude those files from being pulled in, and in the worst case scenario, just add them globally as well.
The text was updated successfully, but these errors were encountered: