Prerequisites:
- Node.js 18+ (19+ recommended for Mintlify CLI)
- This docs repo with a
docs.jsonat the root of the docs folder
Run the docs locally
Start the preview server
From the docs directory (where Open http://localhost:3000 to view the site. The preview reloads when you edit MDX or
docs.json lives), run:docs.json.Default theme
The site is configured to use dark mode by default. Users can still switch to light mode via the theme toggle if you leave it enabled indocs.json.
Custom port
To use a different port:Validate links
Check for broken links in the documentation:Updating the CLI
To align with the latest Mintlify behavior:Editing content
- Navigation: Edit
docs.json→navigation.tabs. Each tab (Introduction, SDK, sdk-react, sdk-react-ui, API reference) has its own groups and pages. - Pages: Edit or add
.mdxfiles under the paths referenced indocs.json(e.g.sdk/overview.mdx,index.mdx). - Code blocks: Use fenced code blocks with a language tag for syntax highlighting.
Troubleshooting
Error: Could not load the sharp module
Error: Could not load the sharp module
Try upgrading Node to v19+ and reinstalling the CLI:
npm remove -g mint then npm i -g mint.Preview not matching production
Preview not matching production
Update the Mintlify CLI:
npm update -g mint. Each CLI version targets a specific Mintlify release.Unknown or persistent error
Unknown or persistent error
Remove the Mintlify cache folder
~/.mintlify and run mint dev again.SDK and package development
To build or test the @alphscan/sdk, @alphscan/sdk-react, or @alphscan/sdk-react-ui packages (e.g. in a monorepo), use that repo’s scripts (e.g.pnpm run build, pnpm run test). The SDK, sdk-react, and sdk-react-ui tabs in this docs site describe the public API and usage.
