Debian Codegraph @

doc/changes/3.5.rst

raw
1 ==========
2 Sphinx 3.5
3 ==========
4
5
6 Release 3.5.4 (released Apr 11, 2021)
7 =====================================
8
9 Dependencies
10 ------------
11
12 * #9071: Restrict Docutils to 0.16
13
14 Bugs fixed
15 ----------
16
17 * #9078: autodoc: Async staticmethods and classmethods are considered as non
18 async coroutine-functions with Python3.10
19 * #8870, #9001, #9051: html theme: The style are not applied with Docutils 0.17
20
21 - toctree captions
22 - The content of ``sidebar`` directive
23 - figures
24
25 Release 3.5.3 (released Mar 20, 2021)
26 =====================================
27
28 Features added
29 --------------
30
31 * #8959: using UNIX path separator in image directive confuses Sphinx on Windows
32
33 Release 3.5.2 (released Mar 06, 2021)
34 =====================================
35
36 Bugs fixed
37 ----------
38
39 * #8943: i18n: Crashed by broken translation messages in ES, EL and HR
40 * #8936: LaTeX: A custom LaTeX builder fails with unknown node error
41 * #8952: Exceptions raised in a Directive cause parallel builds to hang
42
43 Release 3.5.1 (released Feb 16, 2021)
44 =====================================
45
46 Bugs fixed
47 ----------
48
49 * #8883: autodoc: AttributeError is raised on assigning __annotations__ on
50 read-only class
51 * #8884: html: minified js stemmers not included in the distributed package
52 * #8885: html: AttributeError is raised if CSS/JS files are installed via
53 :confval:`html_context`
54 * #8880: viewcode: ExtensionError is raised on incremental build after
55 unparsable python module found
56
57 Release 3.5.0 (released Feb 14, 2021)
58 =====================================
59
60 Dependencies
61 ------------
62
63 * LaTeX: ``multicol`` (it is anyhow a required part of the official latex2e
64 base distribution)
65
66 Incompatible changes
67 --------------------
68
69 * Update Underscore.js to 1.12.0
70 * #6550: html: The config variable ``html_add_permalinks`` is replaced by
71 :confval:`html_permalinks` and :confval:`html_permalinks_icon`
72
73 Deprecated
74 ----------
75
76 * pending_xref node for viewcode extension
77 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.anchors_ignore``
78 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.auth``
79 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.broken``
80 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.good``
81 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.redirected``
82 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.rqueue``
83 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.to_ignore``
84 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.workers``
85 * ``sphinx.builders.linkcheck.CheckExternalLinksBuilder.wqueue``
86 * ``sphinx.builders.linkcheck.node_line_or_0()``
87 * ``sphinx.ext.autodoc.AttributeDocumenter.isinstanceattribute()``
88 * ``sphinx.ext.autodoc.directive.DocumenterBridge.reporter``
89 * ``sphinx.ext.autodoc.importer.get_module_members()``
90 * ``sphinx.ext.autosummary.generate._simple_info()``
91 * ``sphinx.ext.autosummary.generate._simple_warn()``
92 * ``sphinx.writers.html.HTMLTranslator.permalink_text``
93 * ``sphinx.writers.html5.HTML5Translator.permalink_text``
94
95 Features added
96 --------------
97
98 * #8022: autodoc: autodata and autoattribute directives does not show right-hand
99 value of the variable if docstring contains ``:meta hide-value:`` in
100 info-field-list
101 * #8514: autodoc: Default values of overloaded functions are taken from actual
102 implementation if they're ellipsis
103 * #8775: autodoc: Support type union operator (PEP-604) in Python 3.10 or above
104 * #8297: autodoc: Allow to extend :confval:`autodoc_default_options` via
105 directive options
106 * #759: autodoc: Add a new configuration :confval:`autodoc_preserve_defaults` as
107 an experimental feature. It preserves the default argument values of
108 functions in source code and keep them not evaluated for readability.
109 * #8619: html: kbd role generates customizable HTML tags for compound keys
110 * #8634: html: Allow to change the order of JS/CSS via ``priority`` parameter
111 for :meth:`.Sphinx.add_js_file` and :meth:`.Sphinx.add_css_file`
112 * #6241: html: Allow to add JS/CSS files to the specific page when an extension
113 calls ``app.add_js_file()`` or ``app.add_css_file()`` on
114 :event:`html-page-context` event
115 * #6550: html: Allow to use HTML permalink texts via
116 :confval:`html_permalinks_icon`
117 * #1638: html: Add permalink icons to glossary terms
118 * #8868: html search: performance issue with massive lists
119 * #8867: html search: Update JavaScript stemmer code to the latest version of
120 Snowball (v2.1.0)
121 * #8852: i18n: Allow to translate heading syntax in MyST-Parser
122 * #8649: imgconverter: Skip availability check if builder supports the image
123 type
124 * #8573: napoleon: Allow to change the style of custom sections using
125 :confval:`napoleon_custom_sections`
126 * #8004: napoleon: Type definitions in Google style docstrings are rendered as
127 references when :confval:`napoleon_preprocess_types` enabled
128 * #6241: mathjax: Include mathjax.js only on the document using equations
129 * #8775: py domain: Support type union operator (PEP-604)
130 * #8651: std domain: cross-reference for a rubric having inline item is broken
131 * #7642: std domain: Optimize case-insensitive match of term
132 * #8681: viewcode: Support incremental build
133 * #8132: Add :confval:`project_copyright` as an alias of :confval:`copyright`
134 * #207: Now :confval:`highlight_language` supports multiple languages
135 * #2030: :rst:dir:`code-block` and :rst:dir:`literalinclude` supports automatic
136 dedent via no-argument ``:dedent:`` option
137 * C++, also hyperlink operator overloads in expressions and alias declarations.
138 * #8247: Allow production lists to refer to tokens from other production groups
139 * #8813: Show what extension (or module) caused it on errors on event handler
140 * #8213: C++: add ``maxdepth`` option to :rst:dir:`cpp:alias` to insert nested
141 declarations.
142 * C, add ``noroot`` option to :rst:dir:`c:alias` to render only nested
143 declarations.
144 * C++, add ``noroot`` option to :rst:dir:`cpp:alias` to render only nested
145 declarations.
146
147 Bugs fixed
148 ----------
149
150 * #8727: apidoc: namespace module file is not generated if no submodules there
151 * #741: autodoc: inherited-members doesn't work for instance attributes on super
152 class
153 * #8592: autodoc: ``:meta public:`` does not effect to variables
154 * #8594: autodoc: empty ``__all__`` attribute is ignored
155 * #8315: autodoc: Failed to resolve struct.Struct type annotation
156 * #8652: autodoc: All variable comments in the module are ignored if the module
157 contains invalid type comments
158 * #8693: autodoc: Default values for overloaded functions are rendered as string
159 * #8134: autodoc: crashes when mocked decorator takes arguments
160 * #8800: autodoc: Uninitialized attributes in superclass are recognized as
161 undocumented
162 * #8655: autodoc: Failed to generate document if target module contains an
163 object that raises an exception on ``hasattr()``
164 * #8306: autosummary: mocked modules are documented as empty page when using
165 :recursive: option
166 * #8232: graphviz: Image node is not rendered if graph file is in subdirectory
167 * #8618: html: kbd role produces incorrect HTML when compound-key separators (-,
168 + or ^) are used as keystrokes
169 * #8629: html: A type warning for html_use_opensearch is shown twice
170 * #8714: html: kbd role with "Caps Lock" rendered incorrectly
171 * #8123: html search: fix searching for terms containing + (Requires a custom
172 search language that does not split on +)
173 * #8665: html theme: Could not override globaltoc_maxdepth in theme.conf
174 * #8446: html: consecutive spaces are displayed as single space
175 * #8745: i18n: crashes with KeyError when translation message adds a new auto
176 footnote reference
177 * #4304: linkcheck: Fix race condition that could lead to checking the
178 availability of the same URL twice
179 * #8791: linkcheck: The docname for each hyperlink is not displayed
180 * #7118: sphinx-quickstart: questionnaire got Mojibake if libreadline unavailable
181 * #8094: texinfo: image files on the different directory with document are not
182 copied
183 * #8782: todo: Cross references in todolist get broken
184 * #8720: viewcode: module pages are generated for epub on incremental build
185 * #8704: viewcode: anchors are generated in incremental build after singlehtml
186 * #8756: viewcode: highlighted code is generated even if not referenced
187 * #8671: :confval:`highlight_options` is not working
188 * #8341: C, fix intersphinx lookup types for names in declarations.
189 * C, C++: in general fix intersphinx and role lookup types.
190 * #8683: :confval:`html_last_updated_fmt` does not support UTC offset (%z)
191 * #8683: :confval:`html_last_updated_fmt` generates wrong time zone for %Z
192 * #1112: ``download`` role creates duplicated copies when relative path is
193 specified
194 * #2616 (fifth item): LaTeX: footnotes from captions are not clickable,
195 and for manually numbered footnotes only first one with same number is
196 an hyperlink
197 * #7576: LaTeX with French babel and memoir crash: "Illegal parameter number
198 in definition of ``\FNH@prefntext``"
199 * #8055: LaTeX (docs): A potential display bug with the LaTeX generation step
200 in Sphinx (how to generate one-column index)
201 * #8072: LaTeX: Directive :rst:dir:`hlist` not implemented in LaTeX
202 * #8214: LaTeX: The :rst:role:`index` role and the glossary generate duplicate
203 entries in the LaTeX index (if both used for same term)
204 * #8735: LaTeX: wrong internal links in pdf to captioned code-blocks when
205 :confval:`numfig` is not ``True``
206 * #8442: LaTeX: some indexed terms are ignored when using xelatex engine
207 (or pdflatex and :confval:`latex_use_xindy` set to ``True``) with memoir class
208 * #8750: LaTeX: URLs as footnotes fail to show in PDF if originating from
209 inside function type signatures
210 * #8780: LaTeX: long words in narrow columns may not be hyphenated
211 * #8788: LaTeX: ``\titleformat`` last argument in sphinx.sty should be
212 bracketed, not braced (and is anyhow not needed)
213 * #8849: LaTex: code-block printed out of margin (see the opt-in LaTeX syntax
214 boolean :ref:`verbatimforcewraps <latexsphinxsetupforcewraps>` for use via
215 the :ref:`'sphinxsetup' <latexsphinxsetup>` key of ``latex_elements``)
216 * #8183: LaTeX: Remove substitution_reference nodes from doctree only on LaTeX
217 builds
218 * #8865: LaTeX: Restructure the index nodes inside title nodes only on LaTeX
219 builds
220 * #8796: LaTeX: potentially critical low level TeX coding mistake has gone
221 unnoticed so far
222 * C, :rst:dir:`c:alias` skip symbols without explicit declarations
223 instead of crashing.
224 * C, :rst:dir:`c:alias` give a warning when the root symbol is not declared.
225 * C, ``expr`` role should start symbol lookup in the current scope.