Prerequisites:
- Node.js 19 or higher
- This repo cloned locally (
git clone git@github.com:trulayer/docs.git)
Local preview
Start the preview server
Editing content
- MDX files live at the repo root and in subdirectories (
concepts/,sdks/,api-reference/, etc.) - Navigation is configured in
docs.json— any new page must be listed there to appear in the sidebar - Components — Mintlify supports
<Card>,<CardGroup>,<Columns>,<Tabs>,<CodeGroup>,<Steps>,<Accordion>,<Note>,<Tip>,<Warning>,<Frame>, and more. See Mintlify’s component reference.
Keeping the API reference in sync
The OpenAPI spec is the source of truth for the HTTP API reference. It lives atapi-reference/openapi.yaml and is kept in sync with the backend service spec.
When the backend API changes, the docs team updates api-reference/openapi.yaml and opens a PR. Spec drift is caught automatically in CI.
Custom ports
Validating links
Deployment
Pushes tomain are picked up by the Mintlify GitHub app and deployed to https://docs.trulayer.ai within ~60 seconds.
Troubleshooting
Error: Could not load the "sharp" module using the darwin-arm64 runtime
Error: Could not load the "sharp" module using the darwin-arm64 runtime
This is typically an outdated Node. Try:
npm remove -g mint- Upgrade to Node 19+
npm i -g mint
Unknown error on mint dev
Unknown error on mint dev
Remove the local Mintlify cache: