| 1 |
========== |
| 2 |
Sphinx 4.0 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 4.0.3 (released Jul 05, 2021) |
| 7 |
===================================== |
| 8 |
|
| 9 |
Features added |
| 10 |
-------------- |
| 11 |
|
| 12 |
* C, add C23 keywords ``_Decimal32``, ``_Decimal64``, and ``_Decimal128``. |
| 13 |
* #9354: C, add :confval:`c_extra_keywords` to allow user-defined keywords |
| 14 |
during parsing. |
| 15 |
* Revert the removal of ``sphinx.util:force_decode()`` to become some 3rd party |
| 16 |
extensions available again during 5.0 |
| 17 |
|
| 18 |
Bugs fixed |
| 19 |
---------- |
| 20 |
|
| 21 |
* #9330: changeset domain: :rst:dir:`versionchanged` with contents being a list |
| 22 |
will cause error during pdf build |
| 23 |
* #9313: LaTeX: complex table with merged cells broken since 4.0 |
| 24 |
* #9305: LaTeX: backslash may cause Improper discretionary list pdf build error |
| 25 |
with Japanese engines |
| 26 |
* #9354: C, remove special macro names from the keyword list. |
| 27 |
See also :confval:`c_extra_keywords`. |
| 28 |
* #9322: KeyError is raised on PropagateDescDomain transform |
| 29 |
|
| 30 |
Release 4.0.2 (released May 20, 2021) |
| 31 |
===================================== |
| 32 |
|
| 33 |
Dependencies |
| 34 |
------------ |
| 35 |
|
| 36 |
* #9216: Support jinja2-3.0 |
| 37 |
|
| 38 |
Incompatible changes |
| 39 |
-------------------- |
| 40 |
|
| 41 |
* #9222: Update Underscore.js to 1.13.1 |
| 42 |
* #9217: manpage: Stop creating a section directory on build manpage by default |
| 43 |
(see :confval:`man_make_section_directory`) |
| 44 |
|
| 45 |
Bugs fixed |
| 46 |
---------- |
| 47 |
|
| 48 |
* #9210: viewcode: crashed if non importable modules found on parallel build |
| 49 |
* #9240: Unknown node error for pending_xref_condition is raised if an extension |
| 50 |
that does not support the node installs a missing-reference handler |
| 51 |
|
| 52 |
Release 4.0.1 (released May 11, 2021) |
| 53 |
===================================== |
| 54 |
|
| 55 |
Bugs fixed |
| 56 |
---------- |
| 57 |
|
| 58 |
* #9189: autodoc: crashed when ValueError is raised on generating signature |
| 59 |
from a property of the class |
| 60 |
* #9188: autosummary: warning is emitted if list value is set to |
| 61 |
autosummary_generate |
| 62 |
* #8380: html search: tags for search result are broken |
| 63 |
* #9198: i18n: Babel emits errors when running compile_catalog |
| 64 |
* #9205: py domain: The :canonical: option causes "more than one target for |
| 65 |
cross-reference" warning |
| 66 |
* #9201: websupport: UndefinedError is raised: 'css_tag' is undefined |
| 67 |
|
| 68 |
Release 4.0.0 (released May 09, 2021) |
| 69 |
===================================== |
| 70 |
|
| 71 |
Dependencies |
| 72 |
------------ |
| 73 |
|
| 74 |
4.0.0b1 |
| 75 |
|
| 76 |
* Drop python 3.5 support |
| 77 |
* Drop Docutils 0.12 and 0.13 support |
| 78 |
* LaTeX: add ``tex-gyre`` font dependency |
| 79 |
|
| 80 |
4.0.0b2 |
| 81 |
|
| 82 |
* Support Docutils 0.17. Please notice it changes the output of HTML builder. |
| 83 |
Some themes do not support it, and you need to update your custom CSS to |
| 84 |
upgrade it. |
| 85 |
|
| 86 |
Incompatible changes |
| 87 |
-------------------- |
| 88 |
|
| 89 |
4.0.0b1 |
| 90 |
|
| 91 |
* #8539: autodoc: info-field-list is generated into the class description when |
| 92 |
:confval:`autodoc_typehints`\ ``='description'`` and |
| 93 |
:confval:`autoclass_content`\ ``='class'`` set |
| 94 |
* #8898: extlinks: "%s" becomes required keyword in the link caption string |
| 95 |
* domain: The ``Index`` class becomes subclasses of ``abc.ABC`` to indicate |
| 96 |
methods that must be overridden in the concrete classes |
| 97 |
* #4826: py domain: The structure of python objects is changed. A boolean value |
| 98 |
is added to indicate that the python object is canonical one |
| 99 |
* #7425: MathJax: The MathJax was changed from 2 to 3. Users using a custom |
| 100 |
MathJax configuration may have to set the old MathJax path or update their |
| 101 |
configuration for version 3. See :mod:`sphinx.ext.mathjax`. |
| 102 |
* #7784: i18n: The msgid for alt text of image is changed |
| 103 |
* #5560: napoleon: :confval:`napoleon_use_param` also affect "other parameters" |
| 104 |
section |
| 105 |
* #7996: manpage: Make a section directory on build manpage by default (see |
| 106 |
:confval:`man_make_section_directory`) |
| 107 |
* #7849: html: Change the default setting of |
| 108 |
:confval:`html_codeblock_linenos_style` to ``'inline'`` |
| 109 |
* #8380: html search: search results are wrapped with ``<p>`` instead of |
| 110 |
``<div>`` |
| 111 |
* html theme: Move a script tag for documentation_options.js in |
| 112 |
basic/layout.html to ``script_files`` variable |
| 113 |
* html theme: Move CSS tags in basic/layout.html to ``css_files`` variable |
| 114 |
* #8915: html theme: Emit a warning for ``sphinx_rtd_theme`` 0.2.4 or older |
| 115 |
* #8508: LaTeX: uplatex becomes a default setting of latex_engine for Japanese |
| 116 |
documents |
| 117 |
* #5977: py domain: ``:var:``, ``:cvar:`` and ``:ivar:`` fields do not create |
| 118 |
cross-references |
| 119 |
* #4550: The ``align`` attribute of ``figure`` and ``table`` nodes becomes |
| 120 |
``None`` by default instead of ``'default'`` |
| 121 |
* #8769: LaTeX refactoring: split sphinx.sty into multiple files and rename |
| 122 |
some auxiliary files created in ``latex`` build output repertory |
| 123 |
* #8937: Use explicit title instead of <no title> |
| 124 |
* #8487: The :file: option for csv-table directive now recognizes an absolute |
| 125 |
path as a relative path from source directory |
| 126 |
|
| 127 |
4.0.0b2 |
| 128 |
|
| 129 |
* #9023: Change the CSS classes on :rst:role:`cpp:expr` and |
| 130 |
:rst:role:`cpp:texpr`. |
| 131 |
|
| 132 |
Deprecated |
| 133 |
---------- |
| 134 |
|
| 135 |
* :confval:`html_codeblock_linenos_style` |
| 136 |
* ``favicon`` and ``logo`` variable in HTML templates |
| 137 |
* ``sphinx.directives.patches.CSVTable`` |
| 138 |
* ``sphinx.directives.patches.ListTable`` |
| 139 |
* ``sphinx.directives.patches.RSTTable`` |
| 140 |
* ``sphinx.ext.autodoc.directive.DocumenterBridge.filename_set`` |
| 141 |
* ``sphinx.ext.autodoc.directive.DocumenterBridge.warn()`` |
| 142 |
* ``sphinx.registry.SphinxComponentRegistry.get_source_input()`` |
| 143 |
* ``sphinx.registry.SphinxComponentRegistry.source_inputs`` |
| 144 |
* ``sphinx.transforms.FigureAligner`` |
| 145 |
* ``sphinx.util.pycompat.convert_with_2to3()`` |
| 146 |
* ``sphinx.util.pycompat.execfile_()`` |
| 147 |
* ``sphinx.util.smartypants`` |
| 148 |
* ``sphinx.util.typing.DirectiveOption`` |
| 149 |
|
| 150 |
Features added |
| 151 |
-------------- |
| 152 |
|
| 153 |
4.0.0b1 |
| 154 |
|
| 155 |
* #8924: autodoc: Support ``bound`` argument for TypeVar |
| 156 |
* #7383: autodoc: Support typehints for properties |
| 157 |
* #5603: autodoc: Allow to refer to a python class using its canonical name |
| 158 |
when the class has two different names; a canonical name and an alias name |
| 159 |
* #8539: autodoc: Add :confval:`autodoc_typehints_description_target` to control |
| 160 |
the behavior of ``autodoc_typehints=description`` |
| 161 |
* #8841: autodoc: :confval:`autodoc_docstring_signature` will continue to look |
| 162 |
for multiple signature lines without backslash character |
| 163 |
* #7549: autosummary: Enable :confval:`autosummary_generate` by default |
| 164 |
* #8898: extlinks: Allow %s in link caption string |
| 165 |
* #4826: py domain: Add ``:canonical:`` option to python directives to describe |
| 166 |
the location where the object is defined |
| 167 |
* #7199: py domain: Add :confval:`python_use_unqualified_type_names` to suppress |
| 168 |
the module name of the python reference if it can be resolved (experimental) |
| 169 |
* #7068: py domain: Add :rst:dir:`py:property` directive to describe a property |
| 170 |
* #7784: i18n: The alt text for image is translated by default (without |
| 171 |
:confval:`gettext_additional_targets` setting) |
| 172 |
* #2018: html: :confval:`html_favicon` and :confval:`html_logo` now accept URL |
| 173 |
for the image |
| 174 |
* #8070: html search: Support searching for 2characters word |
| 175 |
* #9036: html theme: Allow to inherite the search page |
| 176 |
* #8938: imgconverter: Show the error of the command availability check |
| 177 |
* #7830: Add debug logs for change detection of sources and templates |
| 178 |
* #8201: Emit a warning if toctree contains duplicated entries |
| 179 |
* #8326: ``master_doc`` is now renamed to :confval:`root_doc` |
| 180 |
* #8942: C++, add support for the C++20 spaceship operator, ``<=>``. |
| 181 |
* #7199: A new node, ``sphinx.addnodes.pending_xref_condition`` has been added. |
| 182 |
It can be used to choose appropriate content of the reference by conditions. |
| 183 |
|
| 184 |
4.0.0b2 |
| 185 |
|
| 186 |
* #8818: autodoc: Super class having ``Any`` arguments causes nitpicky warning |
| 187 |
* #9095: autodoc: TypeError is raised on processing broken metaclass |
| 188 |
* #9110: autodoc: metadata of GenericAlias is not rendered as a reference in |
| 189 |
py37+ |
| 190 |
* #9098: html: copy-range protection for doctests doesn't work in Safari |
| 191 |
* #9103: LaTeX: imgconverter: conversion runs even if not needed |
| 192 |
* #8127: py domain: Ellipsis in info-field-list causes nitpicky warning |
| 193 |
* #9121: py domain: duplicated warning is emitted when both canonical and its |
| 194 |
alias objects are defined on the document |
| 195 |
* #9023: More CSS classes on domain descriptions, see :ref:`nodes` for details. |
| 196 |
* #8195: mathjax: Rename :confval:`mathjax_config` to |
| 197 |
:confval:`mathjax2_config` and add :confval:`mathjax3_config` |
| 198 |
|
| 199 |
Bugs fixed |
| 200 |
---------- |
| 201 |
|
| 202 |
4.0.0b1 |
| 203 |
|
| 204 |
* #8917: autodoc: Raises a warning if function has wrong __globals__ value |
| 205 |
* #8415: autodoc: a TypeVar imported from other module is not resolved (in |
| 206 |
Python 3.7 or above) |
| 207 |
* #8992: autodoc: Failed to resolve types.TracebackType type annotation |
| 208 |
* #8905: html: ``html_add_permalinks=None`` and ``html_add_permalinks=""`` |
| 209 |
are ignored |
| 210 |
* #8380: html search: Paragraphs in search results are not identified as ``<p>`` |
| 211 |
* #8915: html theme: The translation of ``sphinx_rtd_theme`` does not work |
| 212 |
* #8342: Emit a warning if a unknown domain is given for directive or role (ex. |
| 213 |
``:unknown:doc:``) |
| 214 |
* #7241: LaTeX: No wrapping for ``cpp:enumerator`` |
| 215 |
* #8711: LaTeX: backticks in code-blocks trigger latexpdf build warning (and font |
| 216 |
change) with late TeXLive 2019 |
| 217 |
* #8253: LaTeX: Figures with no size defined get overscaled (compared to images |
| 218 |
with size explicitly set in pixels) (fixed for ``'pdflatex'/'lualatex'`` only) |
| 219 |
* #8881: LaTeX: The depth of bookmarks panel in PDF is not enough for navigation |
| 220 |
* #8874: LaTeX: the fix to two minor Pygments LaTeXFormatter output issues ignore |
| 221 |
Pygments style |
| 222 |
* #8925: LaTeX: 3.5.0 ``verbatimmaxunderfull`` setting does not work as |
| 223 |
expected |
| 224 |
* #8980: LaTeX: missing line break in ``\pysigline`` |
| 225 |
* #8995: LaTeX: legacy ``\pysiglinewithargsret`` does not compute correctly |
| 226 |
available horizontal space and should use a ragged right style |
| 227 |
* #9009: LaTeX: "release" value with underscore leads to invalid LaTeX |
| 228 |
* #8911: C++: remove the longest matching prefix in |
| 229 |
:confval:`cpp_index_common_prefix` instead of the first that matches. |
| 230 |
* C, properly reject function declarations when a keyword is used |
| 231 |
as parameter name. |
| 232 |
* #8933: viewcode: Failed to create back-links on parallel build |
| 233 |
* #8960: C and C++, fix rendering of (member) function pointer types in |
| 234 |
function parameter lists. |
| 235 |
* C++, fix linking of names in array declarators, pointer to member |
| 236 |
(function) declarators, and in the argument to ``sizeof...``. |
| 237 |
* C, fix linking of names in array declarators. |
| 238 |
|
| 239 |
4.0.0b2 |
| 240 |
|
| 241 |
* C, C++, fix ``KeyError`` when an ``alias`` directive is the first C/C++ |
| 242 |
directive in a file with another C/C++ directive later. |
| 243 |
|
| 244 |
4.0.0b3 |
| 245 |
|
| 246 |
* #9167: html: Failed to add CSS files to the specific page |