ChainStream API documentation, powered by Mintlify.
Install the Mintlify CLI to preview the documentation changes locally:
npm i -g mintlifyRun the following command at the root of your documentation (where docs.json is):
mintlify devInstall dependencies first:
npm installApply i18n translations to OpenAPI spec files. Reads i18n-{service}.key.md and writes translated values into openapi-{service}-{lang}.json.
npm run translate # translate all services (data + defi)
npm run translate -- --service data # translate data only
npm run translate -- --service defi # translate defi onlyGenerate MDX endpoint pages from OpenAPI specs and update docs.json navigation.
npm run generate-docs # generate all services
npm run generate-docs -- --service data # generate data only
npm run generate-docs -- --service defi # generate defi onlyAdd Rust request examples to OpenAPI x-codeSamples fields.
npm run rust # all services
npm run rust -- --service data # data only
npm run rust -- --service defi # defi onlyFind and delete .mdx files not referenced in docs.json.
npm run cleanup # interactive mode
npm run cleanup -- --dry-run # preview only, no deletion
npm run cleanup -- --force # delete without confirmationInstall the Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch.
- 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.