Documentation for the SDK is generated using TypeDoc. The TypeDoc files are post-processed to convert them to Mintlify format. You can preview the output locally, and then push it to the docs repo to delpoy it.
- Install the repo dependencies:
npm install - Install the Mintlify CLI:
npm i -g mint
Open the terminal in the repo and run npm run create-docs. The docs files appear under /docs/content.
- In the terminal, navigate to the
docsfolder. - Run
mint dev. The docs preview opens in your browser.
If you notice that the names appearing for the sections of the docs menu aren't right, you may need to adjust
scripts/mintlify-post-processing/category-map.json. This file maps the names of the subfolders in/docs/contentto the desired section names in the reference.
scripts/mintlify-post-processing/category-map.json maps the names of the output folders from TypeDoc to the names of the categories that you want to appear in the docs. Only folder names that are mapped in this file appear in the final docs and the local preview.
For example, if you map interfaces to Modules, the files in docs/content/interfaces appear in the docs under a Modules category.
The names of the TypeDoc output folders are: classes, functions, interfaces, type-aliases.
scripts/mintlify-post-processing/types-to-expose.json lists the TypeDoc types that the post-processing script keeps in the generated reference. Add or remove type names in that file to expose different SDK areas (for example, to surface a new type or hide one that is not ready for publication). After editing the list, rerun npm run create-docs so the Mintlify-ready content reflects the updated exposure set.
Sometimes TypeDoc produces a helper interface or type that should live inside a broader article instead of owning its own page (for example, the EntityHandler interface that belongs with the EntitiesModule). Use scripts/mintlify-post-processing/appended-articles.json to stitch those auxiliary pages into a host article during post-processing.
The file maps the host doc (left side) to one or more articles to append (right side). Paths are relative to docs/content and omit the .mdx extension. You can provide either a string or an array of strings:
{
"interfaces/EntitiesModule": [
"interfaces/EntityHandler",
"interfaces/EntityFilterOptions"
]
}When you run npm run create-docs, the post-processing script appends each listed article to the host page under a new ## heading, updates the panel/table-of-contents links, and then deletes the standalone appended files so they no longer appear in navigation. Edit the JSON mapping and rerun the command anytime you want to combine or separate pages.
Both the TypeDoc plugin and the post-processing scripts can insert Mintlify Panel components (used for the “On this page” navigation). This behavior is now optional and disabled by default so the generated docs contain no panels unless explicitly requested.
- Leave
MINTLIFY_INCLUDE_PANELSunset (default) to skip inserting panels anywhere in the pipeline. - Set
MINTLIFY_INCLUDE_PANELS=truebefore runningnpm run create-docsif you want to re-enable the legacy Panel output for a run.
Because both the TypeDoc plugin and the appended-article merger consult the same environment variable, flipping it on/off controls the entire docs build without needing code changes.
After generating and reviewing the docs, you can push them to the base44/mintlify-docs repo to deploy them.
- In the terminal, run
npm run push-docs -- --branch <choose-a-branch-name>. If the branch already exists, your changes are added to the ones already on the branch. Otherwise, the script creates a new branch with the chosen name. - Open the docs repo and created a PR for your branch.
- Preview your docs using the Mintlify dashboard.