Debian Codegraph @

doc/changes/7.2.rst

raw
1 ==========
2 Sphinx 7.2
3 ==========
4
5
6 Release 7.2.6 (released Sep 13, 2023)
7 =====================================
8
9 Bugs fixed
10 ----------
11
12 * #11679: Add the :envvar:`!SPHINX_AUTODOC_RELOAD_MODULES` environment variable,
13 which if set reloads modules when using autodoc with ``TYPE_CHECKING = True``.
14 Patch by Matt Wozniski and Adam Turner.
15 * #11679: Use :py:func:`importlib.reload` to reload modules in autodoc.
16 Patch by Matt Wozniski and Adam Turner.
17
18 Release 7.2.5 (released Aug 30, 2023)
19 =====================================
20
21 Bugs fixed
22 ----------
23
24 * #11645: Fix a regression preventing autodoc from importing modules within
25 packages that make use of ``if typing.TYPE_CHECKING:`` to guard circular
26 imports needed by type checkers.
27 Patch by Matt Wozniski.
28 * #11634: Fixed inheritance diagram relative link resolution
29 for sibling files in a subdirectory.
30 Patch by Albert Shih.
31 * #11659: Allow ``?config=...`` in :confval:`mathjax_path`.
32 * #11654: autodoc: Fail with a more descriptive error message
33 when an object claims to be an instance of ``type``,
34 but is not a class.
35 Patch by James Braza.
36 * 11620: Cease emitting :event:`source-read` events for files read via
37 the :dudir:`include` directive.
38 * 11620: Add a new :event:`include-read` for observing and transforming
39 the content of included files via the :dudir:`include` directive.
40 * #11627: Restore support for copyright lines of the form ``YYYY``
41 when ``SOURCE_DATE_EPOCH`` is set.
42
43 Release 7.2.4 (released Aug 28, 2023)
44 =====================================
45
46 Bugs fixed
47 ----------
48
49 * #11618: Fix a regression in the MoveModuleTargets transform,
50 introduced in #10478 (#9662).
51 * #11649: linkcheck: Resolve hanging tests for timezones west of London
52 and incorrect conversion from UTC to offsets from the UNIX epoch.
53 Patch by Dmitry Shachnev and Adam Turner.
54
55 Release 7.2.3 (released Aug 23, 2023)
56 =====================================
57
58 Dependencies
59 ------------
60
61 * #11576: Require sphinxcontrib-serializinghtml 1.1.9.
62
63 Bugs fixed
64 ----------
65
66 * Fix regression in ``autodoc.Documenter.parse_name()``.
67 * Fix regression in JSON serialisation.
68 * #11543: autodoc: Support positional-only parameters in ``classmethod`` methods
69 when ``autodoc_preserve_defaults`` is ``True``.
70 * Restore support string methods on path objects.
71 This is deprecated and will be removed in Sphinx 8.
72 Use :py:func:`os.fspath` to convert :py:class:`~pathlib.Path` objects to strings,
73 or :py:class:`~pathlib.Path`'s methods to work with path objects.
74
75 Release 7.2.2 (released Aug 17, 2023)
76 =====================================
77
78 Bugs fixed
79 ----------
80
81 * Fix the signature of the ``StateMachine.insert_input()`` patch,
82 for when calling with keyword arguments.
83 * Fixed membership testing (``in``) for the :py:class:`str` interface
84 of the asset classes (``_CascadingStyleSheet`` and ``_JavaScript``),
85 which several extensions relied upon.
86 * Fixed a type error in ``SingleFileHTMLBuilder._get_local_toctree``,
87 ``includehidden`` may be passed as a string or a boolean.
88 * Fix ``:noindex:`` for ``PyModule`` and ``JSModule``.
89
90 Release 7.2.1 (released Aug 17, 2023)
91 =====================================
92
93 Bugs fixed
94 ----------
95
96 * Restored the the :py:class:`str` interface of the asset classes
97 (``_CascadingStyleSheet`` and ``_JavaScript``),
98 which several extensions relied upon.
99 This will be removed in Sphinx 9.
100 * Restored calls to ``Builder.add_{css,js}_file()``,
101 which several extensions relied upon.
102 * Restored the private API ``TocTree.get_toctree_ancestors()``,
103 which several extensions relied upon.
104
105 Release 7.2.0 (released Aug 17, 2023)
106 =====================================
107
108 Dependencies
109 ------------
110
111 * #11511: Drop Python 3.8 support.
112 * #11576: Require Pygments 2.14 or later.
113
114 Deprecated
115 ----------
116
117 * #11512: Deprecate ``sphinx.util.md5`` and ``sphinx.util.sha1``.
118 Use ``hashlib`` instead.
119 * #11526: Deprecate ``sphinx.testing.path``.
120 Use ``os.path`` or ``pathlib`` instead.
121 * #11528: Deprecate ``sphinx.util.split_index_msg`` and ``sphinx.util.split_into``.
122 Use ``sphinx.util.index_entries.split_index_msg`` instead.
123 * Deprecate ``sphinx.builders.html.Stylesheet``
124 and ``sphinx.builders.html.Javascript``.
125 Use ``sphinx.application.Sphinx.add_css_file()``
126 and ``sphinx.application.Sphinx.add_js_file()`` instead.
127 * #11582: Deprecate ``sphinx.builders.html.StandaloneHTMLBuilder.css_files`` and
128 ``sphinx.builders.html.StandaloneHTMLBuilder.script_files``.
129 Use ``sphinx.application.Sphinx.add_css_file()``
130 and ``sphinx.application.Sphinx.add_js_file()`` instead.
131 * #11459: Deprecate ``sphinx.ext.autodoc.preserve_defaults.get_function_def()``.
132 Patch by Bénédikt Tran.
133
134 Features added
135 --------------
136
137 * #11526: Support ``os.PathLike`` types and ``pathlib.Path`` objects
138 in many more places.
139 * #5474: coverage: Print summary statistics tables.
140 Patch by Jorge Leitao.
141 * #6319: viewcode: Add :confval:`viewcode_line_numbers` to control
142 whether line numbers are added to rendered source code.
143 Patch by Ben Krikler.
144 * #9662: Add the ``:no-typesetting:`` option to suppress textual output
145 and only create a linkable anchor.
146 Patch by Latosha Maltba.
147 * #11221: C++: Support domain objects in the table of contents.
148 Patch by Rouslan Korneychuk.
149 * #10938: doctest: Add :confval:`doctest_show_successes` option.
150 Patch by Trey Hunner.
151 * #11533: Add ``:no-index:``, ``:no-index-entry:``, and ``:no-contents-entry:``.
152 * #11572: Improve ``debug`` logging of reasons why files are detected as out of
153 date.
154 Patch by Eric Larson.
155 * #10678: Emit :event:`source-read` events for files read via
156 the :dudir:`include` directive.
157 Patch by Halldor Fannar.
158 * #11570: Use short names when using :pep:`585` built-in generics.
159 Patch by Riccardo Mori.
160 * #11300: Improve ``SigElementFallbackTransform`` fallback logic and signature
161 text elements nodes. See :doc:`the documentation </extdev/nodes>` for more
162 details.
163 Patch by Bénédikt Tran.
164 * Allow running Sphinx with ``python -m sphinx build ...``.
165
166 Bugs fixed
167 ----------
168
169 * #11077: graphviz: Fix relative links from within the graph.
170 Patch by Ralf Grubenmann.
171 * #11529: Line Block in LaTeX builder outputs spurious empty token.
172 Patch by Adrian Vollmer.
173 * #11196: autosummary: Summary line extraction failed with "e.g."
174 * #10614: Fixed a number of bugs in inheritance diagrams that resulted in
175 missing or broken links.
176 Patch by Albert Shih.
177 * #9428: Exclude substitution definitions when running the ``gettext`` builder.
178 Patch by Alvin Wong.
179 * #10795: Raise a descriptive error if ``graphviz_dot`` is falsy.
180 * #11546: Translated nodes identical to their original text are now marked
181 with the ``translated=True`` attribute.
182 * #10049: html: Change "Permalink" to "Link" for title text in link anchors.
183 * #4225: Relax Pygments parsing on lexing failures.
184 * #11246: Allow inline links in the first line of a docstring and one-line
185 type comments ``#: :meta ...:`` when using :mod:`sphinx.ext.napoleon`.
186 Patch by Bénédikt Tran.
187 * #10930: Highlight all search terms on the search results page.
188 Patch by Dmitry Shachnev.
189 * #11473: Type annotations containing :py:data:`~typing.Literal` enumeration
190 values now render correctly.
191 Patch by Bénédikt Tran.
192 * #11591: Fix support for C coverage in ``sphinx.ext.coverage`` extension.
193 Patch by Stephen Finucane.
194 * #11594: HTML Theme: Enhancements to horizontal scrolling on smaller
195 devices in the ``agogo`` theme.
196 Patch by Lukas Engelter.
197 * #11459: Fix support for async and lambda functions in
198 ``sphinx.ext.autodoc.preserve_defaults``.
199 Patch by Bénédikt Tran.
200
201 Testing
202 -------
203
204 * #11577: pytest: Fail tests on "XPASS".
205 * #11577: pytest: Use "importlib" import mode.
206 * #11577: pytest: Set PYTHONWARNINGS=error.
207 * #11577: pytest: Set strict config and strict markers.