Docs

Pages and routes

How a file becomes a route, and what frontmatter controls.

Open Markdown

Every .md or .mdx file under your source root becomes a page. The path is the route; frontmatter is the metadata.

File routes

Routes come from file paths under the docs source root:

FileRoute
src/docs/index.mdx/docs
src/docs/guides/index.mdx/docs/guides
src/docs/guides/installation.mdx/docs/guides/installation
src/docs/proa-docs/configuration.mdx/docs/proa-docs/configuration

index.mdx maps to the folder route. Other file stems map to the final path segment.

Frontmatter

Supported page fields:

FieldTypeRuntime effect
titlestringPage title. Falls back to the first # heading or file name.
descriptionstringPage description, search metadata, and default page meta description.
iconstringStored on Frontmatter and copied to the generated NavItem.
slugstringOverrides the route slug after base path normalization.
sidebar_titlestringOverrides the label used in navigation.
nav_orderintegerFallback ordering when the source root has no meta.json. With a root meta.json, unlisted pages compile but never enter the nav.
hiddenbooleanCompiles the page and static Markdown, but omits it from nav.
draftbooleanOmits the page unless include_drafts(true) is set.
searchbooleanIncludes or excludes the page from generated search documents.
keywordslist of stringsExtra search terms the page canonically documents (identifiers, API names, synonyms). Emitted to the search documents so a client can boost them.
tocbooleanStores a page-level table-of-contents preference for the app shell.
last_modifiedstringOptional date string for display, plugins, or generated metadata.

Example:

---
title: Route Handlers
description: Build JSON endpoints, form handlers, webhooks, and health checks.
sidebar_title: Handlers
icon: Route
---

# Route Handlers

Laying out a source folder

src/docs/
index.mdx
meta.json
guides/
index.mdx
installation.mdx
meta.json

Each folder carries its own meta.json, which orders that folder's pages. Frontmatter on each file controls how the route presents itself.

Navigation · Markdown · Configuration

Search

Type at least 2 characters