Menu
Writing docs
Frontmatter, headings, and the table of contents.
Every page needs frontmatter. title and description drive the page header,
the sidebar label, and the route metadata:
---
title: Writing docs
description: Frontmatter, headings, and the table of contents.
---Headings build the table of contents
Fumadocs collects ## and ### headings into page.data.toc and renders them
in the right rail. Nothing to configure — write headings and the rail fills in.
Nested headings
An ### nests under the ## above it, which is how this entry got indented.
Links
Relative links between docs resolve against the route, not the file path:
[the components guide](/docs/guides/components)That renders as the components guide.