From 48cf054ea66f16aef4ed34fd658a2c9bd0431a06 Mon Sep 17 00:00:00 2001 From: Kyle Gill Date: Wed, 26 Feb 2020 16:10:00 -0700 Subject: [PATCH] add egghead embeds for new mdx screencasts --- docs/docs/mdx/getting-started.md | 5 +++++ docs/docs/mdx/importing-and-using-components.md | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/docs/docs/mdx/getting-started.md b/docs/docs/mdx/getting-started.md index d3b524ac74aeb..f5c7a3d6dd77c 100644 --- a/docs/docs/mdx/getting-started.md +++ b/docs/docs/mdx/getting-started.md @@ -60,6 +60,11 @@ Alternatively, you may be looking to configure an existing blog site to use MDX. > `tableOfContents` and you haven't previously added a `gatsby-source-filesystem` > pointing at `src/pages` in your project, you'll want to add one now. + + ## What's next? Go check out the [writing MDX guide](/docs/mdx/writing-pages) to find out what else you can do diff --git a/docs/docs/mdx/importing-and-using-components.md b/docs/docs/mdx/importing-and-using-components.md index aa39db9c3a895..4c5da4ae113f7 100644 --- a/docs/docs/mdx/importing-and-using-components.md +++ b/docs/docs/mdx/importing-and-using-components.md @@ -24,6 +24,11 @@ You can import your own components. **Note**: steps for importing custom components or MDX documents from a relative location in your project are also covered in the [Writing Pages in MDX guide](/docs/mdx/writing-pages/). + + ## Make components available globally as shortcodes To avoid having to import the same component inside of every MDX document you author, you can add components to an `MDXProvider` to make them globally available in MDX pages. This pattern is sometimes referred to as shortcodes. @@ -62,3 +67,8 @@ The Chart is also available since it was passed into the MDXProvider: ``` Because the `` and `` components were passed into the provider, they are available for use in all MDX documents. + +