Fumadocs Docs
Overview
Create a Fumadocs-powered documentation website for this repository and keep it accurate as the code evolves. Use it for both initial setup (adding a docs app) and ongoing authoring (new pages, navigation changes, refinements).
Repo Context (Jaunt)
- •Treat these files as the current canonical written sources for Jaunt behavior and CLI/config usage:
- •
README.md - •
DOCS.md - •
TASK-*.mdandjaunt_tdd_plan.md(design/architecture notes; link to them rather than duplicating verbatim when possible)
- •
- •The code lives under
src/jaunt/; doc pages should reference real module names, CLI flags, and config keys.
References
- •Start with
references/fumadocs-llms.txtto find the most relevant Fumadocs docs pages for installation, content authoring, routing, and customization. The links in that file are relative tohttps://www.fumadocs.dev. - •Use
references/jaunt-doc-sources.mdas a quick index of existing repo documentation to convert or link into the docs site.
Workflow: Create A Fumadocs Site In This Repo
- •Choose a docs app directory (recommended:
docs-site/at the repo root) to avoid colliding with Python package paths. - •Initialize the Next.js app in that directory.
- •Install and configure Fumadocs by following the official Fumadocs docs (use the
references/fumadocs-llms.txtindex; do not guess package names or config APIs). - •Create a minimal set of pages that mirror the repo’s current docs:
- •Home / overview (based on
README.md) - •Getting started / quickstart (based on
DOCS.md) - •CLI reference (from
DOCS.mdandsrc/jaunt/cli.pyor equivalent entrypoint) - •Configuration reference (
jaunt.tomlkeys fromDOCS.mdand the config loader)
- •Home / overview (based on
- •Add navigation and sidebars matching the page structure.
- •Validate by running the docs app dev server and a production build (commands depend on the chosen package manager; keep them consistent within the docs app).
Workflow: Add Or Update Documentation Pages
- •Identify the source of truth in the code and existing docs:
- •Prefer documenting behavior already validated by tests (
tests/) and described inDOCS.md.
- •Prefer documenting behavior already validated by tests (
- •Create or edit the MDX page in the Fumadocs content location configured by the site.
- •Keep docs precise and testable:
- •Include concrete CLI commands and expected outputs where appropriate.
- •Prefer small code snippets that compile/run over long pseudo-code.
- •Update navigation/metadata so the page is discoverable.
- •Check internal links and headings render correctly (MDX).
- •Ensure the page matches the current code (names, flags, defaults).
Conventions For MDX Content
- •Use one top-level
#title per page. - •Use fenced code blocks with language tags (e.g.
bash,toml,python) and keep examples runnable. - •Prefer relative links to other docs pages; link to repo files when referencing implementation details.
- •Avoid duplicating long sections from
TASK-*.md; summarize and link instead.
Common Tasks
- •Create a “Getting Started” section: convert the “Quickstart” and minimal
jaunt.tomlsections fromDOCS.mdinto MDX pages. - •Create a CLI reference: document flags/subcommands exactly as implemented; keep examples aligned with tests and current behavior.
- •Document generation workflow: explain
@jaunt.magic/@jaunt.teststubs, where__generated__/output lands, and how to iterate safely.
Quality Bar
- •If you are unsure about Fumadocs APIs or configuration, consult the official docs first (use
references/fumadocs-llms.txtto find the relevant page). - •Keep docs changes small and reviewable: add a page, wire nav, verify build, then iterate.