Skip to content

Conversation

colebemis
Copy link
Contributor

Summary

Doctocat provides a few React components that are globally available in all .md and .mdx files (no import required). This PR makes it possible for consumers to add their own custom components to this list of globally available components.

Impact

This will allow us to use the Props and ComponentChecklist components in the Primer React docs without importing them in every markdown file.

@changeset-bot
Copy link

changeset-bot bot commented Nov 19, 2021

🦋 Changeset detected

Latest commit: 412126c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/gatsby-theme-doctocat Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 19, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

doctocat – ./

🔍 Inspect: https://vercel.com/primer/doctocat/DFqDwCEVkF7cSAfBiM2zKnYjJUff
✅ Preview: https://doctocat-git-custom-mdx-components-primer.vercel.app

gatsby-theme-primer-example – ./

🔍 Inspect: https://vercel.com/primer/gatsby-theme-primer-example/9C9agfEpN6fZX3bKStGXaAgb39La
✅ Preview: https://gatsby-theme-primer-example-git-custom-mdx-components-primer.vercel.app

@colebemis colebemis merged commit a94e0a9 into main Nov 19, 2021
@colebemis colebemis deleted the custom-mdx-components branch November 19, 2021 20:35
@github-actions github-actions bot mentioned this pull request Nov 19, 2021
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.

2 participants