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
@edburns edburns requested a review from brettcannon June 15, 2026 17:02
Comment thread python/docs/conf.py
author = "GitHub"

try:
release = importlib.metadata.version("github-copilot-sdk")
Comment thread python/docs/conf.py
try:
release = importlib.metadata.version("github-copilot-sdk")
except importlib.metadata.PackageNotFoundError:
release = "0.0.0.dev0"
@github-actions

Copy link
Copy Markdown
Contributor

Cross-SDK Consistency Review ✅

This PR adds documentation infrastructure only — no SDK API surface changes were made. No cross-SDK consistency issues found.

Summary of changes reviewed:

  • .readthedocs.yaml — Read the Docs v2 hosting config (Python-specific)
  • python/docs/ — Sphinx project with autodoc, napoleon, furo theme
  • python/pyproject.toml — new [docs] optional dependency group

Why no action needed: Documentation tooling is inherently ecosystem-specific. Each SDK uses its native documentation system:

  • Python → Sphinx + Read the Docs (this PR)
  • Go → pkg.go.dev (auto-generated from godoc comments)
  • Rust → docs.rs (auto-generated via cargo doc)
  • Java → Javadoc (generated via Maven)
  • .NET → XML doc comments (NuGet/DocFX)
  • Node.js/TypeScript → TSDoc/TypeDoc or markdown docs

No API method signatures, parameter names, return types, or behavioral patterns were changed. This PR does not create any feature parity gaps across SDKs.

Generated by SDK Consistency Review Agent for issue #1663 · sonnet46 552.1K ·

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.

3 participants