| 1 |
========== |
| 2 |
Sphinx 7.4 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 7.4.7 (released Jul 20, 2024) |
| 7 |
===================================== |
| 8 |
|
| 9 |
Bugs fixed |
| 10 |
---------- |
| 11 |
|
| 12 |
* #12096: Warn when files are overwritten in the build directory. |
| 13 |
Patch by Adam Turner and Bénédikt Tran. |
| 14 |
* #12620: Ensure that old-style object description options are respected. |
| 15 |
Patch by Adam Turner. |
| 16 |
* #12601, #12625: Support callable objects in :py:class:`~typing.Annotated` type |
| 17 |
metadata in the Python domain. |
| 18 |
Patch by Adam Turner. |
| 19 |
* #12601, #12622: Resolve :py:class:`~typing.Annotated` warnings with |
| 20 |
``sphinx.ext.autodoc``, |
| 21 |
especially when using :mod:`dataclasses` as type metadata. |
| 22 |
Patch by Adam Turner. |
| 23 |
* #12589, #12626: autosummary: Fix warnings with :rst:role:`!autolink`. |
| 24 |
Patch by Adam Turner. |
| 25 |
|
| 26 |
Release 7.4.6 (released Jul 18, 2024) |
| 27 |
===================================== |
| 28 |
|
| 29 |
Bugs fixed |
| 30 |
---------- |
| 31 |
|
| 32 |
* #12589, #9743, #12609: autosummary: Do not add the package prefix when |
| 33 |
generating autosummary directives for modules within a package. |
| 34 |
Patch by Adam Turner. |
| 35 |
* #12613: Reduce log severity for ambiguity detection during inventory loading. |
| 36 |
Patch by James Addison. |
| 37 |
|
| 38 |
Release 7.4.5 (released Jul 16, 2024) |
| 39 |
===================================== |
| 40 |
|
| 41 |
Bugs fixed |
| 42 |
---------- |
| 43 |
|
| 44 |
* #12593, #12600: Revert coercing the type of selected :confval:`html_sidebars` |
| 45 |
values to a list. |
| 46 |
Log an error message when string values are detected. |
| 47 |
Patch by Adam Turner. |
| 48 |
* #12594: LaTeX: since 7.4.0, :rst:dir:`seealso` and other "light" admonitions |
| 49 |
now break PDF builds if they contain a :dudir:`figure` directive; and also |
| 50 |
if they are contained in a table cell (rendered by ``tabulary``). |
| 51 |
Patch by Jean-François B. |
| 52 |
|
| 53 |
Release 7.4.4 (released Jul 15, 2024) |
| 54 |
===================================== |
| 55 |
|
| 56 |
Bugs fixed |
| 57 |
---------- |
| 58 |
|
| 59 |
* #12585, #12586: Do not warn when an intersphinx inventory contains |
| 60 |
case-insensitively ambiguous duplicate items. |
| 61 |
Patch by James Addison. |
| 62 |
|
| 63 |
Release 7.4.3 (released Jul 15, 2024) |
| 64 |
===================================== |
| 65 |
|
| 66 |
Bugs fixed |
| 67 |
---------- |
| 68 |
|
| 69 |
* #12582: Restore support for list-styled :confval:`source_suffix` values |
| 70 |
with extensions that register parsers. |
| 71 |
Patch by Adam Turner. |
| 72 |
|
| 73 |
Release 7.4.2 (released Jul 15, 2024) |
| 74 |
===================================== |
| 75 |
|
| 76 |
Bugs fixed |
| 77 |
---------- |
| 78 |
|
| 79 |
* #12580, #12583: Resolve failures with the C domain on incremental builds |
| 80 |
with Sphinx 7.3.7 and earlier. |
| 81 |
Patch by Adam Turner. |
| 82 |
|
| 83 |
Release 7.4.1 (released Jul 15, 2024) |
| 84 |
===================================== |
| 85 |
|
| 86 |
Bugs fixed |
| 87 |
---------- |
| 88 |
|
| 89 |
* Fix invalid HTML when a rubric node with invalid ``heading-level`` is used. |
| 90 |
Patch by Adam Turner. |
| 91 |
* #12579, #12581: Restore support for ``typing.ParamSpec`` in autodoc. |
| 92 |
Patch by Adam Turner. |
| 93 |
|
| 94 |
Release 7.4.0 (released Jul 15, 2024) |
| 95 |
===================================== |
| 96 |
|
| 97 |
Dependencies |
| 98 |
------------ |
| 99 |
|
| 100 |
* #12555: Drop Docutils 0.18.1 and Docutils 0.19 support. |
| 101 |
Patch by Adam Turner. |
| 102 |
* LaTeX: the ``xcolor`` package is now required (but is for example part of |
| 103 |
Ubuntu ``texlive-latex-recommended`` which has always been required). |
| 104 |
* LaTeX: the ``fontawesome5`` LaTeX package is needed for the default choices |
| 105 |
of icons now used in admonition titles in PDF output; but if unavailable the |
| 106 |
PDF build will simply silently omit rendering such icons. Check the |
| 107 |
documentation of the ``iconpackage`` key of :ref:`'sphinxsetup' |
| 108 |
<latexsphinxsetup>` for more. |
| 109 |
|
| 110 |
Deprecated |
| 111 |
---------- |
| 112 |
|
| 113 |
* LaTeX: the ``sphinxlightbox`` environment is not used anymore, all types |
| 114 |
of admonitions use (by default) only ``sphinxheavybox``. |
| 115 |
|
| 116 |
Features added |
| 117 |
-------------- |
| 118 |
|
| 119 |
.. rst-class:: compact |
| 120 |
|
| 121 |
* #11165: Support the `officially recommended`_ ``.jinja`` suffix for template |
| 122 |
files. |
| 123 |
Patch by James Addison and Adam Turner |
| 124 |
|
| 125 |
.. _officially recommended: https://jinja.palletsprojects.com/en/latest/templates/#template-file-extension |
| 126 |
* #12325: Flatten ``Union[Literal[T], Literal[U], ...]`` to ``Literal[T, U, ...]`` |
| 127 |
when turning annotations into strings. |
| 128 |
Patch by Adam Turner. |
| 129 |
* #12319: ``sphinx.ext.extlinks``: Add ``extlink-{name}`` CSS class to links. |
| 130 |
Patch by Hugo van Kemenade. |
| 131 |
* #12387: Improve CLI progress message, when copying assets. |
| 132 |
Patch by INADA Nakoi and Bénédikt Tran. |
| 133 |
* #12361: Add :attr:`.BuildEnvironment.parser`. |
| 134 |
Patch by Chris Sewell. |
| 135 |
* #12358: Add :attr:`.Sphinx.fresh_env_used`. |
| 136 |
Patch by Chris Sewell. |
| 137 |
* #12329: Add detection of ambiguous ``std:label`` and ``std:term`` references during |
| 138 |
loading and resolution of Intersphinx targets. |
| 139 |
Patch by James Addison. |
| 140 |
* #12422: Do not duplicate "navigation" in aria-label of built-in themes. |
| 141 |
Patch by Thomas Weißschuh |
| 142 |
* #12421: Include project name in ``logo_alt`` of built-in themes. |
| 143 |
Patch by Thomas Weißschuh |
| 144 |
* #12448: Add :option:`sphinx-apidoc --remove-old` option. |
| 145 |
Patch by Chris Sewell. |
| 146 |
* #12456: Add :option:`sphinx-autogen --remove-old` option. |
| 147 |
Patch by Chris Sewell. |
| 148 |
* #12479: Add warning subtype ``toc.no_title``. |
| 149 |
Patch by Ondřej Navrátil. |
| 150 |
* #12492: Add helper methods for parsing reStructuredText content into nodes from |
| 151 |
within a directive. |
| 152 |
|
| 153 |
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_content_to_nodes()` |
| 154 |
parses the directive's content and returns a list of Docutils nodes. |
| 155 |
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_text_to_nodes()` |
| 156 |
parses the provided text and returns a list of Docutils nodes. |
| 157 |
- :py:meth:`~sphinx.util.docutils.SphinxDirective.parse_inline()` |
| 158 |
parses the provided text into inline elements and text nodes. |
| 159 |
|
| 160 |
Patch by Adam Turner. |
| 161 |
* #12258: Support ``typing_extensions.Unpack`` |
| 162 |
Patch by Bénédikt Tran and Adam Turner. |
| 163 |
* #12524: Add a ``class`` option to the :rst:dir:`toctree` directive. |
| 164 |
Patch by Tim Hoffmann. |
| 165 |
* #12536: Add the :rst:dir:`confval` directive. |
| 166 |
Patch by Adam Turner. |
| 167 |
* #12537: :confval:`c_id_attributes`, :confval:`c_paren_attributes`, |
| 168 |
:confval:`cpp_id_attributes`, and :confval:`cpp_paren_attributes` |
| 169 |
can now be a tuple of strings. |
| 170 |
:confval:`c_extra_keywords`, :confval:`gettext_additional_targets`, |
| 171 |
:confval:`html_domain_indices`, :confval:`latex_domain_indices`, |
| 172 |
and :confval:`texinfo_domain_indices`, |
| 173 |
can now be a set of strings. |
| 174 |
Patch by Adam Turner. |
| 175 |
* #12523: Added configuration option, :confval:`math_numsep`, to define the |
| 176 |
separator for math numbering. |
| 177 |
Patch by Thomas Fanning |
| 178 |
* #11592: Add :confval:`coverage_modules` to the coverage builder |
| 179 |
to allow explicitly specifying which modules should be documented. |
| 180 |
Patch by Stephen Finucane. |
| 181 |
* #7896, #11989: Add a :rst:dir:`py:type` directive for documenting type aliases, |
| 182 |
and a :rst:role:`py:type` role for linking to them. |
| 183 |
Patch by Ashley Whetter. |
| 184 |
* #12549: Add optional ``description`` argument to |
| 185 |
:meth:`.Sphinx.add_config_value`. |
| 186 |
Patch by Chris Sewell. |
| 187 |
* #6792: Prohibit module import cycles in :mod:`sphinx.ext.autosummary`. |
| 188 |
Patch by Trevor Bekolay. |
| 189 |
* #12508: LaTeX: Revamped styling of all admonitions, with addition of a |
| 190 |
title row with icon. |
| 191 |
Patch by Jean-François B. |
| 192 |
* #11773: Display :py:class:`~typing.Annotated` annotations |
| 193 |
with their metadata in the Python domain. |
| 194 |
Patch by Adam Turner and David Stansby. |
| 195 |
* #12506: Add ``heading-level`` option to :rst:dir:`rubric` directive. |
| 196 |
Patch by Chris Sewell. |
| 197 |
* #12567: Add the :event:`write-started` event. |
| 198 |
Patch by Chris Sewell. |
| 199 |
|
| 200 |
Bugs fixed |
| 201 |
---------- |
| 202 |
|
| 203 |
* #12314: Properly format ``collections.abc.Callable`` in annotations. |
| 204 |
Patch by Adam Turner. |
| 205 |
* #12162: Fix a performance regression in the C domain that has |
| 206 |
been present since version 3.0.0. |
| 207 |
Patch by Donald Hunter. |
| 208 |
* #12320: Fix removal of anchors from search summaries (regression in 7.3.0). |
| 209 |
Patch by Will Lachance. |
| 210 |
* #12251: Fix ``merge_domaindata()`` in ``sphinx.ext.duration``. |
| 211 |
Patch by Matthias Geier. |
| 212 |
* #12224: Properly detect WebP files. |
| 213 |
Patch by Benjamin Cabé. |
| 214 |
* #12380: LaTeX: Avoid footnote markers ``Page N`` when ``N`` is already |
| 215 |
the current page number. |
| 216 |
Patch by Jean-François B. |
| 217 |
* #12410: LaTeX: for French and ``'lualatex'`` as :confval:`latex_engine` |
| 218 |
use ``babel`` as with ``'xelatex'`` (and not ``polyglossia``). |
| 219 |
Patch by Jean-François B. |
| 220 |
* #8807, #12520: LaTeX: let :rst:dir:`todolist` produce correct hyperlinks |
| 221 |
in PDF. |
| 222 |
Patch by Jean-François B. |
| 223 |
* #12416: Ensure that configuration setting aliases are always synchronised |
| 224 |
when one value or the other is modified. |
| 225 |
Patch by Bénédikt Tran. |
| 226 |
* #12220: Fix loading custom template translations for ``en`` locale. |
| 227 |
Patch by Nicolas Peugnet. |
| 228 |
* #12459: Add valid-type arguments to the ``linkcheck_rate_limit_timeout`` |
| 229 |
configuration setting. |
| 230 |
Patch by James Addison. |
| 231 |
* #12331: Resolve data-URI-image-extraction regression from v7.3.0 affecting |
| 232 |
builders without native support for data-URIs in their output format. |
| 233 |
Patch by James Addison. |
| 234 |
* #12494: Fix invalid genindex.html file produced with translated docs |
| 235 |
(regression in 7.1.0). |
| 236 |
Patch by Nicolas Peugnet. |
| 237 |
* #11961: Omit anchor references from document title entries in the search index, |
| 238 |
removing duplication of search results. |
| 239 |
Patch by James Addison. |
| 240 |
* #12425: Use Docutils' SVG processing in the HTML builder |
| 241 |
and remove Sphinx's custom logic. |
| 242 |
Patch by Tunç Başar Köse. |
| 243 |
* #12391: Adjust scoring of matches during HTML search so that document main |
| 244 |
titles tend to rank higher than subsection titles. In addition, boost matches |
| 245 |
on the name of programming domain objects relative to title/subtitle matches. |
| 246 |
Patch by James Addison and Will Lachance. |
| 247 |
* #9634: Do not add a fallback language by stripping the country code. |
| 248 |
Patch by Alvin Wong. |
| 249 |
* #12352: Add domain objects to the table of contents |
| 250 |
in the same order as defined in the document. |
| 251 |
Previously, each domain used language-specific nesting rules, |
| 252 |
which removed control from document authors. |
| 253 |
Patch by Jakob Lykke Andersen and Adam Turner. |
| 254 |
* #11041: linkcheck: Ignore URLs that respond with non-Unicode content. |
| 255 |
Patch by James Addison. |
| 256 |
* #12543: Fix :pep:`695` formatting for LaTeX output. |
| 257 |
Patch by Bénédikt Tran. |
| 258 |
|
| 259 |
Testing |
| 260 |
------- |
| 261 |
|
| 262 |
* karma: refactor HTML search tests to use fixtures generated by Sphinx. |
| 263 |
Patch by James Addison. |