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

Support version shortcodes #57

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Support version shortcodes #57

merged 2 commits into from
Dec 18, 2024

Conversation

davidjgoss
Copy link
Contributor

For polyglot text we added the <Term/> component for use in MDX, which is the paved-road way to do that in Docusaurus.

This approach falls down with the "version" shortcodes - where we have a Renovate-managed file of latest versions and swap them into docs - because they tend to be needed in code fences, and you can't use MDX components there.

This PR adds a rehype plugin to find-and-replace shortcodes as part of the Markdown -> HTML processing pipeline. It's not pretty, but it does work.

Copy link

netlify bot commented Dec 18, 2024

Deploy Preview for cucumber-website-preview ready!

Name Link
🔨 Latest commit 915f896
🔍 Latest deploy log https://app.netlify.com/sites/cucumber-website-preview/deploys/6762de5ba80c020008b457b0
😎 Deploy Preview https://deploy-preview-57--cucumber-website-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@davidjgoss davidjgoss marked this pull request as ready for review December 18, 2024 14:46
@davidjgoss davidjgoss merged commit caac4a6 into main Dec 18, 2024
5 checks passed
@davidjgoss davidjgoss deleted the version-strings branch December 18, 2024 14:46
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 this pull request may close these issues.

1 participant