Skip to content

Markdown

Write .md files under content/. Pages support ordinary Markdown and JSX, such as the built-in code tabs or a custom React component.

Page metadata

Start every page with YAML frontmatter:

content/installation.mdMarkdown
---
title: Installation
description: Install My Project and run your first command.
---

# Installation

Install the package before running the examples.

Both fields are required. A production build reports the source file if either is missing. Write a description that tells the reader what the page covers.

Use one # heading for the page, then ## headings for its sections. Guide outlines show headings through level three. API outlines include deeper headings.

Alerts

Use a GitHub-style alert when a note belongs beside a specific instruction:

Markdown
> [!TIP]
> Run a production build before checking search.

The result is:

Supported labels are NOTE, TIP, IMPORTANT, WARNING, and CAUTION. Keep the instruction in the alert specific enough for the reader to act on it.

Images and captions

Put an image in public/, then reference its public URL:

Markdown
![Architecture diagram](/images/architecture.svg "The request pipeline")

For a standalone image, the title becomes its caption. The alt text describes the image for readers who cannot see it. A deployment base path is added to local Markdown image URLs automatically.

For this site, the following source uses an existing logo asset:

Markdown
![Docskit wordmark](/logos/docskit-logo-light.svg "Docskit")
Docskit wordmark
Docskit

Tables and task lists

GitHub-flavored Markdown tables render inside a scrollable container:

Markdown
| Command      | Purpose               |
| ------------ | --------------------- |
| `pnpm dev`   | Start development     |
| `pnpm build` | Produce static output |
CommandPurpose
pnpm devStart development
pnpm buildProduce static output

Task lists use the usual Markdown syntax:

Markdown
- [x] Write the overview
- [ ] Preview the production build
  • Write the overview
  • Preview the production build

Definitions and math

Definition lists pair a term with its explanation:

Markdown
Snapshot
: A frozen copy of documentation and navigation.
Snapshot
A frozen copy of documentation and navigation.

Use dollar signs for inline math, such as $a^2 + b^2 = c^2$, or double dollar signs for a display equation. Docskit renders math with KaTeX:

a2+b2=c2a^2 + b^2 = c^2

For highlighted commands and tabbed examples, continue to Code blocks.