Skip to content

Frontmatter reference

Frontmatter appears at the top of a Markdown or MDX file. General page fields apply to all content. hero and features apply only to each locale's home page.

Unknown fields may be parsed, but they do not affect Docfuse behavior and are not automatically published to the AI page index. ai/pages.json keeps only title, description, createdAt, updatedAt, order, group, subgroup, tags, and owner.

General page fields

Most content pages need only a title, description, and ordering metadata:

yaml
---title: API authenticationdescription: Configure server-side API tokens and request signaturesorder: 20---
table
titlestringFirst heading or emptyPage title, sidebar, and SEO title
descriptionstringEmptySEO, search result, and deterministic summary
createdAtISO 8601 dateNonePreserve the content creation time in public page metadata
updatedAtISO 8601 dateFile modification timePin the footer's last-updated time and publish it in page metadata
groupstringFirst directory nameCompatibility/display override for the top-level section
subgroupstringSecond directory nameCompatibility/display override for the first nested group
ordernumberLastPage, sidebar, and pagination order
collapsedbooleanfalseInitial subgroup state from its index.md
layoutdocument | playgrounddocumentUse the standard document layout or the editable source/preview Playground layout
statuspublished | draftpublisheddraft pages are not built
sidebarbooleantrueExclude the page from the sidebar without removing its route
searchbooleantrueInclude in search
aibooleantrueInclude in AI outputs
tagsstring[]EmptyPreserve classification metadata in ai/pages.json
ownerstringEmptyPreserve ownership metadata in ai/pages.json

Directory index.md files are authoritative for group labels and collapsed state. Conflicting group or subgroup labels in one directory fail the build.

group and subgroup do not limit the content tree to two levels. Use directory index.md files for recursive navigation. Keep these fields for legacy content or display-name overrides.

Date fields

Add createdAt or updatedAt only when those dates must remain stable across machines. Use YYYY-MM-DD, or include Z or an offset such as +08:00 when a time is present. Without updatedAt, Docfuse falls back to the source file modification time, which may change after checkout, file copies, or CI builds.

Home-page fields

Configure each locale home page in the index.md at that locale's content root. The default locale uses docs/index.md; other locales use docs/{locale}/index.md. docfuse.config.ts holds site-wide configuration, not home-page copy.

yaml
---title: Acme Docshero:  accent: Build deployable documentation from API definitions  tagline: Keep content and configuration in the repository, then deploy the static build.  image: /banner.png  imageAlt: Acme documentation build flow  actions:    - text: Get started      link: /guide/getting-started/      primary: true      icon: rocketfeatures:  - image: /feature/api.png    title: API reference    details: Build searchable reference pages from versioned content.---

Page structure

table
titlestringHero headingThe single page heading and SEO title
descriptionstringNot rendered directlySEO description and search summary
hero.accentstringBelow the headingOne sentence for the home page's main message
hero.taglinestringBelow the accentOne or two sentences that define the product or its scope
hero.imagestringRight side of the HeroMain visual; omit it for a single-column Hero
hero.imageAltstringNot rendered directlyAlternative text; use an empty string for a decorative image
hero.actionsarrayHero action rowRendered left to right in array order
featuresarrayBelow the HeroHome-page capability cards

hero.image and actions[].link accept a site path beginning with / or an HTTPS URL. Other protocols fail checks and builds.

Hero actions

table
textstringYesButton label
linkstringYesAbsolute site path or HTTPS URL
primarybooleanNoUse the primary style; a home page may define at most one
iconstringNoUse a built-in Lucide icon from Docfuse

Feature cards

table
titlestringYesCard heading
detailsstringYesOne-sentence capability description
imagestringNoUse an image from {docsDir}/public/, such as /feature/api.svg
iconstringNoUse the same built-in icon set as actions

When both image and icon are present, image wins. Omitting both creates a text-only card.

Images and built-in icons

An image path that starts with / maps to {docsDir}/public/. For example, /banner.png maps to {docsDir}/public/banner.png, and /feature/api.svg maps to {docsDir}/public/feature/api.svg.

Actions and feature cards can also use Docfuse's built-in Lucide icons without an extra icon package. Accepted values are ai, box, code, file, file-code, gauge, globe, layers, rocket, search, sparkles, and terminal.

Docfuse validates home-page fields during content scanning. Invalid types, unknown nested fields, unsupported icons, or multiple primary actions fail checks and builds.