Technical documentation for Base (Ethereum L2). Built with Mintlify.
| Command | Description |
|---|---|
mintlify dev |
Local dev server |
/lint |
Lint MDX files and fix issues |
/doc-feedback |
Review content quality |
/agents |
Generate AGENTS.md index for AI agents (also runs via githooks/post-commit when commit message contains agents.md) |
/llms |
Regenerate docs/llms.txt and docs/llms-full.txt (also runs via githooks/post-commit when commit message contains llms.txt) |
docs/
├── get-started/ # Intro, quickstarts
├── base-chain/ # Network, nodes, tools
├── base-account/ # Smart Wallet SDK
├── ai-agents/ # Agent development
├── apps/ # Apps on Base (MiniKit, guides)
├── onchainkit/ # React components (versioned)
├── images/ # Assets by topic
├── snippets/ # Reusable MDX components
└── docs.json # Navigation config
Frontmatter (required):
---
title: "Keyword-rich title"
description: "Value description"
---Writing: American English, sentence case headings, second person ("you"), active voice.
Code blocks: Always specify language. Add filename or title. Use highlight={} for emphasis.
Components: See mintlify-reference.md for syntax.
Images: Wrap in <Frame>, include alt attribute.
Edit docs.json to add/remove pages. Add redirects when removing pages.
| File | Purpose |
|---|---|
| content-instructions.md | Writing guidelines |
| mintlify-reference.md | Component syntax |
| scripts/README.md | Linter usage |
- Run
/lintand fix errors - Run
/agentsif docs structure changed- Or include
agents.md/llms.txtin your commit message — thegithooks/post-commithook will regenerate the matching index files and create a follow-up commit. Enable hooks once per clone withgit config --local core.hooksPath githooks(repo-scoped, never global).
- Or include
- Add redirects for removed pages
- Verify links work