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

fix: add admonitions support to mdx partials loaded through the fallback mdx loader #5339

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Aug 11, 2021

Motivation

Fix #5333

Note it's a good-enough solution but not ideal because the admonition config is static and can't be disabled (unlike content plugins): we'll expose a global way to configure markdown/mdx for the whole docusaurus site later

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

Not automated but works locally on the changelog page:

image

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Aug 11, 2021
@slorber slorber requested a review from lex111 as a code owner August 11, 2021 14:20
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 11, 2021
@netlify
Copy link

netlify bot commented Aug 11, 2021

✔️ [V2]

🔨 Explore the source changes: 9d3f740

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/6113dc99faed620008d4256d

😎 Browse the preview: https://deploy-preview-5339--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 94
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5339--docusaurus-2.netlify.app/

@github-actions
Copy link

Size Change: 0 B

Total Size: 793 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 36.2 kB
website/build/assets/css/styles.********.css 93.1 kB
website/build/assets/js/main.********.js 403 kB
website/build/blog/2017/12/14/introducing-docusaurus/index.html 64.2 kB
website/build/blog/index.html 33.1 kB
website/build/docs/index.html 41.9 kB
website/build/docs/installation/index.html 49.6 kB
website/build/index.html 28.7 kB
website/build/tests/docs/index.html 22.5 kB
website/build/tests/docs/standalone/index.html 20.5 kB

compressed-size-action

@slorber slorber merged commit 1f8fa5e into master Aug 11, 2021
@slorber slorber deleted the slorber/mdx-loader-fallback-admonitions branch August 11, 2021 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admonitions in partials outside the docs directory are rendered as plain text
2 participants