Install the Mintlify CLI to preview the documentation changes locally. To install, use the following command
npm i -g mintlifyRun the following command at the root of your documentation (where docs.json is)
mintlify devDownload the Stainless-documented OpenAPI spec to openapi.yaml, then generate the API reference docs in api-reference/:
curl https://app.stainless.com/api/spec/documented/scorecard/openapi.documented.yml -o openapi.yaml
npx @mintlify/scraping@latest openapi-file openapi.yaml -o api-referenceIf you added, deleted, or renamed any API endpoints, you should also update the "API reference" page links in docs.json.
- Mintlify dev isn't running - Run
mintlify installto re-install dependencies. - Page loads as a 404 - Make sure you are running in a folder with
docs.json