Mintlify Autopilot Setup
Mintlify Autopilot keeps documentation accurate by monitoring your codebase, detecting user-facing changes, and proposing updates the moment you ship.What Autopilot Does
- Detects code changes that require documentation updates
- Surfaces updates in the Mintlify dashboard with PR context
- Generates documentation drafts with full codebase awareness
Setup Steps
1. Connect Repository to Mintlify
- Go to Mintlify Dashboard
- Click Settings → Integrations → GitHub
- Install the Mintlify GitHub App on
Sanctiv/sanctiv-app - Grant access to the repository
2. Enable Autopilot
- In Mintlify Dashboard, go to Settings → Autopilot
- Toggle Enable Autopilot to ON
- Select repositories to monitor:
sanctiv-app
3. Configure Monitoring Directories
Tell Autopilot which directories contain code that impacts documentation:| Directory | What to Monitor |
|---|---|
apps/mobile/src/ | Mobile app components, screens, hooks |
packages/ | Shared packages (ai, supabase, shared) |
supabase/functions/ | Edge functions and migrations |
supabase/migrations/ | Database schema changes |
4. Verify GitHub Action
The.github/workflows/mintlify.yml workflow:
- Validates documentation on every PR
- Detects code changes that may need doc updates
- Triggers Mintlify Autopilot analysis on merge to
main
Using Autopilot
When You Ship Code
- Create a PR with code changes
- Autopilot analyzes if docs need updates
- Check Mintlify Dashboard → Agent Panel for suggestions
- Review and approve/edit suggested changes
- Generate a PR with documentation updates
Example Workflow
Local Development
Preview Docs Locally
Check for Broken Links
Best Practices
- Write clear commit messages - Autopilot uses them for context
- Keep docs close to code - Feature docs in
docs/features/ - Use descriptive file names - Helps Autopilot match code to docs
- Review Autopilot suggestions - AI drafts need human polish
Troubleshooting
Autopilot Not Detecting Changes
- Verify GitHub App is installed and has repo access
- Check that Autopilot is enabled in dashboard settings
- Ensure the changed directory is in the monitoring list
Docs Not Deploying
- Check GitHub Actions for
mintlify.ymlworkflow status - Verify
docs/mint.jsonis valid JSON - Check Mintlify dashboard for deployment errors