Generate API documentation from Python docstrings for the Mintlify documentation site.
conda activate pxt
cd docs/tools/mintlifierpython mintlifier.py # Generate docs (uses config for error display)
python mintlifier.py --no-errors # Hide import, missing documentation and other errors in generated docsOptions:
--no-errors: Suppress import, missing documentation and other error messages in generated documentation (overrides config)
Generated MDX files are written to docs/mintlify/docs/sdk/latest/
To preview the generated documentation:
cd ../../mintlify # Navigate to docs/mintlify
mintlify dev # Start local preview serverThe documentation structure is defined in public_api.opml, which whitelists the modules, classes, and functions to include in the generated docs.
Edit mintlifier/config.py:
show_errors: Display import errors in generated docs (default: true)sdk_output_dir: Output directory for generated MDX filesdocs_json_path: Path to Mintlify navigation fileinternal_blacklist: List of internal classes to exclude from documentation
TODO: Instructions go here
TODO: Instructions go here