]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153906: Modernize pydoc HTML output (GH-153909)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 19 Jul 2026 09:59:58 +0000 (12:59 +0300)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 09:59:58 +0000 (09:59 +0000)
commitcae8ec822b6e5f93df28897255984c2c16fb64a9
tree1bb14d4aa2ef4219c8e080bee9dc72eb2a5a7ad8
parent426cf84e84ed85d94c9055affd19e6fd69cfc939
gh-153906: Modernize pydoc HTML output (GH-153909)

Follow-up of the HTML5 migration in bpo-10716: replace the layout
tables, the &nbsp;/<br> encoding of docstrings and the obsolete
<a name=...> anchors with semantic markup (header, section, h1-h4,
CSS multi-column lists, white-space: pre-wrap, id= anchors), and
restyle the pages after the python-docs-theme used by docs.python.org,
including dark mode support.  Members inherited from other classes
are now collapsed by default.  The pydoc API is unchanged; obsolete
arguments of HTMLDoc methods are accepted and ignored.  ServerHTMLDoc
in xmlrpc.server is updated to match.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Doc/whatsnew/3.16.rst
Lib/pydoc.py
Lib/pydoc_data/_pydoc.css
Lib/test/test_docxmlrpc.py
Lib/test/test_pydoc/test_pydoc.py
Lib/xmlrpc/server.py
Misc/NEWS.d/next/Library/2026-07-18-13-30-00.gh-issue-153906.mHtNdY.rst [new file with mode: 0644]