"Generate full Mintlify API documentation:1. Parse src/api/*.ts files for all exported functions2. Create API reference pages with proper Mintlify components3. Include TypeScript type definitions4. Add code examples in TypeScript, JavaScript, Python, and cURL5. Document all error codes and responses6. Set up authentication guide with OAuth 2.0 flow7. Configure API playground with authentication8. Add rate limiting documentation"
Skill Content (2)
Additional code example for this skill.
mintlify-documentation-automation.txt
"Build Mintlify docs for React component library:1. Document all components in src/components/ui2. Extract prop types from TypeScript interfaces3. Create PropTable for each component4. Add usage examples with CodeGroup5. Include accessibility guidelines (ARIA, keyboard)6. Link to Storybook for interactive demos7. Add installation guide with package manager options8. Create theming and customization guide"
Skill Content (3)
Additional code example for this skill.
mintlify-documentation-automation.txt
"Generate SDK documentation from TypeScript client:1. Document all SDK methods with parameters and returns2. Create quickstart with installation and auth setup3. Add comprehensive code examples for each method4. Include error handling patterns5. Document webhook integration6. Add retry and timeout configuration7. Create migration guide from v1 to v28. Set up changelog with semantic versioning"
Skill Content (4)
Additional code example for this skill.
mintlify-documentation-automation.txt
"Set up versioned Mintlify docs for API v1 and v2:1. Create separate documentation for each version2. Configure version switcher in mint.json3. Highlight breaking changes between versions4. Provide migration guide from v1 to v25. Maintain v1 docs in archive with deprecation notice6. Set up URL structure: /v1/... and /v2/...7. Add version-specific examples"
Deploy with mintlify deploy or integrate with Vercel
Claude Desktop Setup
Install Mintlify CLI: npm install -g mintlify
Initialize Mintlify: mintlify init
Ask Claude to generate documentation from your code
Review generated MDX files and mint.json
Run mintlify dev to preview locally
Troubleshooting
Common issues and solutions
Mintlify build fails with frontmatter errors
Ensure all MDX files have valid YAML frontmatter with 'title' and 'description' fields. No tabs in YAML.
Navigation doesn't show all pages
Update mint.json navigation array to explicitly list all MDX file paths without .mdx extension.
Code syntax highlighting not working
Use full language names in code fences: typescript, javascript, python, bash (not ts, js, py, sh).
Usage Examples
Practical code examples demonstrating common use cases and implementation patterns
API Reference Page from TypeScript
api-reference-page-from-typescript.txt
mdx
---title:'Get User'description:'Retrieve a user by their unique identifier'api:'GET /api/users/{userId}'---#GetUserRetrievesauserbytheiruniqueidentifier.##PathParameters<ParamFieldpath="userId"type="string"required> The user's unique identifier</ParamField>##Response<ResponseFieldname="id"type="string"required> Unique user identifier</ResponseField><ResponseFieldname="email"type="string"required> User's email address</ResponseField><ResponseFieldname="name"type="string"required> Display name</ResponseField><ResponseFieldname="role"type="'admin' | 'user' | 'guest'"required> User role determining access permissions</ResponseField>##CodeExamples<CodeGroup>```typescript TypeScript SDKimport { getUser } from '@yourapp/sdk';const user = await getUser('user_123');console.log(user.name);``````javascript JavaScriptconst response = await fetch('/api/users/user_123');const user = await response.json();``````python Pythonimport requestsresponse = requests.get('https://api.yourapp.com/users/user_123')user = response.json()``````bash cURLcurl https://api.yourapp.com/users/user_123 \\ -H "Authorization: Bearer YOUR_TOKEN"```</CodeGroup>##ResponseExample<ResponseExample>```json 200 Success{ "id": "user_123", "email": "user@example.com", "name": "John Doe", "role": "user", "createdAt": "2025-10-16T12:00:00Z"}``````json 404 Not Found{ "error": "User not found", "code": "USER_NOT_FOUND"}```</ResponseExample>##ErrorCodes<ResponseFieldname="404"type="NotFoundError">UserwiththespecifiedIDdoesn't exist</ResponseField><ResponseField name="403" type="AuthorizationError"> Caller lacks permission to access this user</ResponseField>
Quickstart Guide with Steps
quickstart-guide-with-steps.txt
mdx
---title:'Quickstart'description:'Get started in 5 minutes'icon:'rocket'---#GettingStartedThisguidewillhelpyouintegrateourSDKinunder5minutes.<Steps><Steptitle="Install the SDK"> Install using your preferred package manager:<CodeGroup>```bash npm npm install @yourapp/sdk``````bash pnpm pnpm add @yourapp/sdk``````bash yarn yarn add @yourapp/sdk```</CodeGroup></Step><Steptitle="Configure Environment"> Add your API credentials to `.env`:```bash .env API_KEY=your-api-key API_URL=https://api.yourapp.com```<Warning> Never commit your `.env` file to version control.</Warning></Step><Steptitle="Initialize the Client"> Create a client instance:```typescript lib/client.ts import { createClient } from '@yourapp/sdk'; export const client = createClient({ apiKey: process.env.API_KEY!, baseUrl: process.env.API_URL!, });```</Step><Steptitle="Make Your First Request">Usetheclientinyourapplication:```typescript app/page.tsx import { client } from '@/lib/client'; export default async function Page() { const users = await client.users.list(); return (<div> {users.map(user => (<div key={user.id}>{user.name}</div> ))} </div> ); }```<Check>You're all set! Check out the API reference for more. </Check></Step></Steps>## Next Steps<CardGroup cols={2}><Card title="API Reference" icon="code" href="/api-reference"> Explore the complete API documentation</Card><Card title="Authentication" icon="shield" href="/guides/authentication"> Learn about authentication and security</Card></CardGroup>
mint.json Configuration
mint-json-configuration.json
json
{"$schema":"https://mintlify.com/schema.json","name":"Your API Documentation","logo":{"dark":"/logo/dark.svg","light":"/logo/light.svg"},"favicon":"/favicon.svg","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"topbarLinks":[{"name":"Support","url":"mailto:support@example.com"}],"topbarCtaButton":{"name":"Dashboard","url":"https://dashboard.example.com"},"tabs":[{"name":"API Reference","url":"api-reference"},{"name":"Guides","url":"guides"}],"navigation":[{"group":"Get Started","pages":["introduction","quickstart","authentication"]},{"group":"API Reference","pages":["api-reference/users","api-reference/organizations","api-reference/webhooks"]},{"group":"Guides","pages":["guides/error-handling","guides/rate-limiting","guides/pagination"]}],"footerSocials":{"twitter":"https://twitter.com/example","github":"https://github.com/example"},"analytics":{"posthog":{"apiKey":"phc_xxx"}},"api":{"baseUrl":"https://api.example.com","auth":{"method":"bearer"}}}