[py] Improve generated HTML docs for Python API - #17775
Conversation
PR Summary by QodoImprove Python API HTML docs: switch to pydata-sphinx-theme + better autodoc output
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
17 rules 1.
|
|
Code review by qodo was updated up to the latest commit ce7311c |
|
Code review by qodo was updated up to the latest commit fdddbff |
|
Code review by qodo was updated up to the latest commit de7453a |
|
Code review by qodo was updated up to the latest commit f844825 |
|
Code review by qodo was updated up to the latest commit dea169a |
💥 What does this PR do?
This PR improves the generated HTML docs for the Python API. The existing ones are really difficult to navigate and read.
Changes:
Replaced sphinx-material theme with: pydata-sphinx-theme
Cleaned up sphinx configuration (
conf.py)Removed unused sphinx extensions:
sphinx.ext.doctestsphinx.ext.todosphinx.ext.coveragesphinx.ext.imgmathAdded
sphinx.ext.napoleonextensionIncluded type annotations for attributes and method/function signatures
Made inheritance and class hierarchy more excplit
Pinned new dependencies and lock file
Example of old docs:

Example of new docs (light mode):

Example of new docs (dark mode):

🤖 AI assistance
🔄 Types of changes