
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
api2mdx
is a Python tool that generates mdx
documentation for Python APIs.
Under the hood, it uses Griffe.
api2mdx
is designed to work in tandem with custom components like <ParametersTable>
, <ApiSignature>
, etc. Currently they live in @mirascope/website
or @mirascope/docs-viewer
, but later they will be extracted to @mirascope/ui
.
Generate API documentation from Python source code:
python -m api2mdx.main --source-path ./src --package mypackage --output ./docs/api
--source-path
: Path to the source code directory--package
: Python package name to document--output
: Path where generated documentation should be written--docs-path
: Path within the package where docs are located (default: docs/api)--pattern
: Optional pattern to regenerate only matching files--output-directives
: Optional path to output intermediate directive files for debuggingpython -m api2mdx.main \
--source-path ./snapshots \
--package mirascope_v2_llm \
--output ./snapshots/mdx \
--output-directives ./snapshots/directives
The project includes test snapshots for validation. To regenerate all snapshots:
uv run regenerate-snapshots
This will:
snapshots/mdx/
snapshots/directives/
(useful for debugging)snapshots/
├── mirascope_v2_llm/ # Source Python code
├── mdx/ # Generated MDX documentation
└── directives/ # Intermediate directive files (for debugging)
__all__
exports as the source of truthresponses/__init__.py
exports Response
→ responses/Response.mdx
)FAQs
Generate MDX API documentation from Python source code
We found that api2mdx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.