Can I use the MDX files generated as components and import those in src/pages? #376
-
Hello Community! Hopefully this happens to somebody else before :) What I am trying to do is treat the MDX files generated after running this plugin ( Please would somebody point me at the right direction of what am I missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @santiagoejm, the generated MDX would need to be wrapped in either |
Beta Was this translation helpful? Give feedback.
-
Good morning,
Is it possible you have the wrong Daniel for this?
Cheers,
…On Thu, Jan 12, 2023 at 9:35 AM Steven Serrata ***@***.***> wrote:
Hi @santiagoejm <https://github.com/santiagoejm>, the generated MDX would
need to be wrapped in either DocItem or ApiItem to include the necessary
providers. That said, if you wrap using ApiItem it will expect to receive
props for the ApiDemoPanel portion, which are normally passed via the api
frontmatter key.
—
Reply to this email directly, view it on GitHub
<#376 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMQU2LC4LLRYE2HBOU3ZJQTWSAJC5ANCNFSM6AAAAAATLJ4P3U>
.
You are receiving this because you were mentioned.Message ID:
<PaloAltoNetworks/docusaurus-openapi-docs/repo-discussions/376/comments/4668282
@github.com>
|
Beta Was this translation helpful? Give feedback.
Hi @santiagoejm, the generated MDX would need to be wrapped in either
DocItem
orApiItem
to include the necessary providers. That said, if you wrap usingApiItem
it will expect to receive props for theApiDemoPanel
portion, which are normally passed via theapi
frontmatter key.