| 1 |
========== |
| 2 |
Sphinx 8.1 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 8.1.3 (released Oct 13, 2024) |
| 7 |
===================================== |
| 8 |
|
| 9 |
Bugs fixed |
| 10 |
---------- |
| 11 |
|
| 12 |
* #13013: Restore support for :func:`!cut_lines` with no object type. |
| 13 |
Patch by Adam Turner. |
| 14 |
|
| 15 |
Release 8.1.2 (released Oct 12, 2024) |
| 16 |
===================================== |
| 17 |
|
| 18 |
Bugs fixed |
| 19 |
---------- |
| 20 |
|
| 21 |
* #13012: Expose :exc:`sphinx.errors.ExtensionError` in ``sphinx.util`` |
| 22 |
for backwards compatibility. |
| 23 |
This will be removed in Sphinx 9, as exposing the exception |
| 24 |
in ``sphinx.util`` was never intentional. |
| 25 |
:exc:`!ExtensionError` has been part of ``sphinx.errors`` since Sphinx 0.9. |
| 26 |
Patch by Adam Turner. |
| 27 |
|
| 28 |
Release 8.1.1 (released Oct 11, 2024) |
| 29 |
===================================== |
| 30 |
|
| 31 |
Bugs fixed |
| 32 |
---------- |
| 33 |
|
| 34 |
* #13006: Use the preferred https://www.cve.org/ URL for |
| 35 |
the :rst:role:`:cve: <cve>` role. |
| 36 |
Patch by Hugo van Kemenade. |
| 37 |
* #13007: LaTeX: Improve resiliency when the required |
| 38 |
``fontawesome`` or ``fontawesome5`` packages are not installed. |
| 39 |
Patch by Jean-François B. |
| 40 |
|
| 41 |
Release 8.1.0 (released Oct 10, 2024) |
| 42 |
===================================== |
| 43 |
|
| 44 |
Dependencies |
| 45 |
------------ |
| 46 |
|
| 47 |
* #12756: Add lower-bounds to the ``sphinxcontrib-*`` dependencies. |
| 48 |
Patch by Adam Turner. |
| 49 |
* #12833: Update the LaTeX ``parskip`` package from 2001 to 2018. |
| 50 |
Patch by Jean-François B. |
| 51 |
|
| 52 |
Incompatible changes |
| 53 |
-------------------- |
| 54 |
|
| 55 |
* #12763: Remove unused internal class ``sphinx.util.Tee``. |
| 56 |
Patch by Adam Turner. |
| 57 |
* #12822: LaTeX: for Unicode engines, the :ref:`fvset` default is changed to |
| 58 |
``'\\fvset{fontsize=auto}'`` from ``'\\fvset{fontsize=\\small}'``. |
| 59 |
Code-blocks are unchanged as FreeMono is now loaded with ``Scale=0.9``. |
| 60 |
An adjustment to existing projects is needed only if they used a custom |
| 61 |
:ref:`fontpkg` configuration and did not set :ref:`fvset`. |
| 62 |
Patch by Jean-François B. |
| 63 |
* #12875: Disable smartquotes for languages: ``zh_CN`` and ``zh_TW`` by default. |
| 64 |
Patch by A. Rafey Khan. |
| 65 |
|
| 66 |
Deprecated |
| 67 |
---------- |
| 68 |
|
| 69 |
* #12762: Deprecate ``sphinx.util.import_object``. |
| 70 |
Use :py:func:`importlib.import_module` instead. |
| 71 |
Patch by Adam Turner. |
| 72 |
* #12766: Deprecate ``sphinx.util.FilenameUniqDict`` |
| 73 |
and ``sphinx.util.DownloadFiles``. |
| 74 |
Patch by Adam Turner. |
| 75 |
|
| 76 |
Features added |
| 77 |
-------------- |
| 78 |
|
| 79 |
* #11328: Mention evaluation of templated content during production of static |
| 80 |
output files. |
| 81 |
Patch by James Addison. |
| 82 |
* #12704: LaTeX: make :dudir:`contents <table-of-contents>`, :dudir:`topic`, |
| 83 |
and :dudir:`sidebar` directives separately customizable for PDF output. |
| 84 |
Patch by Jean-François B. and Bénédikt Tran. |
| 85 |
* #12474: Support type-dependent search result highlighting via CSS. |
| 86 |
Patch by Tim Hoffmann. |
| 87 |
* #12652: LaTeX: Add :confval:`math_numsep` support to latex builder. |
| 88 |
Patch by Thomas Fanning and Jean-François B. |
| 89 |
* #12743: No longer exit on the first warning when |
| 90 |
:option:`--fail-on-warning <sphinx-build --fail-on-warning>` is used. |
| 91 |
Instead, exit with a non-zero status if any warnings were generated |
| 92 |
during the build. |
| 93 |
Patch by Adam Turner. |
| 94 |
* #12743: Add :option:`sphinx-build --exception-on-warning`, |
| 95 |
to raise an exception when warnings are emitted during the build. |
| 96 |
Patch by Adam Turner and Jeremy Maitin-Shepard. |
| 97 |
* #12907: Add :confval:`html_last_updated_use_utc` to allow using |
| 98 |
universal time (GMT/UTC) instead of local time for the date-time |
| 99 |
supplied to :confval:`html_last_updated_fmt`. |
| 100 |
Patch by Adam Turner. |
| 101 |
* #12910: Copyright entries now support the ``'%Y'`` placeholder |
| 102 |
to substitute the current year. |
| 103 |
This is helpful for reducing the reliance on Python modules |
| 104 |
such as :py:mod:`time` or :py:mod:`datetime` in :file:`conf.py`. |
| 105 |
See :ref:`the docs <config-copyright>` for further detail. |
| 106 |
Patch by Adam Turner. |
| 107 |
* #11781: Add roles for referencing CVEs (:rst:role:`:cve: <cve>`) |
| 108 |
and CWEs (:rst:role:`:cwe: <cwe>`). |
| 109 |
Patch by Hugo van Kemenade. |
| 110 |
* #11809: Improve the formatting for RFC section anchors. |
| 111 |
Patch by Jakub Stasiak and Adam Turner. |
| 112 |
* #12852: Support a :attr:`.Builder.supported_linkcode` attribute |
| 113 |
for builders to enable use of :mod:`sphinx.ext.linkcode`-generated |
| 114 |
references. |
| 115 |
Patch by James Knight. |
| 116 |
* #12949: Print configuration options that differ from the pickled environment. |
| 117 |
This can be helpful in diagnosing the cause of a full rebuild. |
| 118 |
Patch by Adam Turner. |
| 119 |
|
| 120 |
Bugs fixed |
| 121 |
---------- |
| 122 |
|
| 123 |
* #12514: intersphinx: fix the meaning of a negative value for |
| 124 |
:confval:`intersphinx_cache_limit`. |
| 125 |
Patch by Shengyu Zhang. |
| 126 |
* #12722: LaTeX: avoid TeX reporting ``Overfull \hbox`` from too long |
| 127 |
strings in a codeline when the problem has actually been solved thanks |
| 128 |
to :ref:`latexsphinxsetupforcewraps`. |
| 129 |
Patch by Jean-François B. |
| 130 |
* #12730: The ``UnreferencedFootnotesDetector`` transform has been improved |
| 131 |
to more consistently detect unreferenced footnotes. |
| 132 |
Note, the priority of the transform has been changed from 200 to 622, |
| 133 |
so that it now runs after the docutils ``Footnotes`` resolution transform. |
| 134 |
Patch by Chris Sewell. |
| 135 |
* #12778: LaTeX: let :ref:`'sphinxsetup' <latexsphinxsetup>` |
| 136 |
``div.topic_box-shadow`` key if used with only one dimension set both |
| 137 |
x-offset and y-offset as per documentation. |
| 138 |
Patch by Jean-François B. |
| 139 |
* #12587: Do not warn when potential ambiguity detected during Intersphinx |
| 140 |
resolution occurs due to duplicate targets that differ case-insensitively. |
| 141 |
Patch by James Addison. |
| 142 |
* #12639: Fix singular and plural search results text. |
| 143 |
Patch by Hugo van Kemenade. |
| 144 |
* #12645: Correctly support custom gettext output templates. |
| 145 |
Patch by Jeremy Bowman. |
| 146 |
* #12717: LaTeX: let :option:`-q <sphinx-build -q>` (quiet) option for |
| 147 |
:program:`sphinx-build -M latexpdf` or :program:`make latexpdf` (``O=-q``) |
| 148 |
get passed to :program:`latexmk`. Let :option:`-Q <sphinx-build -Q>` |
| 149 |
(silent) apply as well to the PDF build phase. |
| 150 |
Patch by Jean-François B. |
| 151 |
* #12744: LaTeX: Classes injected by a custom interpreted text role now give |
| 152 |
rise to nested ``\DUrole``'s, rather than a single one with comma separated |
| 153 |
classes. |
| 154 |
Patch by Jean-François B. |
| 155 |
* #12831: LaTeX: avoid large voids sometimes occurring at page bottoms. |
| 156 |
Patch by Jean-François B. |
| 157 |
* #11970, #12551: singlehtml builder: make target URIs to be same-document |
| 158 |
references in the sense of :rfc:`RFC 3986, §4.4 <3986#section-4.4>`, |
| 159 |
e.g., ``index.html#foo`` becomes ``#foo``. |
| 160 |
(note: continuation of a partial fix added in Sphinx 7.3.0) |
| 161 |
Patch by James Addison (with reference to prior work by Eric Norige). |
| 162 |
* #12735: Fix :pep:`695` generic classes LaTeX output formatting. |
| 163 |
Patch by Jean-François B. and Bénédikt Tran. |
| 164 |
* #12782: intersphinx: fix double forward slashes when generating the inventory |
| 165 |
file URL (user-defined base URL of an intersphinx project are left untouched |
| 166 |
even if they end with double forward slashes). |
| 167 |
Patch by Bénédikt Tran. |
| 168 |
* #12796: Enable parallel reading if requested, |
| 169 |
even if there are fewer than 6 documents. |
| 170 |
Patch by Matthias Geier. |
| 171 |
* #12844: Restore support for ``:noindex:`` for the :rst:dir:`js:module` |
| 172 |
and :rst:dir:`py:module` directives. |
| 173 |
Patch by Stephen Finucane. |
| 174 |
* #12916: Restore support for custom templates named with the legacy ``_t`` |
| 175 |
suffix during ``apidoc`` RST rendering (regression in 7.4.0). |
| 176 |
Patch by James Addison. |
| 177 |
* #12451: Only substitute copyright notice years with values from |
| 178 |
``SOURCE_DATE_EPOCH`` for entries that match the current system clock year, |
| 179 |
and disallow substitution of future years. |
| 180 |
Patch by James Addison and Adam Turner. |
| 181 |
* #12905: intersphinx: fix flipped use of :confval:`intersphinx_cache_limit`, |
| 182 |
which always kept the cache for positive values, and always refreshed it for |
| 183 |
negative ones. |
| 184 |
Patch by Nico Madysa. |
| 185 |
* #12888: Add a warning when document is included in multiple toctrees |
| 186 |
and ensure deterministic resolution of global toctree in parallel builds |
| 187 |
by choosing the lexicographically greatest parent document. |
| 188 |
Patch by A. Rafey Khan |
| 189 |
* #12995: Significantly improve performance when building the search index |
| 190 |
for Chinese languages. |
| 191 |
Patch by Adam Turner. |
| 192 |
* #12767: :py:meth:`.Builder.write` is typed as ``final``, meaning that the |
| 193 |
:event:`write-started` event may be relied upon by extensions. |
| 194 |
A new :py:meth:`.Builder.write_documents` method has been added to |
| 195 |
control how documents are written. |
| 196 |
This is intended for builders that do not output a file for each document. |
| 197 |
Patch by Adam Turner. |
| 198 |
|
| 199 |
|
| 200 |
Testing |
| 201 |
------- |
| 202 |
|
| 203 |
* #12141: Migrate from the deprecated ``karma`` JavaScript test framework to |
| 204 |
the actively-maintained ``jasmine`` framework. Test coverage is unaffected. |
| 205 |
Patch by James Addison. |