mirror of
https://github.com/ComposioHQ/composio.git
synced 2026-09-22 11:46:35 +08:00
3271679ee0
- parse :raises Exc: docstring fields (plus Sphinx synonyms) into a structured Raises section instead of leaking raw directives into the Returns description - normalize inline reST in all rendered prose: roles (:class:, :func:, :meth:, ...) honor ~ short-name semantics; double-backtick literals become single-backtick inline code - regenerate docs/content/reference/sdk-reference/python/ pages - add regression tests for raises parsing and reST normalization Flagged by Greptile on the legacy-repo auto-PR (ComposioHQ/composio#4479).
SDK Documentation Generator
Generates MDX reference docs from Python source using griffe.
Usage
cd python
uv run --with griffe python scripts/generate-docs.py
How it works
- griffe extracts docstrings from
composio/**/*.py→ structured data generate-docs.pytransforms data → MDX files- Output written to
docs/content/reference/sdk-reference/python/
Configuration
- Expected classes:
EXPECTED_CLASSESdict maps class name → Composio property - Modules to search:
CLASS_MODULESlist - Decorators:
DECORATORS_TO_DOCUMENTlist
CI
.github/workflows/generate-sdk-docs.yml triggers on changes to python/composio/** and opens a PR with updated docs.