Prerequisites:
- Node.js 19 or higher
- This repo cloned locally (
git clone [email protected]: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 a copy of backend/api/openapi.yaml from the trulayer/backend repo.
When the backend spec changes, run:
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: