Skip to content

Add Read the Docs configuration and Sphinx setup for Python SDK#1663

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/update-python-api-docs
Draft

Add Read the Docs configuration and Sphinx setup for Python SDK#1663
Copilot wants to merge 2 commits into
mainfrom
copilot/update-python-api-docs

Conversation

Copilot AI commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Adds the infrastructure to host Python SDK API docs on Read the Docs (free for OSS).

  • .readthedocs.yaml — RTD v2 config: Ubuntu 24.04, Python 3.12, installs python[docs]
  • python/docs/ — Sphinx project with autodoc, napoleon (Google/NumPy docstrings), sphinx-autodoc-typehints, furo theme
  • python/docs/api.rst — API reference covering public surface: CopilotClient, CopilotSession, tools, hooks, events, canvas, MCP, telemetry, session filesystem
  • python/pyproject.toml — New docs optional dependency group (sphinx>=7.0, sphinx-autodoc-typehints>=2.0, furo>=2024.0)

Local build:

cd python && pip install -e ".[docs]" && cd docs && make html

Activation

After merge, import the project at readthedocs.org — RTD auto-detects .readthedocs.yaml and builds on push.

- Add .readthedocs.yaml at repo root for RTD hosting
- Create python/docs/ with Sphinx conf.py, index.rst, api.rst, Makefile
- Add [project.optional-dependencies] docs group in pyproject.toml
- Uses furo theme, autodoc, napoleon, and sphinx-autodoc-typehints

Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Copilot AI changed the title [WIP] Update API docs for Python to ensure parity Add Read the Docs configuration and Sphinx setup for Python SDK Jun 13, 2026
Copilot AI requested a review from edburns June 13, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants