This repository contains the documentation for our project, built with Mintlify.
To run the documentation locally:
npx mint devThis will start a local development server where you can preview changes in real-time.
Our API documentation follows a two-step process to provide better organization and flexibility:
- Source:
openapi.yaml- Contains the complete API specification - Generated Files: MDX files in
./api-reference/- Created from the OpenAPI spec - Configuration:
docs.json- References the generated MDX files for logical grouping
-
Update the OpenAPI specification: Edit
openapi.yamlwith your API changes -
Generate MDX files:
npx @mintlify/scraping@latest openapi-file openapi.yaml -o ./api-reference
-
Update documentation structure: Modify
docs.jsonto reference the new MDX files as needed
While Mintlify can use openapi.yaml directly, generating separate MDX files allows us to:
- Logically group related endpoints
- Customize the presentation of different API sections
- Maintain better control over the documentation structure
- Provide enhanced visual organization in the docs
├── openapi.yaml # API specification source
├── api-reference/ # Generated MDX files
├── docs.json # Documentation configuration