From ec2bda6bdae1ead9d664f931edde2530059b392c Mon Sep 17 00:00:00 2001 From: mohrash92 Date: Sat, 11 Apr 2020 19:12:55 +0100 Subject: [PATCH 1/2] fix typo and path for shortcodes --- docs/advanced/components.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/advanced/components.mdx b/docs/advanced/components.mdx index 6b100a54e..000c6ff1e 100644 --- a/docs/advanced/components.mdx +++ b/docs/advanced/components.mdx @@ -55,10 +55,10 @@ and then passed to the wrapper. This allows for the wrapper to use those props automatically for handling things like adding an author bio to the wrapped document. -## `makeShortcodes` +## `makeShortcode` -There is one other function added to the compiled output: `makeShortcodes`. -This is added for [shortcode support](/blog/shortcodes). It’s used in order +There is one other function added to the compiled output: `makeShortcode`. +This is added for [shortcode support](/docs/blog/shortcodes.mdx). It’s used in order to stub any components that aren’t directly imported so that there won’t be any `ReferenceError`s. If they’re passed to the `MDXProvider`, the custom JSX pragma will pull the component from context and use that in place of the From c1c64796d70df9c426a03b242c47b039cde63702 Mon Sep 17 00:00:00 2001 From: John Otander Date: Mon, 13 Apr 2020 07:45:26 -0600 Subject: [PATCH 2/2] Update docs/advanced/components.mdx --- docs/advanced/components.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/components.mdx b/docs/advanced/components.mdx index 000c6ff1e..a6f475919 100644 --- a/docs/advanced/components.mdx +++ b/docs/advanced/components.mdx @@ -58,7 +58,7 @@ bio to the wrapped document. ## `makeShortcode` There is one other function added to the compiled output: `makeShortcode`. -This is added for [shortcode support](/docs/blog/shortcodes.mdx). It’s used in order +This is added for [shortcode support](/blog/shortcodes). It’s used in order to stub any components that aren’t directly imported so that there won’t be any `ReferenceError`s. If they’re passed to the `MDXProvider`, the custom JSX pragma will pull the component from context and use that in place of the