MDX Syntax Reference
Copy examples for headings, images, code blocks, callouts, and steps
Markdown is enough for most guides. Use the components below when they make an action easier to follow. You can copy them into a documentation file without adding imports.
Keep pnpm dev running, save, and open the page to check the result. See Publish Documentation to create a page.
Headings, Lists, and Links
## Get Started
Prepare your **product name** and a screenshot.
1. Open the configuration file.
2. Replace the example content.
3. Save and preview.
Continue with the [Quick Start](/docs/introduction/quick-start).The title field at the top of the file supplies the page title. Start the body with ## headings. Use /zh/... for internal links in Chinese guides.
Images
Put the image in public/ and omit public from its URL:
Replace the path and description with your own. Documentation images support click-to-zoom.
Code Blocks
Add a language for syntax highlighting. Use title to show where the reader should work:
```bash title="Terminal"
pnpm dev
```For configuration examples, use the actual filename, such as title=".env.production".
Callouts
<Callout type="info" title="Check the result">
Refresh the page and confirm that the product name has changed.
</Callout>Check the result
Refresh the page and confirm that the product name has changed.
Use info, warn, or error for type. Callouts work well for information readers need at a particular step.
Tabs
Use Tabs and Tab to present different ways to complete a task. The labels and value fields must match:
<Tabs items={["Local", "Production"]}>
<Tab value="Local">
Save and refresh the local page.
</Tab>
<Tab value="Production">
Rebuild and deploy to publish the change.
</Tab>
</Tabs>Steps
<Steps>
<Step>
### Open the File
Find the configuration file named in the guide.
</Step>
<Step>
### Save and Check
Save the change and refresh the page.
</Step>
</Steps>A numbered list is enough for a short workflow.
Related Guide Cards
<Cards>
<Card title="Quick Start" href="/docs/introduction/quick-start">
Run the project locally.
</Card>
<Card title="Customize the Homepage" href="/docs/customize/landing">
Add your product copy and screenshots.
</Card>
</Cards>Optional Details
Put extra information in an accordion and keep required steps visible:
<Accordions>
<Accordion title="My change does not appear">
Refresh the page. Restart the development server if you changed
an environment variable.
</Accordion>
</Accordions>For other components, check Fumadocs and confirm they are available in src/shared/components/docs/mdx-components.tsx. These examples are for documentation; blogs and changelogs may have different components available.