CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.Project Overview
This is Zapier’s public API documentation site built with Mintlify. The docs are structured as a monorepo containing documentation for multiple Zapier products and solutions:- Developer Platform - Integration development tools and documentation
- Powered by Zapier - Embeddable workflow APIs and components
- AI Actions - AI-powered automation APIs
- MCP - Model Context Protocol integration
Development Commands
Local Development
Build and Quality Checks
Pre-commit Hook
The repository includes a TypeScript pre-commit hook (pre-commit.ts) that:
- Downloads and processes OpenAPI schemas
- Updates navigation configuration automatically
- Validates links and routes
- Ensures documentation consistency
Project Structure
Configuration Files
docs.json- Main Mintlify configuration with navigation structurepackage.json- Node.js dependencies and scriptstsconfig.json- TypeScript compilation settingsignore-endpoints- Lists API endpoints to exclude from auto-generation
Content Organization
ai-actions/- AI Actions API documentation and guidesmcp/- Model Context Protocol documentationplatform/- Developer Platform docs (CLI, UI, reference)powered-by-zapier/- Embeddable workflows and APIsimages/- Static image assetssnippets/- Reusable content snippets
Build Process
The pre-commit hook automatically:- Fetches OpenAPI schemas from configured endpoints
- Generates Mintlify documentation pages
- Updates navigation configuration in
docs.json - Validates all internal links and routes
- Filters out ignored endpoints per
ignore-endpointsfile
Key Architecture Notes
- Mintlify-based: Uses Mintlify’s documentation framework
- Auto-generated API docs: OpenAPI schemas are automatically converted to MDX pages
- Multi-product structure: Each major product has its own section with dedicated navigation
- Validation pipeline: Automated checks ensure documentation consistency and link validity
- TypeScript tooling: Build scripts and validation tools are written in TypeScript
Working with Documentation
- All content files use
.mdxformat - Navigation must be declared in
docs.jsonto appear on the site - New pages require adding entries to the navigation configuration
- API reference pages are auto-generated from OpenAPI schemas
- Images should be placed in the
images/directory - Use
snippets/for content that needs to be reused across multiple pages
Testing and Validation
- Run
mintlify devfor local development server - Use
npx mintlify broken-linksto check for broken internal links - The pre-commit hook validates route configurations automatically
- Python script
check_redirects.pycan validate external links against localhost:3000