Install the Mintlify CLI to preview the documentation changes locally. To install, use the following command
npm i -g mintlify
Run the following command at the root of your documentation (where mint.json is)
mintlify dev
- Run the update script
./update_openapi.bash
- Generate MDX files for each endpoint
npx @mintlify/scraping@latest openapi-file <path-to-openapi-file> -o <output-directory>
- prefix the file you want to share with
em(e.g.https://emgithub.com/org/repo/blob/main/file.md) - tick all the checkboxes
- use the
A 11 Y Darktheme - copy the
iframe - remove the
styleattribute from theiframetag - add the
width="100%"andheight="<height from the style tag - 20>px"attributes to theiframetag - paste the
iframetag in themdxfile
Tips&tricks:
- prefix the URL with
#L2-10to highlight a specific range of lines
Install our Github App to autopropagate changes from youre repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.
- Mintlify dev isn't running - Run
mintlify installit'll re-install dependencies. - Page loads as a 404 - Make sure you are running in a folder with
mint.json