| 1 |
========== |
| 2 |
Sphinx 6.2 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 6.2.1 (released Apr 25, 2023) |
| 7 |
===================================== |
| 8 |
|
| 9 |
Bugs fixed |
| 10 |
---------- |
| 11 |
|
| 12 |
* #11355: Revert the default type of :confval:`nitpick_ignore` and |
| 13 |
:confval:`nitpick_ignore_regex` to ``list``. |
| 14 |
|
| 15 |
Release 6.2.0 (released Apr 23, 2023) |
| 16 |
===================================== |
| 17 |
|
| 18 |
Dependencies |
| 19 |
------------ |
| 20 |
|
| 21 |
* Require Docutils 0.18.1 or greater. |
| 22 |
|
| 23 |
Incompatible changes |
| 24 |
-------------------- |
| 25 |
|
| 26 |
* LaTeX: removal of some internal TeX ``\dimen`` registers (not previously |
| 27 |
publicly documented) as per 5.1.0 code comments in ``sphinx.sty``: |
| 28 |
``\sphinxverbatimsep``, ``\sphinxverbatimborder``, ``\sphinxshadowsep``, |
| 29 |
``\sphinxshadowsize``, and ``\sphinxshadowrule``. (refs: #11105) |
| 30 |
* Remove ``.egg`` support from pycode ``ModuleAnalyser``; Python eggs are a |
| 31 |
now-obsolete binary distribution format |
| 32 |
* #11089: Remove deprecated code in ``sphinx.builders.linkcheck``. |
| 33 |
Patch by Daniel Eades |
| 34 |
* Remove internal-only ``sphinx.locale.setlocale`` |
| 35 |
|
| 36 |
Deprecated |
| 37 |
---------- |
| 38 |
|
| 39 |
* #11247: Deprecate the legacy ``intersphinx_mapping`` format |
| 40 |
* ``sphinx.util.osutil.cd`` is deprecated in favour of ``contextlib.chdir``. |
| 41 |
|
| 42 |
Features added |
| 43 |
-------------- |
| 44 |
|
| 45 |
* #11277: :rst:dir:`autoproperty` allows the return type to be specified as |
| 46 |
a type comment (e.g., ``# type: () -> int``). Patch by Bénédikt Tran |
| 47 |
* #10811: Autosummary: extend ``__all__`` to imported members for template rendering |
| 48 |
when option ``autosummary_ignore_module_all`` is set to ``False``. Patch by |
| 49 |
Clement Pinard |
| 50 |
* #11147: Add a ``content_offset`` parameter to ``nested_parse_with_titles()``, |
| 51 |
allowing for correct line numbers during nested parsing. |
| 52 |
Patch by Jeremy Maitin-Shepard |
| 53 |
* Update to Unicode CLDR 42 |
| 54 |
* Add a ``--jobs`` synonym for ``-j``. Patch by Hugo van Kemenade |
| 55 |
* LaTeX: a command ``\sphinxbox`` for styling text elements with a (possibly |
| 56 |
rounded) box, optional background color and shadow, has been added. |
| 57 |
See :ref:`sphinxbox`. (refs: #11224) |
| 58 |
* LaTeX: add ``\sphinxstylenotetitle``, ..., ``\sphinxstylewarningtitle``, ..., |
| 59 |
for an extra layer of mark-up freeing up ``\sphinxstrong`` for other uses. |
| 60 |
See :ref:`latex-macros`. (refs: #11267) |
| 61 |
* LaTeX: :dudir:`note`, :dudir:`hint`, :dudir:`important` and :dudir:`tip` can |
| 62 |
now each be styled as the other admonitions, i.e. possibly with a background |
| 63 |
color, individual border widths and paddings, possibly rounded corners, and |
| 64 |
optional shadow. See :ref:`additionalcss`. (refs: #11234) |
| 65 |
* LaTeX: admonitions and :dudir:`topic` (and |
| 66 |
:dudir:`contents <table-of-contents>`) directives, and not only |
| 67 |
:rst:dir:`code-block`, support ``box-decoration-break=slice``. |
| 68 |
* LaTeX: let rounded boxes support up to 4 distinct border-widths (refs: #11243) |
| 69 |
* LaTeX: new options ``noteTextColor``, ``noteTeXextras`` et al. |
| 70 |
See :ref:`additionalcss`. |
| 71 |
* LaTeX: support elliptical corners in rounded boxes. (refs: #11254) |
| 72 |
* #11150: Include source location in highlighting warnings, when lexing fails. |
| 73 |
Patch by Jeremy Maitin-Shepard |
| 74 |
* #11281: Support for :confval:`imgmath_latex` ``= 'tectonic'`` or |
| 75 |
``= 'xelatex'``. Patch by Dimitar Dimitrov |
| 76 |
* #11109, #9643: Add :confval:`python_display_short_literal_types` option for |
| 77 |
condensed rendering of ``Literal`` types. |
| 78 |
|
| 79 |
Bugs fixed |
| 80 |
---------- |
| 81 |
|
| 82 |
* #11079: LaTeX: figures with align attribute may disappear and strangely impact |
| 83 |
following lists |
| 84 |
* #11093: LaTeX: fix "multiply-defined references" PDF build warnings when one or |
| 85 |
more reST labels directly precede an :rst:dir:`py:module` or :rst:dir:`automodule` |
| 86 |
directive. Patch by Bénédikt Tran (picnixz) |
| 87 |
* #11110: LaTeX: Figures go missing from latex pdf if their files have the same |
| 88 |
base name and they use a post transform. Patch by aaron-cooper |
| 89 |
* LaTeX: fix potential color leak from shadow to border of rounded boxes, if |
| 90 |
shadow color is set but border color is not |
| 91 |
* LaTeX: fix unintended 1pt upwards vertical shift of code blocks frames |
| 92 |
respective to contents (when using rounded corners) |
| 93 |
* #11235: LaTeX: added ``\color`` in topic (or admonition) contents may cause color |
| 94 |
leak to the shadow and border at a page break |
| 95 |
* #11264: LaTeX: missing space before colon after "Voir aussi" for :rst:dir:`seealso` |
| 96 |
directive in French |
| 97 |
* #11268: LaTeX: longtable with left alignment breaks out of current list |
| 98 |
indentation context in PDF. Thanks to picnixz. |
| 99 |
* #11274: LaTeX: external links are not properly escaped for ``\sphinxupquote`` |
| 100 |
compatibility |
| 101 |
* #11147: Fix source file/line number info in object description content and in |
| 102 |
other uses of ``nested_parse_with_titles``. Patch by Jeremy Maitin-Shepard. |
| 103 |
* #11192: Restore correct parallel search index building. |
| 104 |
Patch by Jeremy Maitin-Shepard |
| 105 |
* Use the new Transifex ``tx`` client |
| 106 |
|
| 107 |
Testing |
| 108 |
------- |
| 109 |
|
| 110 |
* Fail testing when any Python warnings are emitted |
| 111 |
* Migrate remaining ``unittest.TestCase`` style test functions to pytest style |
| 112 |
* Remove tests that rely on setuptools |