Debian Codegraph @

doc/changes/8.2.rst

raw
1 ==========
2 Sphinx 8.2
3 ==========
4
5
6 Release 8.2.3 (released Mar 02, 2025)
7 =====================================
8
9 Bugs fixed
10 ----------
11
12 * #13403: Define ``_StrPath.__radd__()``.
13 Patch by Adam Turner.
14 * #13399: Fix _CurrentDocument membership testing with '{c,cpp}:parent_symbol'.
15 Patch by Adam Turner.
16
17 Release 8.2.2 (released Mar 02, 2025)
18 =====================================
19
20 Bugs fixed
21 ----------
22
23 * #13392: Fix argument type for ``jieba.load_userdict()``.
24 * Add workaround for ``nbsphinx`` implicit imports.
25 Patch by Adam Turner.
26 * #13402: Ensure inline ``<script/>`` tags are written exactly once.
27 Patch by Dmitry Shachnev and Adam Turner.
28 * #13391: apidoc: Fix TOC file not having a title.
29 Patch by Dave Hoese and Adam Turner.
30
31 Release 8.2.1 (released Feb 21, 2025)
32 =====================================
33
34 Bugs fixed
35 ----------
36
37 * #13367: Correct spelling of ``highlighting_failure`` in warning sub-type.
38 Patch by Bart Kamphorst.
39 * #13377: Restore support for using ``sphinx.testing.path`` paths with
40 ``sphinx.testing.fixtures``.
41 Patch by Kazuya Takei.
42 * #13380: viewcode: Fix importing modules more than once.
43 Patch by Dave Hoese.
44 * #13382: Napoleon: Use the right valid types for configuration values.
45 Patch by Adam Turner.
46 * #13376: Fix copying assets from relative :confval:`html_static_path` and
47 :confval:`html_extra_path` entries.
48 Patch by Adam Turner.
49
50 Release 8.2.0 (released Feb 18, 2025)
51 =====================================
52
53 Dependencies
54 ------------
55
56 * #13000: Drop Python 3.10 support.
57
58 Incompatible changes
59 --------------------
60
61 * #13044: Remove the internal and undocumented ``has_equations`` data
62 from the :py:class:`!MathDomain` domain.
63 The undocumented :py:meth:`!MathDomain.has_equations` method
64 now unconditionally returns ``True``.
65 These are replaced by the ``has_maths_elements`` key of the page context dict.
66 Patch by Adam Turner.
67 * #13227: HTML output for sequences of keys in the :rst:role:`kbd` role
68 no longer uses a ``<kbd class="kbd compound">`` element to wrap
69 the keys and separators, but places them directly in the relevant parent node.
70 This means that CSS rulesets targeting ``kbd.compound`` or ``.kbd.compound``
71 will no longer have any effect.
72 Patch by Adam Turner.
73
74 Deprecated
75 ----------
76
77 * #13037: Deprecate the ``SingleHTMLBuilder.fix_refuris`` method.
78 Patch by James Addison.
79 * #13083, #13330: Un-deprecate ``sphinx.util.import_object``.
80 Patch by Matthias Geier.
81
82 Features added
83 --------------
84
85 * #13173: Add a new ``duplicate_declaration`` warning type,
86 with ``duplicate_declaration.c`` and ``duplicate_declaration.cpp`` subtypes.
87 Patch by Julien Lecomte and Adam Turner.
88 * #11824: linkcode: Allow extensions to add support for a domain by defining
89 the keys that should be present.
90 Patch by Nicolas Peugnet.
91 * #13144: Add a ``class`` option to the :rst:dir:`autosummary` directive.
92 Patch by Tim Hoffmann.
93 * #13146: Napoleon: Unify the type preprocessing logic to allow
94 Google-style docstrings to use the optional and default keywords.
95 Patch by Chris Barrick.
96 * #13227: Implement the :rst:role:`kbd` role as a ``SphinxRole``.
97 Patch by Adam Turner.
98 * #13065: Enable colour by default in when running on CI.
99 Patch by Adam Turner.
100 * #13230: Allow supressing warnings from the :rst:dir:`toctree` directive
101 when a glob pattern doesn't match any documents,
102 via the new ``toc.empty_glob`` warning sub-type.
103 Patch by Slawek Figiel.
104 * #9732: Add the new ``autodoc.mocked_object`` warnings sub-type.
105 Patch by Cyril Roelandt.
106 * #7630, #4824: autodoc: Use :file:`.pyi` type stub files
107 to auto-document native modules.
108 Patch by Adam Turner, partially based on work by Allie Fitter.
109 * #12975: Enable configuration of trailing commas in multi-line signatures
110 in the Python and Javascript domains, via the new
111 :confval:`python_trailing_comma_in_multi_line_signatures` and
112 :confval:`javascript_trailing_comma_in_multi_line_signatures`
113 configuration options.
114 * #13264: Rename the :rst:dir:`math` directive's ``nowrap`` option
115 to :rst:dir:`math:no-wrap`.
116 Patch by Adam Turner.
117 * #13269: Added the option to disable the use of type comments in
118 via the new :confval:`autodoc_use_type_comments` option,
119 which defaults to ``True`` for backwards compatibility.
120 The default will change to ``False`` in Sphinx 10.
121 Patch by Adam Turner.
122 * #9732: Add the new ``ref.any`` warnings sub-type
123 to allow suppressing the ambiguous 'any' cross-reference warning.
124 Patch by Simão Afonso and Adam Turner.
125 * #13272: The Python and JavaScript module directives now support
126 the ``:no-index-entry:`` option.
127 Patch by Adam Turner.
128 * #12233: autodoc: Allow directives to use ``:no-index-entry:``
129 and include the ``:no-index:`` and ``:no-index-entry:`` options within
130 :confval:`autodoc_default_options`.
131 Patch by Jonny Saunders and Adam Turner.
132 * #13172: Add support for short signatures in autosummary.
133 Patch by Tim Hoffmann.
134 * #13271: Change the signature prefix for abstract methods
135 in the Python domain to *abstractmethod* from *abstract*.
136 Patch by Adam Turner.
137 * #13271: Support the ``:abstract:`` option for
138 classes, methods, and properties in the Python domain.
139 Patch by Adam Turner.
140 * #12507: Add the :ref:`collapsible <collapsible-admonitions>` option
141 to admonition directives.
142 Patch by Chris Sewell.
143 * #8191, #8159: Add :rst:dir:`inheritance-diagram:include-subclasses` option to
144 the :rst:dir:`inheritance-diagram` directive.
145 Patch by Walter Dörwald.
146 * #11995: autodoc: Add support for :confval:`python_display_short_literal_types`.
147 Patch by Bénédikt Tran and Adam Turner.
148 * #13163: Always print the full context when Sphinx encounters an internal error.
149 Patch by Kevin Deldycke and Adam Turner.
150 * #13105: Introduce the :rst:role:`py:deco` role to cross-reference decorator
151 functions and methods in the Python domain.
152 Patch by Adam Turner.
153 * #9169: Add the :confval:`intersphinx_resolve_self` option
154 to resolve an intersphinx reference to the current project.
155 Patch by Jakob Lykke Andersen and Adam Turner.
156 * #11280: Add ability to skip a particular section using the ``no-search`` class.
157 Patch by Will Lachance.
158 * #13326: Remove hardcoding from handling :class:`~sphinx.addnodes.productionlist`
159 nodes in all writers, to improve flexibility.
160 Patch by Adam Turner.
161 * #13335: Use ``misc.highlighting_failure`` subtype for Pygments unknown lexers.
162 Patch by Bart Kamphorst.
163 * #13354: Insert abbreviation nodes (hover text) for positional- and keyword-only
164 separators in Python signatures.
165 Patch by Adam Turner.
166 * #13333: Add the :mod:`sphinx.ext.apidoc` extension,
167 to automate API documentation generation from Python modules.
168 Patch by Chris Sewell and Adam Turner.
169
170 Bugs fixed
171 ----------
172
173 * #12463: autosummary: Respect an empty module ``__all__``.
174 Patch by Valentin Pratz
175 * #13060: HTML Search: use ``Map`` to store per-file term scores.
176 Patch by James Addison
177 * #13130: LaTeX docs: ``pdflatex`` index creation may fail for index entries
178 in French. See :confval:`latex_use_xindy`.
179 Patch by Jean-François B.
180 * #13152: LaTeX: fix a typo from v7.4.0 in a default for ``\sphinxboxsetup``.
181 Patch by Jean-François B.
182 * #13096: HTML Search: check that query terms exist as properties in
183 term indices before accessing them.
184 * #11233: linkcheck: match redirect URIs against :confval:`linkcheck_ignore` by
185 overriding session-level ``requests.get_redirect_target``.
186 * #13195: viewcode: Fix issue where import paths differ from the directory
187 structure.
188 Patch by Ben Egan and Adam Turner.
189 * #13188: autodoc: fix detection of class methods implemented in C.
190 Patch by Bénédikt Tran.
191 * #1810: Always copy static files when building, regardless of whether
192 any documents have changed since the previous build.
193 Patch by Adam Turner.
194 * #13201: autodoc: fix ordering of members when using ``groupwise``
195 for :confval:`autodoc_member_order`. Class methods are now rendered
196 before static methods, which themselves are rendered before regular
197 methods and attributes.
198 Patch by Bénédikt Tran.
199 * #12975: Avoid rendering a trailing comma in C and C++ multi-line signatures.
200 * #13178: autodoc: Fix resolution for ``pathlib`` types.
201 Patch by Adam Turner.
202 * #13136: autodoc: Correctly handle multiple inheritance.
203 Patch by Pavel Holica
204 * #13273, #13318: Properly convert command-line overrides for Boolean types.
205 Patch by Adam Turner.
206 * #13302, #13319: Use the correct indentation for continuation lines
207 in :rst:dir:`productionlist` directives.
208 Patch by Adam Turner.
209 * #13328: Fix parsing of PEP 695 functions with return annotations.
210 Patch by Bénédikt Tran. Initial work by Arash Badie-Modiri.
211
212 Testing
213 -------
214
215 * #13224: Correctness fixup for ``test_html_multi_line_copyright``.
216 Patch by Colin Watson, applied by James Addison.