Debian Codegraph @

doc/changes/4.1.rst

raw
1 ==========
2 Sphinx 4.1
3 ==========
4
5
6 Release 4.1.2 (released Jul 27, 2021)
7 =====================================
8
9 Incompatible changes
10 --------------------
11
12 * #9435: linkcheck: Disable checking automatically generated anchors on
13 github.com (ex. anchors in reST/Markdown documents)
14
15 Bugs fixed
16 ----------
17
18 * #9489: autodoc: Custom types using ``typing.NewType`` are not displayed well
19 with the HEAD of 3.10
20 * #9490: autodoc: Some objects under ``typing`` module are not displayed well
21 with the HEAD of 3.10
22 * #9436, #9471: autodoc: crashed if ``autodoc_class_signature = "separated"``
23 * #9456: html search: html_copy_source can't control the search summaries
24 * #9500: LaTeX: Failed to build Japanese document on Windows
25 * #9435: linkcheck: Failed to check anchors in github.com
26
27 Release 4.1.1 (released Jul 15, 2021)
28 =====================================
29
30 Dependencies
31 ------------
32
33 * #9434: sphinxcontrib-htmlhelp-2.0.0 or above
34 * #9434: sphinxcontrib-serializinghtml-1.1.5 or above
35
36 Bugs fixed
37 ----------
38
39 * #9438: html: HTML logo or Favicon specified as file not being found on output
40
41 Release 4.1.0 (released Jul 12, 2021)
42 =====================================
43
44 Dependencies
45 ------------
46
47 * Support jinja2-3.0
48
49 Deprecated
50 ----------
51
52 * The ``app`` argument of ``sphinx.environment.BuildEnvironment`` becomes
53 required
54 * ``sphinx.application.Sphinx.html_theme``
55 * ``sphinx.ext.autosummary._app``
56 * ``sphinx.util.docstrings.extract_metadata()``
57
58 Features added
59 --------------
60
61 * #8107: autodoc: Add ``class-doc-from`` option to :rst:dir:`autoclass`
62 directive to control the content of the specific class like
63 :confval:`autoclass_content`
64 * #8588: autodoc: :confval:`autodoc_type_aliases` now supports dotted name. It
65 allows you to define an alias for a class with module name like
66 ``foo.bar.BazClass``
67 * #9175: autodoc: Special member is not documented in the module
68 * #9195: autodoc: The arguments of ``typing.Literal`` are wrongly rendered
69 * #9185: autodoc: :confval:`autodoc_typehints` allows ``'both'`` setting to
70 allow typehints to be included both in the signature and description
71 * #4257: autodoc: Add :confval:`autodoc_class_signature` to separate the class
72 entry and the definition of ``__init__()`` method
73 * #8061, #9218: autodoc: Support variable comment for alias classes
74 * #3014: autodoc: Add :event:`autodoc-process-bases` to modify the base classes
75 of the class definitions
76 * #9272: autodoc: Render enum values for the default argument value better
77 * #9384: autodoc: ``autodoc_typehints='none'`` now erases typehints for
78 variables, attributes and properties
79 * #3257: autosummary: Support instance attributes for classes
80 * #9358: html: Add "heading" role to the toctree items
81 * #9225: html: Add span tag to the return typehint of method/function
82 * #9129: html search: Show search summaries when ``html_copy_source = False``
83 * #9307: html search: Prevent corrections and completions in search field
84 * #9120: html theme: Eliminate prompt characters of code-block from copyable
85 text
86 * #9176: i18n: Emit a debug message if message catalog file not found under
87 :confval:`locale_dirs`
88 * #9414: LaTeX: Add xeCJKVerbAddon to default fvset config for Chinese documents
89 * #9016: linkcheck: Support checking anchors on github.com
90 * #9016: linkcheck: Add a new event :event:`linkcheck-process-uri` to modify
91 URIs before checking hyperlinks
92 * #6525: linkcheck: Add :confval:`linkcheck_allowed_redirects` to mark
93 hyperlinks that are redirected to expected URLs as "working"
94 * #1874: py domain: Support union types using ``|`` in info-field-list
95 * #9268: py domain: :confval:`python_use_unqualified_type_names` supports type
96 field in info-field-list
97 * #9097: Optimize the parallel build
98 * #9131: Add :confval:`nitpick_ignore_regex` to ignore nitpicky warnings using
99 regular expressions
100 * #9174: Add ``Sphinx.set_html_assets_policy`` to tell extensions to include
101 HTML assets in all the pages. Extensions can check this via
102 ``Sphinx.registry.html_assets_policy``
103 * C++, add support for
104
105 - ``inline`` variables,
106 - ``consteval`` functions,
107 - ``constinit`` variables,
108 - ``char8_t``,
109 - ``explicit(<constant expression>)`` specifier,
110 - digit separators in literals, and
111 - constraints in placeholder type specifiers, aka. adjective syntax
112 (e.g., ``Sortable auto &v``).
113
114 * C, add support for digit separators in literals.
115 * #9166: LaTeX: support containers in LaTeX output
116
117
118 Bugs fixed
119 ----------
120
121 * #8872: autodoc: stacked singledispatches are wrongly rendered
122 * #8597: autodoc: a docsting having metadata only should be treated as
123 undocumented
124 * #9185: autodoc: typehints for overloaded functions and methods are inaccurate
125 * #9250: autodoc: The inherited method not having docstring is wrongly parsed
126 * #9283: autodoc: autoattribute directive failed to generate document for an
127 attribute not having any comment
128 * #9364: autodoc: single element tuple on the default argument value is wrongly
129 rendered
130 * #9362: autodoc: AttributeError is raised on processing a subclass of Tuple[()]
131 * #9404: autodoc: TypeError is raised on processing dict-like object (not a
132 class) via autoclass directive
133 * #9317: html: Pushing left key causes visiting the next page at the first page
134 * #9381: html: URL for html_favicon and html_log does not work
135 * #9270: html theme : pyramid theme generates incorrect logo links
136 * #9217: manpage: The name of manpage directory that is generated by
137 :confval:`man_make_section_directory` is not correct
138 * #9350: manpage: Fix font isn't reset after keyword at the top of samp role
139 * #9306: Linkcheck reports broken link when remote server closes the connection
140 on HEAD request
141 * #9280: py domain: "exceptions" module is not displayed
142 * #9418: py domain: a Callable annotation with no parameters
143 (e.g. ``Callable[[], None])`` will be rendered with a bracket missing
144 (``Callable[], None]``)
145 * #9319: quickstart: Make sphinx-quickstart exit when conf.py already exists
146 * #9387: xml: XML Builder ignores custom visitors
147 * #9224: ``:param:`` and ``:type:`` fields does not support a type containing
148 whitespace (ex. ``Dict[str, str]``)
149 * #8945: when transforming typed fields, call the specified role instead of
150 making an single xref. For C and C++, use the ``expr`` role for typed fields.