From 0446448c08c943b5d024db2bfbf03bdbe7fb896e Mon Sep 17 00:00:00 2001 From: Dmitry Filippov Date: Sun, 14 Jul 2024 19:15:24 +0200 Subject: [PATCH 1/3] fix:using-mdx.mdx fixing typo importing mdx not md Signed-off-by: Dmitry Filippov --- docs/docs/using-mdx.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/using-mdx.mdx b/docs/docs/using-mdx.mdx index 184dd7741..ea156f7f9 100644 --- a/docs/docs/using-mdx.mdx +++ b/docs/docs/using-mdx.mdx @@ -468,7 +468,7 @@ cumbersome. Like so: ```mdx path="post.mdx" -import License from './license.md' // Assumes an integration is used to compile MDX -> JS. +import License from './license.mdx' // Assumes an integration is used to compile MDX -> JS. import Contributing from './docs/contributing.mdx' # Hello world From a5d0f4477eb44d0b3f8503fab84396de6748ac66 Mon Sep 17 00:00:00 2001 From: Dmitry Filippov Date: Mon, 15 Jul 2024 20:56:06 +0200 Subject: [PATCH 2/3] Update using-mdx.mdx fixing additional examples in the docs to import mdx not md Signed-off-by: Dmitry Filippov --- docs/docs/using-mdx.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/using-mdx.mdx b/docs/docs/using-mdx.mdx index ea156f7f9..66249ad65 100644 --- a/docs/docs/using-mdx.mdx +++ b/docs/docs/using-mdx.mdx @@ -263,7 +263,7 @@ MDX using imported components! Because MDX files *are* components, they can also import each other: ```mdx path="example.mdx" -import License from './license.md' // Assumes an integration is used to compile MDX -> JS. +import License from './license.mdx' // Assumes an integration is used to compile MDX -> JS. import Contributing from './docs/contributing.mdx' # Hello world @@ -517,7 +517,7 @@ Set it up like so: Now you can remove the explicit and verbose component passing: ```diff - import License from './license.md' // Assumes an integration is used to compile MDX -> JS. + import License from './license.mdx' // Assumes an integration is used to compile MDX -> JS. import Contributing from './docs/contributing.mdx' # Hello world From e5d01a0712f49bf7ce48e9c678e7fe1c1b433bf0 Mon Sep 17 00:00:00 2001 From: Titus Date: Tue, 16 Jul 2024 11:22:32 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Signed-off-by: Titus --- docs/docs/using-mdx.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/using-mdx.mdx b/docs/docs/using-mdx.mdx index 66249ad65..40f89dfcb 100644 --- a/docs/docs/using-mdx.mdx +++ b/docs/docs/using-mdx.mdx @@ -263,7 +263,7 @@ MDX using imported components! Because MDX files *are* components, they can also import each other: ```mdx path="example.mdx" -import License from './license.mdx' // Assumes an integration is used to compile MDX -> JS. +import License from './license.md' // Assumes an integration is used to compile markdown -> JS. import Contributing from './docs/contributing.mdx' # Hello world @@ -468,7 +468,7 @@ cumbersome. Like so: ```mdx path="post.mdx" -import License from './license.mdx' // Assumes an integration is used to compile MDX -> JS. +import License from './license.md' // Assumes an integration is used to compile markdown -> JS. import Contributing from './docs/contributing.mdx' # Hello world @@ -517,7 +517,7 @@ Set it up like so: Now you can remove the explicit and verbose component passing: ```diff - import License from './license.mdx' // Assumes an integration is used to compile MDX -> JS. + import License from './license.md' // Assumes an integration is used to compile markdown -> JS. import Contributing from './docs/contributing.mdx' # Hello world