You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, I'm trying to use mdxts to document a new hook and component I'm working on, and got kind of stumped on how the Examples component is supposed to work.
Examples can be rendered in MDX using the Example component. This component takes a source prop, which is the name of the example file or code block in any of the locations examples can exist.
I'm a little unclear about what this Example component does, and if it exists yet? I've tried to render it in an MDX file, and I get a message about it not existing. Looking at the project source code, it doesn't look like an Example component is provided either in mdxts/components or in the MDXContent component.
The text was updated successfully, but these errors were encountered:
Ah, this was leftover documentation from early on that I missed. I just pushed a commit to remove the irrelevant parts. I plan to add the Example component back at some point, just needed to trim scope for now.
If you have a simple example, you can import the component directly and render it. Or if you want to use the example metadata the MDXTS site examples page is a good resource for how it can be used.
It sounds like you could get away with something simpler though and might only need ExportedTypes which helps for type documentation. There might be some kinks in the generated type docs still so please let me know if you run into anything if you decide to try it and I can take a look.
Hey there, I'm trying to use mdxts to document a new hook and component I'm working on, and got kind of stumped on how the
Examples
component is supposed to work.https://www.mdxts.dev/docs/examples/rendering
I'm a little unclear about what this Example component does, and if it exists yet? I've tried to render it in an MDX file, and I get a message about it not existing. Looking at the project source code, it doesn't look like an Example component is provided either in
mdxts/components
or in theMDXContent
component.The text was updated successfully, but these errors were encountered: