| 1 |
========== |
| 2 |
Sphinx 7.3 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 7.3.7 (released Apr 19, 2024) |
| 7 |
===================================== |
| 8 |
|
| 9 |
Bugs fixed |
| 10 |
---------- |
| 11 |
|
| 12 |
* #12299: Defer loading themes defined via entry points until |
| 13 |
their explicit use by the user or a child theme. |
| 14 |
Patch by Adam Turner. |
| 15 |
* #12305: Return the default value for ``theme.get_config()`` with |
| 16 |
an unsupported theme configuration section. |
| 17 |
Patch by Adam Turner. |
| 18 |
|
| 19 |
Release 7.3.6 (released Apr 17, 2024) |
| 20 |
===================================== |
| 21 |
|
| 22 |
Bugs fixed |
| 23 |
---------- |
| 24 |
|
| 25 |
* #12295: Re-export all AST types in the C and C++ domains. |
| 26 |
Patch by Adam Turner. |
| 27 |
* #12295: Re-export various objects from ``sphinx.domains.python._annotations`` |
| 28 |
in ``sphinx.domains.python``. |
| 29 |
Patch by Jacob Chesslo and Adam Turner. |
| 30 |
|
| 31 |
Release 7.3.5 (released Apr 17, 2024) |
| 32 |
===================================== |
| 33 |
|
| 34 |
Bugs fixed |
| 35 |
---------- |
| 36 |
|
| 37 |
* #12295: Re-export various objects from ``sphinx.domains.python._object`` |
| 38 |
in ``sphinx.domains.python``. |
| 39 |
Patch by Jacob Chesslo and Adam Turner. |
| 40 |
|
| 41 |
Release 7.3.4 (released Apr 17, 2024) |
| 42 |
===================================== |
| 43 |
|
| 44 |
Bugs fixed |
| 45 |
---------- |
| 46 |
|
| 47 |
* Handle cases when ``Any`` is not an instance of ``type``. |
| 48 |
Patch by Adam Turner. |
| 49 |
|
| 50 |
Release 7.3.3 (released Apr 17, 2024) |
| 51 |
===================================== |
| 52 |
|
| 53 |
Bugs fixed |
| 54 |
---------- |
| 55 |
|
| 56 |
* #12290: Fix a false-positive warning when setting a configuration value |
| 57 |
with ``Any`` as the valid type to a type other than the value's default. |
| 58 |
Patch by Adam Turner. |
| 59 |
|
| 60 |
Release 7.3.2 (released Apr 17, 2024) |
| 61 |
===================================== |
| 62 |
|
| 63 |
Bugs fixed |
| 64 |
---------- |
| 65 |
|
| 66 |
* Preload all themes defined via entry points. |
| 67 |
Patch by Adam Turner. |
| 68 |
* Fix a bad interaction between the ``'Furo'`` theme and the new-style for |
| 69 |
configuration values. |
| 70 |
Patch by Adam Turner. |
| 71 |
|
| 72 |
Release 7.3.1 (released Apr 17, 2024) |
| 73 |
===================================== |
| 74 |
|
| 75 |
Dependencies |
| 76 |
------------ |
| 77 |
|
| 78 |
* Require ``tomli`` on Python 3.10 and earlier. |
| 79 |
Patch by Adam Turner. |
| 80 |
|
| 81 |
Release 7.3.0 (released Apr 16, 2024) |
| 82 |
===================================== |
| 83 |
|
| 84 |
Dependencies |
| 85 |
------------ |
| 86 |
|
| 87 |
* #11858: Increase the minimum supported version of Alabaster to 0.7.14. |
| 88 |
Patch by Adam Turner. |
| 89 |
* #12267: Support `Docutils 0.21`_. Patch by Adam Turner. |
| 90 |
|
| 91 |
.. _Docutils 0.21: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-21-2024-04-09 |
| 92 |
* #12012: Use ``types-docutils`` instead of ``docutils-stubs``. |
| 93 |
|
| 94 |
Deprecated |
| 95 |
---------- |
| 96 |
|
| 97 |
* #11693: Support for old-style :file:`Makefile` and :file:`make.bat` output |
| 98 |
in :program:`sphinx-quickstart`, and the associated options :option:`!-M`, |
| 99 |
:option:`!-m`, :option:`!--no-use-make-mode`, and :option:`!--use-make-mode`. |
| 100 |
* #11285: Direct access to :attr:`!sphinx.testing.util.SphinxTestApp._status` |
| 101 |
or :attr:`!sphinx.testing.util.SphinxTestApp._warning` is deprecated. Use |
| 102 |
the public properties :attr:`!sphinx.testing.util.SphinxTestApp.status` |
| 103 |
and :attr:`!sphinx.testing.util.SphinxTestApp.warning` instead. |
| 104 |
Patch by Bénédikt Tran. |
| 105 |
* tests: :func:`!sphinx.testing.util.strip_escseq` is deprecated in favour of |
| 106 |
:func:`!sphinx.util.console.strip_colors`. |
| 107 |
Patch by Bénédikt Tran. |
| 108 |
|
| 109 |
Features added |
| 110 |
-------------- |
| 111 |
|
| 112 |
* #12265: Support theme configuration via ``theme.toml``. |
| 113 |
* #11701: HTML Search: Adopt the new `\<search\>`_ element. |
| 114 |
Patch by Bénédikt Tran. |
| 115 |
|
| 116 |
.. _`\<search\>`: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search |
| 117 |
* #11776: Add long option names to ``sphinx-build``. |
| 118 |
Patch by Hugo van Kemenade, Adam Turner, Bénédikt Tran, and Ezio Melotti. |
| 119 |
* Organise the ``sphinx-build`` options into groups. |
| 120 |
Patch by Adam Turner. |
| 121 |
* #11855: Defer computation of configuration values. |
| 122 |
Patch by Adam Turner. |
| 123 |
* Add ``:no-search:`` as an alias of the ``:nosearch:`` metadata field. |
| 124 |
Patch by Adam Turner. |
| 125 |
* #11803: autodoc: Use an overridden ``__repr__()`` function in an enum, |
| 126 |
if defined. Patch by Shengyu Zhang. |
| 127 |
* #11825: Allow custom targets in the manpage role. |
| 128 |
Patch by Nicolas Peugnet. |
| 129 |
* #11892: Improved performance when resolving cross references in the C++ domain. |
| 130 |
Patch by Rouslan Korneychuk. |
| 131 |
* #11905: Add a :rst:dir:`versionremoved` directive. |
| 132 |
Patch by Hugo van Kemenade, Adam Turner, and C.A.M. Gerlach. |
| 133 |
* #11981: Improve rendering of signatures using ``slice`` syntax, |
| 134 |
e.g., ``def foo(arg: np.float64[:,:]) -> None: ...``. |
| 135 |
* The manpage builder now adds `OSC 8`_ anchors to hyperlinks, using |
| 136 |
the `groff`_ device control command. |
| 137 |
|
| 138 |
.. _OSC 8: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda |
| 139 |
.. _groff: https://lists.gnu.org/archive/html/groff/2021-10/msg00000.html |
| 140 |
* #11015: Change the text of the :rst:dir:`versionadded` directive from |
| 141 |
``New in [...]`` to ``Added in [...]``. |
| 142 |
Patch by Bénédikt Tran. |
| 143 |
* #12131: Added :confval:`show_warning_types` configuration option. |
| 144 |
Patch by Chris Sewell. |
| 145 |
* #12193: Improve ``external`` warnings for unknown roles. |
| 146 |
In particular, suggest related role names if an object type is mistakenly used. |
| 147 |
Patch by Chris Sewell. |
| 148 |
* Add public type alias :class:`sphinx.util.typing.ExtensionMetadata`. |
| 149 |
This can be used by extension developers |
| 150 |
to annotate the return type of their ``setup`` function. |
| 151 |
Patch by Chris Sewell. |
| 152 |
|
| 153 |
Bugs fixed |
| 154 |
---------- |
| 155 |
|
| 156 |
* #11668: Raise a useful error when ``theme.conf`` is missing. |
| 157 |
Patch by Vinay Sajip. |
| 158 |
* #11622: Ensure that the order of keys in ``searchindex.js`` is deterministic. |
| 159 |
Patch by Pietro Albini. |
| 160 |
* #11617: ANSI control sequences are stripped from the output when writing to |
| 161 |
a warnings file with :option:`-w <sphinx-build -w>`. |
| 162 |
Patch by Bénédikt Tran. |
| 163 |
* #11666: Skip all hidden directories in ``CatalogRepository.pofiles``. |
| 164 |
Patch by Aryaz Eghbali. |
| 165 |
* #9686: html builder: Fix MathJax lazy loading when equations appear in titles. |
| 166 |
Patch by Bénédikt Tran. |
| 167 |
* #11483: singlehtml builder: Fix MathJax lazy loading when the index does not |
| 168 |
contain any math equations. |
| 169 |
Patch by Bénédikt Tran. |
| 170 |
* #11697: HTML Search: add 'noindex' meta robots tag. |
| 171 |
Patch by James Addison. |
| 172 |
* #11678: Fix a possible ``ZeroDivisionError`` in ``sphinx.ext.coverage``. |
| 173 |
Patch by Stephen Finucane. |
| 174 |
* #11756: LaTeX: build error with recent TeXLive due to missing ``substitutefont`` |
| 175 |
package (triggered if using ``fontenc`` with ``T2A`` option and document |
| 176 |
language is not a Cyrillic one). |
| 177 |
Patch by Jean-François B. |
| 178 |
* #11675: Fix rendering of progression bars in environments that do not support |
| 179 |
ANSI control sequences. |
| 180 |
Patch by Bénédikt Tran. |
| 181 |
* #11861: Whitelist more types with an incorrect ``__module__`` attribute. |
| 182 |
Patch by Adam Turner. |
| 183 |
* #11715: Apply ``tls_verify`` and ``tls_cacerts`` config to |
| 184 |
``ImageDownloader``. |
| 185 |
Patch by Nick Touran. |
| 186 |
* Allow hyphens in group names for :rst:dir:`productionlist` cross-references. |
| 187 |
Patch by Adam Turner. |
| 188 |
* #11433: Added the :confval:`linkcheck_allow_unauthorized` configuration option. |
| 189 |
Set this option to ``False`` to report HTTP 401 (unauthorized) server |
| 190 |
responses as broken. |
| 191 |
Patch by James Addison. |
| 192 |
* #11868: linkcheck: added a distinct ``timeout`` reporting status code. |
| 193 |
This can be enabled by setting :confval:`linkcheck_report_timeouts_as_broken` |
| 194 |
to ``False``. |
| 195 |
Patch by James Addison. |
| 196 |
* #11869: Refresh the documentation for the ``linkcheck_timeout`` setting. |
| 197 |
Patch by James Addison. |
| 198 |
* #11874: Configure a default 30-second value for ``linkcheck_timeout``. |
| 199 |
Patch by James Addison. |
| 200 |
* #11886: Print the Jinja2 template path chain in ``TemplateNotFound`` exceptions. |
| 201 |
Patch by Colin Marquardt. |
| 202 |
* #11598: Do not use query components in URLs for assets in EPUB rendering. |
| 203 |
Patch by David Runge. |
| 204 |
* #11904: Support unary subtraction when parsing annotations. |
| 205 |
Patch by James Addison. |
| 206 |
* #11925: Blacklist the ``sphinxprettysearchresults`` extension; the functionality |
| 207 |
it provides was merged into Sphinx v2.0.0. |
| 208 |
Patch by James Addison. |
| 209 |
* #11917: Fix rendering of annotated inherited members for Python 3.9. |
| 210 |
Patch by Janet Carson. |
| 211 |
* #11935: C Domain: Fix namespace-pop context. |
| 212 |
Patch by Frank Dana. |
| 213 |
* #11923: Avoid zombie processes when parallel builds fail. |
| 214 |
Patch by Felix von Drigalski. |
| 215 |
* #11353: Support enumeration classes inheriting from mixin or data types. |
| 216 |
Patch by Bénédikt Tran. |
| 217 |
* #11962: Fix target resolution when using ``:paramtype:`` fields. |
| 218 |
Patch by Bénédikt Tran. |
| 219 |
* #11944: Use anchor in search preview. |
| 220 |
Patch by Will Lachance. |
| 221 |
* #12008: Fix case-sensitive lookup of ``std:label`` names in intersphinx inventory. |
| 222 |
Patch by Michael Goerz. |
| 223 |
* #11958: HTML Search: Fix partial matches overwriting full matches. |
| 224 |
Patch by William Lachance. |
| 225 |
* #11959: Fix multiple term matching when word appears in both title and document. |
| 226 |
Patch by Will Lachance. |
| 227 |
* #11474: Fix doctrees caching causing files not be rebuilt in some cases, |
| 228 |
e.g., when :confval:`numfig` is ``True``. |
| 229 |
Patch by Bénédikt Tran. |
| 230 |
* #11278: autodoc: Fix rendering of :class:`functools.singledispatchmethod` |
| 231 |
combined with :func:`@classmethod <classmethod>`. |
| 232 |
Patch by Bénédikt Tran. |
| 233 |
* #11894: Do not add checksums to css files if building using the htmlhelp builder. |
| 234 |
Patch by reduerK akiM. |
| 235 |
* #12052: Remove ``<script>`` and ``<style>`` tags from the content of search result |
| 236 |
summary snippets. |
| 237 |
Patch by James Addison. |
| 238 |
* #11578: HTML Search: Order non-main index entries after other results. |
| 239 |
Patch by Brad King. |
| 240 |
* #12147: autosummary: Fix a bug whereby the wrong file extension |
| 241 |
may be used, |
| 242 |
when multiple suffixes are specified in :confval:`source_suffix`. |
| 243 |
Patch by Sutou Kouhei. |
| 244 |
* #10786: improve the error message when a file to be copied (e.g., an asset) |
| 245 |
is removed during Sphinx execution. |
| 246 |
Patch by Bénédikt Tran. |
| 247 |
* #12040: HTML Search: Ensure that document titles that are partially-matched by |
| 248 |
the user search query are included in search results. |
| 249 |
Patch by James Addison. |
| 250 |
* #11970: singlehtml builder: make target URIs to be same-document references in |
| 251 |
the sense of :rfc:`RFC 3986, §4.4 <3986#section-4.4>`, e.g., ``index.html#foo`` |
| 252 |
becomes ``#foo``. Patch by Eric Norige. |
| 253 |
* #12271: Partially revert Docutils' r9562__ to fix EPUB files. |
| 254 |
Patch by Adam Turner. |
| 255 |
|
| 256 |
__ https://sourceforge.net/p/docutils/code/9562/ |
| 257 |
* #12253: Escape reserved path characters in the remote images post-transform |
| 258 |
download cache. |
| 259 |
Patch by James Addison and Adam Turner. |
| 260 |
|
| 261 |
Testing |
| 262 |
------- |
| 263 |
|
| 264 |
* Reorganise tests into directories. |
| 265 |
Patch by Adam Turner. |
| 266 |
* Clean up global state in ``SphinxTestApp``. |
| 267 |
Patch by Adam Turner. |
| 268 |
* #11285: :func:`!pytest.mark.sphinx` and :class:`!sphinx.testing.util.SphinxTestApp` |
| 269 |
accept *warningiserror*, *keep_going* and *verbosity* as keyword arguments. |
| 270 |
Patch by Bénédikt Tran. |
| 271 |
* #11285: :class:`!sphinx.testing.util.SphinxTestApp` *status* and *warning* |
| 272 |
arguments are checked to be :class:`io.StringIO` objects (the public API |
| 273 |
incorrectly assumed this without checking it). |
| 274 |
Patch by Bénédikt Tran. |
| 275 |
* Report the result of ``test_run_epubcheck`` as ``skipped`` instead of |
| 276 |
``success`` when either Java or ``epubcheck`` are not available. |
| 277 |
* Use dynamic allocation of unused port numbers for the test HTTP(S) servers. |
| 278 |
As a side-effect, this removes the need for test server lockfiles, |
| 279 |
meaning that any remaining ``tests/test-server.lock`` files can safely be |
| 280 |
deleted. |