Mintlify

v2.0.0 — Mintlify documentation builder. Covers setup, configuration, MDX components, API docs, AI features, and deployment.

What This Skill Does

Activates when building or updating Mintlify documentation sites. Handles docs.json configuration, MDX component usage, OpenAPI integration, navigation structure, and deployment to Mintlify’s hosting platform.

Quick Start

npm i -g mintlify       # Install CLI
mint new                 # Scaffold new docs project
mint dev                 # Local dev server → http://localhost:3000
mint validate            # Validate docs.json + content

Core Concepts

Configuration (docs.json)

Central config controls all site structure and metadata:

{
  "name": "My Docs",
  "theme": "mint",
  "navigation": [...],
  "colors": { "primary": "#0D9373" },
  "favicon": "/favicon.png"
}

7 built-in themes: mint, maple, palm, willow, linden, almond, aspen

Mintlify supports layered navigation:

TypeUse Case
TabsTop-level product areas
AnchorsFixed sidebar links (changelog, blog)
GroupsSections within a tab
DropdownsNested group collections
ProductsMulti-product nav (enterprise)
Versionsv1/v2 content switching
Languagesi18n content switching

MDX + React Components

Pages are MDX—full React component support alongside markdown.

MDX Components

26+ built-in components available:

ComponentPurpose
<Card>, <CardGroup>Link cards in grid layouts
<Steps>Numbered step sequences
<Tabs>, <Tab>Tabbed content
<Accordion>, <AccordionGroup>Collapsible sections
<CodeGroup>Multi-language code examples
<Note>, <Warning>, <Tip>, <Info>Callout boxes
<Frame>Image/video container with caption
<Tooltip>Inline hover text
<Icon>Inline icons (1000+ available)
<ResponseField>API response field documentation
<ParamField>API parameter documentation
MermaidDiagrams via fenced code blocks

CLI Commands

CommandPurpose
mint devStart local dev server
mint newScaffold new project
mint updateUpdate Mintlify CLI
mint broken-linksFind broken internal links
mint a11yAccessibility audit
mint validateValidate config + frontmatter
mint openapi-checkValidate OpenAPI spec
mint rename <old> <new>Rename file and update references
mint migrate-mdxMigrate mint.json to docs.json

API Documentation

Auto-generate reference pages from OpenAPI 3.x or AsyncAPI specs:

// docs.json
{
  "openapi": "openapi.yaml"
}

Each endpoint gets an interactive playground with:

  • Request builder (headers, params, body)
  • Live API calls from the browser
  • Response schema viewer
  • Code snippets in 10+ languages

Supports: REST (OpenAPI), async APIs (AsyncAPI), webhooks.

AI Features

FeaturePurpose
llms.txtExpose docs to LLM crawlers
skill.mdClaude Code skill definition for your docs
MCP supportConnect docs site as MCP server for AI assistants

Deployment

Primary: Connect GitHub or GitLab repo — auto-deploys on push to main.

Preview deployments: Auto-generated URL for every PR.

Custom domains: Configure in Mintlify dashboard, automatic SSL.

Self-hosting / CDN:

PlatformMethod
Vercel@mintlify/vercel adapter
Cloudflare PagesStatic export
AWS S3 + CloudFrontStatic export

Analytics integrations: GA4, PostHog, Amplitude, Mixpanel, Segment, Plausible, Fathom, and 5+ more.