MDX
This documentation is for the preview version of the Dev Portal. If you are using the legacy developer portal, please refer to the docs.
Dev Portal supports MDX files for creating rich content pages. MDX is a markdown format that allows you to include JSX components in your markdown files.
Getting Started
To use MDX in your documentation, simply create files with the .mdx
extension instead of .md
. These files work exactly like regular markdown files but with all MDX features unlocked - you can write normal markdown content and add JSX components whenever needed.
Code
Custom Components
Dev Portal supports the use of custom components in your MDX files. This allows you to create reusable components that can be used across multiple pages.
You can create a custom component in your project and reference it in the Dev Portal Configuration file.
For example, create the <MyCustomComponent />
component in a file called MyCustomComponent.tsx
in the src
directory at the root of your project.
Code(tsx)
In Dev Portal Configuration you will need to import the component and add it to the customComponents
option in the configuration.
zudoku.config.ts(ts)