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

[docs][i18n] Figure out what to do with remaining relative MDX imports #20795

Closed
tesseralis opened this issue Jan 22, 2020 · 1 comment · Fixed by #23209
Closed

[docs][i18n] Figure out what to do with remaining relative MDX imports #20795

tesseralis opened this issue Jan 22, 2020 · 1 comment · Fixed by #23209

Comments

@tesseralis
Copy link
Contributor

tesseralis commented Jan 22, 2020

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:

For now, we can just exclude those files from being pulled in, and in the worst case scenario, just add them globally as well.

@tesseralis
Copy link
Contributor Author

tesseralis commented Mar 9, 2020

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants