Opened 20 months ago
Closed 19 months ago
#21114 closed enhancement (fixed)
sphinx-8.2.0 (Python module)
| Reported by: | Bruce Dubbs | Owned by: | Bruce Dubbs |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.3 |
| Component: | BOOK | Version: | git |
| Severity: | medium | Keywords: | |
| Cc: |
Description
New point version.
Change History (5)
comment:1 by , 20 months ago
comment:2 by , 19 months ago
| Milestone: | 12.4 → 12.3 |
|---|
comment:3 by , 19 months ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:4 by , 19 months ago
Release 8.2.0 (released Feb 18, 2025)
Dependencies
- Drop Python 3.10 support.
Incompatible changes
- Remove the internal and undocumented
has_equationsdata from the :py:class:`!MathDomain` domain. The undocumented :py:meth:`!MathDomain.has_equations` method now unconditionally returnsTrue. These are replaced by thehas_maths_elementskey of the page context dict. - HTML output for sequences of keys in the :rst:role:`kbd` role
no longer uses a
<kbd class="kbd compound">element to wrap the keys and separators, but places them directly in the relevant parent node. This means that CSS rulesets targetingkbd.compoundor.kbd.compoundwill no longer have any effect.
Deprecated
- Deprecate the
SingleHTMLBuilder.fix_refurismethod. - Un-deprecate
sphinx.util.import_object.
Features added
- Add a new
duplicate_declarationwarning type, withduplicate_declaration.candduplicate_declaration.cppsubtypes. - linkcode: Allow extensions to add support for a domain by defining the keys that should be present.
- Add a
classoption to the :rst:dir:`autosummary` directive. - Napoleon: Unify the type preprocessing logic to allow Google-style docstrings to use the optional and default keywords.
- Implement the :rst:role:`kbd
role as aSphinxRole`. - Enable colour by default in when running on CI.
- Allow supressing warnings from the :rst:dir:`toctree` directive
when a glob pattern doesn't match any documents,
via the new
toc.empty_globwarning sub-type. - Add the new
autodoc.mocked_objectwarnings sub-type. - autodoc: Use :file:
.pyitype stub files to auto-document native modules. - Enable configuration of trailing commas in multi-line signatures
in the Python and Javascript domains, via the new
:confval:
python_trailing_comma_in_multi_line_signaturesand :confval:javascript_trailing_comma_in_multi_line_signaturesconfiguration options. - Rename the :rst:dir:`math
directive'snowrap` option to :rst:dir:`math:no-wrap`. - Added the option to disable the use of type comments in
via the new :confval:
autodoc_use_type_commentsoption, which defaults toTruefor backwards compatibility. The default will change toFalsein Sphinx 10. - Add the new
ref.anywarnings sub-type to allow suppressing the ambiguous 'any' cross-reference warning. - The Python and JavaScript module directives now support
the
:no-index-entry:option. - autodoc: Allow directives to use
:no-index-entry:and include the:no-index:and:no-index-entry:options within :confval:autodoc_default_options. - Add support for short signatures in autosummary.
- Change the signature prefix for abstract methods in the Python domain to *abstractmethod* from *abstract*.
- Support the
:abstract:option for classes, methods, and properties in the Python domain. - Add the :ref:
collapsible <collapsible-admonitions>option to admonition directives. - Add :rst:dir:`inheritance-diagram:include-subclasses` option to the :rst:dir:`inheritance-diagram` directive.
- autodoc: Add support for :confval:
python_display_short_literal_types. - Always print the full context when Sphinx encounters an internal error.
- Introduce the :rst:role:`py:deco` role to cross-reference decorator functions and methods in the Python domain.
- Add the :confval:
intersphinx_resolve_selfoption to resolve an intersphinx reference to the current project. - Add ability to skip a particular section using the
no-searchclass. - Remove hardcoding from handling :class:
~sphinx.addnodes.productionlistnodes in all writers, to improve flexibility. - Use
misc.highlighting_failuresubtype for Pygments unknown lexers. - Insert abbreviation nodes (hover text) for positional- and keyword-only separators in Python signatures.
- Add the :mod:
sphinx.ext.apidocextension, to automate API documentation generation from Python modules.
Bugs fixed
- autosummary: Respect an empty module
all. - HTML Search: use
Mapto store per-file term scores. - LaTeX docs:
pdflatexindex creation may fail for index entries in French. See :confval:latex_use_xindy. - LaTeX: fix a typo from v7.4.0 in a default for
\sphinxboxsetup. - HTML Search: check that query terms exist as properties in term indices before accessing them.
- linkcheck: match redirect URIs against :confval:
linkcheck_ignoreby overriding session-levelrequests.get_redirect_target. - viewcode: Fix issue where import paths differ from the directory structure.
- autodoc: fix detection of class methods implemented in C.
- Always copy static files when building, regardless of whether any documents have changed since the previous build.
- autodoc: fix ordering of members when using
groupwisefor :confval:autodoc_member_order. Class methods are now rendered before static methods, which themselves are rendered before regular methods and attributes. - Avoid rendering a trailing comma in C and C++ multi-line signatures.
- autodoc: Fix resolution for
pathlibtypes. - autodoc: Correctly handle multiple inheritance.
- Properly convert command-line overrides for Boolean types.
- Use the correct indentation for continuation lines in :rst:dir:`productionlist` directives.
- Fix parsing of PEP 695 functions with return annotations.
Testing
- Correctness fixup for
test_html_multi_line_copyright.
comment:5 by , 19 months ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed at commits
a3b2c9cbb1 Update to sphinx-8.2.0 (Python module). 6eef5f7668 Update to sentry-sdk-2.22.0 (Python module).
Note:
See TracTickets
for help on using tickets.

8.2.0 adds the requirement of the roman-numerals-py module.