Write content
Create documentation pages using MDX
Documentation pages are written in MDX, which combines Markdown with React components. Create .mdx files in the docs/pages/ directory and reference them in your docs.yml navigation.
Quick example
Here’s a minimal page with frontmatter and Markdown content:
docs/pages/my-page.mdx
Using components
Fern provides built-in components for common documentation patterns. Each example below shows the rendered component followed by the MDX that produces it.
Callouts
Use callouts to highlight important information.
Highlight important information with callouts.
my-page.mdx
Cards
Use cards to link to related pages.
Set up navigation
Structure your docs with tabs, sections, and pages
Customize your docs
Change colors, fonts, and layout to match your brand
my-page.mdx
More components
Explore the full set of built-in components and click through to the Fern documentation for detailed usage guides.
