Repository Guidelines
Project Structure & Module Organization
- Content lives in
.mdxfiles. Key folders:api-reference/,api-capabilities/,scenarios/,faq/,wiki/,essentials/,code-demo/,images/,public/,logo/. Site config isdocs.json. - Add new pages under the closest topical folder and reference them in
docs.jsonso they appear in navigation. - Put screenshots in
images/and static files inpublic/. Keep runnable examples incode-demo/.
Build, Test, and Development Commands
npm i -g mintlify— install Mintlify CLI.mintlify dev— run local preview from repo root (wheredocs.jsonis).mintlify install— reinstall dependencies if preview fails.
Coding Style & Naming Conventions
- Clear, concise English; prefer active voice and short sentences.
- Use Markdown/MDX idioms. Headings are hierarchical (
#,##,###). One H1 per page. - Filenames: kebab-case, descriptive (e.g.,
token-management.mdx). Images: kebab-case (e.g.,hero-dark.png). - Always include alt text for images:
. - Specify language fences for code blocks:
bash,python, ```js. Keep lines < 100 chars when reasonable.
Testing Guidelines
- No unit tests. Validate via
mintlify devwith zero errors/warnings. - Manually verify: internal links, code block rendering, images, tables, and that new pages are linked in
docs.json. - Keep demos executable; never hard-code secrets. Use placeholders like
YOUR_API_KEY.
Commit & Pull Request Guidelines
- Commits: concise and scoped. Suggested prefixes:
docs:,wiki:,faq:,api-ref:,demo:(e.g.,docs: add token limits guide). - PRs must include: brief purpose, affected paths, screenshots for visual changes, and linked issues.
- Keep PRs small and focused. Update
docs.jsonand related assets in the same PR.
Security & Configuration Tips
- Do not commit real API keys or credentials in examples or logs. Redact tokens in images.
- Optimize large assets (>1MB) before adding to
images/. Prefer.webpwhere acceptable.