Creating a Custom Snippet
All snippets must be created in thesnippets directory.
Files in the
snippets directory are treated as snippets and won’t be rendered as standalone pages.Basic Usage
- Create a snippet file with your reusable content:
snippets/my-snippet.mdx
- Import and use the snippet in your documentation:
destination-file.mdx
Using Variables
You can also create reusable variables:snippets/variables.mdx
destination-file.mdx