Debian Codegraph @

doc/changes/5.0.rst

raw
1 ==========
2 Sphinx 5.0
3 ==========
4
5
6 Release 5.0.2 (released Jun 17, 2022)
7 =====================================
8
9 Features added
10 --------------
11
12 * #10523: HTML Theme: Expose the Docutils's version info tuple as a template
13 variable, ``docutils_version_info``. Patch by Adam Turner.
14
15 Bugs fixed
16 ----------
17
18 * #10538: autodoc: Inherited class attribute having docstring is documented even
19 if :confval:`autodoc_inherit_docstring` is disabled
20 * #10509: autosummary: autosummary fails with a shared library
21 * #10497: py domain: Failed to resolve strings in Literal. Patch by Adam Turner.
22 * #10523: HTML Theme: Fix double brackets on citation references in Docutils 0.18+.
23 Patch by Adam Turner.
24 * #10534: Missing CSS for nav.contents in Docutils 0.18+. Patch by Adam Turner.
25
26 Release 5.0.1 (released Jun 03, 2022)
27 =====================================
28
29 Bugs fixed
30 ----------
31
32 * #10498: gettext: TypeError is raised when sorting warning messages if a node
33 has no line number. Patch by Adam Turner.
34 * #10493: HTML Theme: :dudir:`topic` directive is rendered incorrectly with
35 Docutils 0.18. Patch by Adam Turner.
36 * #10495: IndexError is raised for a :rst:role:`kbd` role having a separator.
37 Patch by Adam Turner.
38
39 Release 5.0.0 (released May 30, 2022)
40 =====================================
41
42 Dependencies
43 ------------
44
45 5.0.0 b1
46
47 * #10164: Support `Docutils 0.18`_. Patch by Adam Turner.
48
49 .. _Docutils 0.18: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-18-2021-10-26
50
51 Incompatible changes
52 --------------------
53
54 5.0.0 b1
55
56 * #10031: autosummary: ``sphinx.ext.autosummary.import_by_name()`` now raises
57 ``ImportExceptionGroup`` instead of ``ImportError`` when it failed to import
58 target object. Please handle the exception if your extension uses the
59 function to import Python object. As a workaround, you can disable the
60 behavior via ``grouped_exception=False`` keyword argument until v7.0.
61 * #9962: texinfo: Customizing styles of emphasized text via ``@definfoenclose``
62 command was not supported because the command was deprecated since texinfo 6.8
63 * #2068: :confval:`intersphinx_disabled_reftypes` has changed default value
64 from an empty list to ``['std:doc']`` as avoid too surprising silent
65 intersphinx resolutions.
66 To migrate: either add an explicit inventory name to the references
67 intersphinx should resolve, or explicitly set the value of this configuration
68 variable to an empty list.
69 * #10197: html theme: Reduce ``body_min_width`` setting in basic theme to 360px
70 * #9999: LaTeX: separate terms from their definitions by a CR (refs: #9985)
71 * #10062: Change the default language to ``'en'`` if any language is not set in
72 ``conf.py``
73
74 5.0.0 final
75
76 * #10474: :confval:`language` does not accept ``None`` as it value. The default
77 value of ``language`` becomes to ``'en'`` now.
78 Patch by Adam Turner and Takeshi KOMIYA.
79
80 Deprecated
81 ----------
82
83 5.0.0 b1
84
85 * #10028: jQuery and underscore.js will no longer be automatically injected into
86 themes from Sphinx 6.0. If you develop a theme or extension that uses the
87 ``jQuery``, ``$``, or ``$u`` global objects, you need to update your
88 JavaScript or use the mitigation below.
89
90 To re-add jQuery and underscore.js, you will need to copy ``jquery.js`` and
91 ``underscore.js`` from `the Sphinx repository`_ to your ``static`` directory,
92 and add the following to your ``layout.html``:
93
94 .. _the Sphinx repository: https://github.com/sphinx-doc/sphinx/tree/v5.3.0/sphinx/themes/basic/static
95 .. code-block:: html+jinja
96
97 {%- block scripts %}
98 <script src="{{ pathto('_static/jquery.js', resource=True) }}"></script>
99 <script src="{{ pathto('_static/underscore.js', resource=True) }}"></script>
100 {{ super() }}
101 {%- endblock %}
102
103 Patch by Adam Turner.
104 * setuptools integration. The ``build_sphinx`` sub-command for setup.py is
105 marked as deprecated to follow the policy of setuptools team.
106 * The ``locale`` argument of ``sphinx.util.i18n:babel_format_date()`` becomes
107 required
108 * The ``language`` argument of ``sphinx.util.i18n:format_date()`` becomes
109 required
110 * ``sphinx.builders.html.html5_ready``
111 * ``sphinx.io.read_doc()``
112 * ``sphinx.util.docutils.__version_info__``
113 * ``sphinx.util.docutils.is_html5_writer_available()``
114 * ``sphinx.writers.latex.LaTeXWriter.docclasses``
115
116 Features added
117 --------------
118
119 5.0.0 b1
120
121 * #9075: autodoc: The default value of :confval:`autodoc_typehints_format` is
122 changed to ``'smart'``. It will suppress the leading module names of
123 typehints (ex. ``io.StringIO`` -> ``StringIO``).
124 * #8417: autodoc: ``:inherited-members:`` option now takes multiple classes. It
125 allows to suppress inherited members of several classes on the module at once
126 by specifying the option to :rst:dir:`automodule` directive
127 * #9792: autodoc: Add new option for ``autodoc_typehints_description_target`` to
128 include undocumented return values but not undocumented parameters.
129 * #10285: autodoc: singledispatch functions having typehints are not documented
130 * autodoc: :confval:`autodoc_typehints_format` now also applies to attributes,
131 data, properties, and type variable bounds.
132 * #10258: autosummary: Recognize a documented attribute of a module as
133 non-imported
134 * #10028: Removed internal usages of JavaScript frameworks (jQuery and
135 underscore.js) and modernised ``doctools.js`` and ``searchtools.js`` to
136 EMCAScript 2018. Patch by Adam Turner.
137 * #10302: C++, add support for conditional expressions (``?:``).
138 * #5157, #10251: Inline code is able to be highlighted via :dudir:`role`
139 directive
140 * #10337: Make sphinx-build faster by caching Publisher object during build.
141 Patch by Adam Turner.
142
143 Bugs fixed
144 ----------
145
146 5.0.0 b1
147
148 * #10200: apidoc: Duplicated submodules are shown for modules having both .pyx
149 and .so files. Patch by Adam Turner and Takeshi KOMIYA.
150 * #10279: autodoc: Default values for keyword only arguments in overloaded
151 functions are rendered as a string literal
152 * #10280: autodoc: :confval:`autodoc_docstring_signature` unexpectedly generates
153 return value typehint for constructors if docstring has multiple signatures
154 * #10266: autodoc: :confval:`autodoc_preserve_defaults` does not work for
155 mixture of keyword only arguments with/without defaults
156 * #10310: autodoc: class methods are not documented when decorated with mocked
157 function
158 * #10305: autodoc: Failed to extract optional forward-ref'ed typehints correctly
159 via :confval:`autodoc_type_aliases`
160 * #10421: autodoc: :confval:`autodoc_preserve_defaults` doesn't work on class
161 methods
162 * #10214: html: invalid language tag was generated if :confval:`language`
163 contains a country code (ex. zh_CN)
164 * #9974: html: Updated jQuery version from 3.5.1 to 3.6.0
165 * #10236: html search: objects are duplicated in search result
166 * #9962: texinfo: Deprecation message for ``@definfoenclose`` command on
167 building texinfo document
168 * #10000: LaTeX: glossary terms with common definition are rendered with
169 too much vertical whitespace
170 * #10188: LaTeX: alternating multiply referred footnotes produce a ``?`` in
171 pdf output
172 * #10363: LaTeX: make ``'howto'`` title page rule use ``\linewidth`` for
173 compatibility with usage of a ``twocolumn`` class option
174 * #10318: ``:prepend:`` option of :rst:dir:`literalinclude` directive does not
175 work with ``:dedent:`` option
176
177 5.0.0 final
178
179 * #9575: autodoc: The annotation of return value should not be shown when
180 ``autodoc_typehints="description"``
181 * #9648: autodoc: ``*args`` and ``**kwargs`` entries are duplicated when
182 ``autodoc_typehints="description"``
183 * #8180: autodoc: Docstring metadata ignored for attributes
184 * #10443: epub: EPUB builder can't detect the mimetype of .webp file
185 * #10104: gettext: Duplicated locations are shown if 3rd party extension does
186 not provide correct information
187 * #10456: py domain: ``:meta:`` fields are displayed if docstring contains two
188 or more meta-field
189 * #9096: sphinx-build: the value of progress bar for parallel build is wrong
190 * #10110: sphinx-build: exit code is not changed when error is raised on
191 builder-finished event