Debian Codegraph @

doc/changes/9.0.rst

raw
1 ==========
2 Sphinx 9.0
3 ==========
4
5
6 Release 9.0.4 (released Dec 04, 2025)
7 =====================================
8
9 Bugs fixed
10 ----------
11
12 * #14143: Fix spurious build warnings when translators reorder references
13 in strings, or use translated display text in references.
14 Patch by Matt Wang.
15
16 Release 9.0.3 (released Dec 04, 2025)
17 =====================================
18
19 Bugs fixed
20 ----------
21
22 * #14142: autodoc: Restore some missing exports in :mod:`!sphinx.ext.autodoc`.
23 Patch by Adam Turner.
24
25 Release 9.0.2 (released Dec 03, 2025)
26 =====================================
27
28 Bugs fixed
29 ----------
30
31 * #14142: autodoc: Restore :mod:`!sphinx.ext.autodoc.mock`.
32 Patch by Adam Turner.
33
34 Release 9.0.1 (released Dec 01, 2025)
35 =====================================
36
37 Bugs fixed
38 ----------
39
40 * #13942: autodoc: Restore the mapping interface for options objects.
41 Patch by Adam Turner.
42 * #13942: autodoc: Deprecate the mapping interface for options objects.
43 Patch by Adam Turner.
44 * #13387: Update translations.
45
46 Release 9.0.0 (released Nov 30, 2025)
47 =====================================
48
49 Dependencies
50 ------------
51
52 * #13786: Support `Docutils 0.22`_. Patch by Adam Turner.
53
54 .. _Docutils 0.22: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-22-2026-07-29
55
56 Incompatible changes
57 --------------------
58
59 * #13639: :py:meth:`!SphinxComponentRegistry.create_source_parser` no longer
60 has an *app* parameter, instead taking *config* and *env*.
61 Patch by Adam Turner.
62 * #13679: Non-decodable characters in source files now raise an error.
63 Such bytes have been replaced with '?' along with logging a warning
64 since Sphinx 2.0.
65 Patch by Adam Turner.
66 * #13751, #14089: :mod:`sphinx.ext.autodoc` has been substantially rewritten,
67 and there may be some incompatible changes in edge cases, especially when
68 extensions interact with autodoc internals.
69 The :confval:`autodoc_use_legacy_class_based` option has been added to
70 use the legacy (pre-9.0) implementation of autodoc.
71 Patches by Adam Turner.
72 * #13355: Don't include escaped title content in the search index.
73 Patch by Will Lachance.
74
75 Deprecated
76 ----------
77
78 * 13627: Deprecate remaining public :py:attr:`!.app` attributes,
79 including ``builder.app``, ``env.app``, ``events.app``,
80 and ``SphinxTransform.app``.
81 Patch by Adam Turner.
82 * #13637: Deprecate the :py:meth:`!set_application` method
83 of :py:class:`~sphinx.parsers.Parser` objects.
84 Patch by Adam Turner.
85 * #13644: Deprecate the :py:attr:`!Parser.config` and :py:attr:`!env` attributes.
86 Patch by Adam Turner.
87 * #13665: Deprecate support for non-UTF 8 source encodings,
88 scheduled for removal in Sphinx 10.
89 Patch by Adam Turner.
90 * #13682: Deprecate :py:mod:`!sphinx.io`.
91 Sphinx no longer uses the :py:mod:`!sphinx.io` classes,
92 having replaced them with standard Python I/O.
93 The entire :py:mod:`!sphinx.io` module will be removed in Sphinx 10.
94 Patch by Adam Turner.
95 * #13631: :func:`!sphinx.environment.adapters.toctree.global_toctree_for_doc`
96 and :meth:`!sphinx.environment.BuildEnvironment.get_and_resolve_doctree`
97 will require a *tags* keyword argument from Sphinx 11.
98 It may optionally be passed from Sphinx 9 onwards.
99 Patch by Adam Turner.
100
101 Features added
102 --------------
103
104 * #13332: Add :confval:`doctest_fail_fast` option to exit after the first failed
105 test.
106 Patch by Till Hoffmann.
107 * #13439: linkcheck: Permit warning on every redirect with
108 ``linkcheck_allowed_redirects = {}``.
109 Patch by Adam Turner and James Addison.
110 * #13497: Support C domain objects in the table of contents.
111 * #13500: LaTeX: add support for ``fontawesome6`` package.
112 Patch by Jean-François B.
113 * #13509: autodoc: Detect :py:func:`typing_extensions.overload <typing.overload>`
114 and :py:func:`~typing.final` decorators.
115 Patch by Spencer Brown.
116 * #13535: html search: Update to the latest version of Snowball (v3.0.1).
117 Patch by Adam Turner.
118 * #13647: LaTeX: allow more cases of table nesting.
119 Patch by Jean-François B.
120 * #13657: LaTeX: support CSS3 length units.
121 Patch by Jean-François B.
122 * #13684: intersphinx: Add a file-based cache for remote inventories.
123 The location of the cache directory must not be relied upon externally,
124 as it may change without notice or warning in future releases.
125 Patch by Adam Turner.
126 * #13805: LaTeX: add support for ``fontawesome7`` package.
127 Patch by Jean-François B.
128 * #13508: autodoc: Initial support for :pep:`695` type aliases.
129 Patch by Martin Matouš, Jeremy Maitin-Shepard, and Adam Turner.
130 * #14023: Add the new :confval:`mathjax_config_path` option
131 to load MathJax configuration from a file.
132 Patch by Randolf Scholz and Adam Turner.
133 * #14046: linkcheck: Add the :confval:`linkcheck_case_insensitive_urls` option
134 to allow case-insensitive URL comparison for specific URL patterns.
135 This is useful for links to websites that normalise URL casing (e.g. GitHub)
136 or case-insensitive servers.
137 Patch by Fazeel Usmani and James Addison.
138 * #14075: autosummary: Provide more context in import exception stack traces.
139 Patch by Philipp A.
140 * #13468: Add config options to :mod:`sphinx.ext.duration`.
141 Patch by Erik Bedard and Adam Turner.
142 * #14022: Use MathJax v4 by default in the :mod:`sphinx.ext.mathjax` extension,
143 from v3 previously.
144 To keep using an older version, set the :confval:`mathjax_path` option.
145 Also add the new :confval:`mathjax4_config` option to configure MathJax v4.
146 Note that MathJax v3 is mostly compatible with MathJax v4, so existing
147 :confval:`mathjax3_config` settings should not need to change.
148 Patch by Matthias Geier.
149 * #14029: intersphinx: Fix error in format string interpolation.
150 Patch by Matthieu de Cibeins.
151 * #13894: Add ``source_code_parser`` type to :confval:`suppress_warnings`
152 for grouping issues related to the C and C++ parsers.
153 Patch by Valentin H.
154
155 Bugs fixed
156 ----------
157
158 * #13926: multiple py:type directives for the same canonical type no
159 longer result in spurious duplicate object description warnings.
160 Patch by Jeremy Maitin-Shepard.
161 * #1327: LaTeX: tables using longtable raise error if
162 :rst:dir:`tabularcolumns` specifies automatic widths
163 (``L``, ``R``, ``C``, or ``J``).
164 Patch by Jean-François B.
165 * #3447: LaTeX: when assigning longtable class to table for PDF, it may render
166 "horizontally" and overflow in right margin.
167 Patch by Jean-François B.
168 * #8828: LaTeX: adding a footnote to a longtable cell causes table to occupy
169 full width.
170 Patch by Jean-François B.
171 * #11498: LaTeX: Table in cell fails to build if it has many rows.
172 Patch by Jean-François B.
173 * #11515: LaTeX: longtable does not allow nested table.
174 Patch by Jean-François B.
175 * #11973: LaTeX: links in table captions do not work in PDF.
176 Patch by Jean-François B.
177 * #12821: LaTeX: URLs/links in section titles should render in PDF.
178 Patch by Jean-François B.
179 * #13369: Correctly parse and cross-reference unpacked type annotations.
180 Patch by Alicia Garcia-Raboso.
181 * #13528: Add tilde ``~`` prefix support for :rst:role:`py:deco`.
182 Patch by Shengyu Zhang and Adam Turner.
183 * #13597: LaTeX: table nested in a merged cell leads to invalid LaTeX mark-up
184 and PDF cannot be built.
185 Patch by Jean-François B.
186 * #13619: LaTeX: possible duplicated footnotes in PDF from object signatures
187 (typically if :confval:`latex_show_urls` ``= 'footnote'``).
188 Patch by Jean-François B.
189 * #13635: LaTeX: if a cell contains a table, row coloring is turned off for
190 the next table cells.
191 Patch by Jean-François B.
192 * #13685: gettext: Correctly ignore trailing backslashes.
193 Patch by Bénédikt Tran.
194 * #13712: intersphinx: Don't add "v" prefix to non-numeric versions.
195 Patch by Szymon Karpinski.
196 * #13688: HTML builder: Replace ``<em class="property">`` with
197 ``<span class="property">`` for attribute type annotations
198 to improve `semantic HTML structure
199 <https://html.spec.whatwg.org/multipage/text-level-semantics.html>`__.
200 Patch by Mark Ostroth.
201 * #13812 (discussion): LaTeX: long :rst:dir:`confval` value does not wrap at
202 spaces in PDF.
203 Patch by Jean-François B.
204 * #10785: Autodoc: Allow type aliases defined in the project to be properly
205 cross-referenced when used as type annotations. This makes it possible
206 for objects documented as ``:py:data:`` to be hyperlinked in function signatures.
207 * #13858: doctest: doctest blocks are now correctly added to a group defined by the
208 configuration variable ``doctest_test_doctest_blocks``.
209 * #13885: Coverage builder: Fix TypeError when warning about missing modules.
210 Patch by Damien Ayers.
211 * #13929: Duplicate equation label warnings now have a new warning
212 sub-type, ``ref.equation``.
213 Patch by Jared Dillard.
214 * #13935: autoclass: parent class members no longer considered
215 directly defined in certain cases, depending on autodoc processing
216 order.
217 Patch by Jeremy Maitin-Shepard.
218 * #13939: LaTeX: page break can separate admonition title from contents.
219 Patch by Jean-François B.
220 * #14004: Fix :confval:`autodoc_type_aliases` when they appear in PEP 604
221 union syntax (``Alias | Type``).
222 Patch by Tamika Nomara.
223 * #14059: LaTeX: Footnotes cause pdflatex error with French language
224 (since late June 2025 upstream change to LaTeX ``babel-french``).
225 Patch by Jean-François B.
226 * #13916: HTML Search: do not clear text fragments from the URL on page load.
227 Patch by Harmen Stoppels.
228 * #13944: autodoc: show traceback during import in human readable representation.
229 Patch by Florian Best.
230 * #14006: Support images with data URIs that aren't base64-encoded.
231 Patch by Shengyu Zhang and Adam Turner.
232 * #12797: Fix ``Some type variables (...) are not listed in Generic[...]``
233 TypeError when inheriting from both Generic and autodoc mocked class.
234 Patch by Ikor Jefocur and Daniel Sperber.
235 * #13945: autodoc: Fix handling of undefined names in annotations by using
236 the ``FORWARDREF`` :mod:`annotationlib` format.
237 Patch by Rui Pinheiro and Adam Turner.
238 * #14067: EPUB: unify path separators in manifest items to forward slashes;
239 resolve duplicates in the manifest on Windows.
240 Patch by Akihiro Takizawa.
241 * #13741: text builder: fix an infinite loop when processing CSV tables.
242 Patch by Bénédikt Tran.
243 * #13217: Remove extra parentheses from :rst:dir:`js:function` arguments and errors.
244 Patch by Shengyu Zhang.