ost-docs repository and are
built with Mintlify. Fixing a confusing paragraph is a perfectly good
first contribution.
Run the docs locally
Prerequisites: Node.js 19 or higher.
1
Install the Mintlify CLI
2
Preview
How the site is organised
A page that isn’t listed in
docs.json won’t appear in the navigation, even if the file
exists.
Updating the API reference
The API reference is generated. Never editapi-reference/openapi.json or the endpoint
pages by hand. The source of truth is the API’s own Swagger output.
API Reference tab in docs.json. The
scraper writes files but doesn’t touch navigation.
/api/auth/* (better-auth) is deliberately absent from the specification. The API’s
generator doesn’t see those routes. They’re documented by hand in
the API introduction, so keep that page in mind when auth
changes.Before you open a pull request
Check that nothing links into a void:Writing conventions
- Prefer showing the real command or file path over describing it.
- Don’t document intentions. If the code doesn’t do it yet, don’t write it down.
- When a convention has exceptions in the codebase, say so; contributors will find them anyway.
- Use
<Note>,<Warning>and<Info>for genuine caveats, not for emphasis.
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
Usually an outdated Node version:
npm remove -g mint- Upgrade to Node 19 or higher.
npm i -g mint
A page loads as a 404
A page loads as a 404
Make sure you’re running
mint dev from the folder containing docs.json, and that the
page is registered in the navigation.Unknown error
Unknown error
Delete the
~/.mintlify folder and run mint dev again.