Debian Codegraph @

doc/changes/3.2.rst

raw
1 ==========
2 Sphinx 3.2
3 ==========
4
5
6 Release 3.2.1 (released Aug 14, 2020)
7 =====================================
8
9 Features added
10 --------------
11
12 * #8095: napoleon: Add :confval:`napoleon_preprocess_types` to enable the type
13 preprocessor for numpy style docstrings
14 * #8114: C and C++, parse function attributes after parameters and qualifiers.
15
16 Bugs fixed
17 ----------
18
19 * #8074: napoleon: Crashes during processing C-ext module
20 * #8088: napoleon: "Inline literal start-string without end-string" warning in
21 Numpy style Parameters section
22 * #8084: autodoc: KeyError is raised on documenting an attribute of the broken
23 class
24 * #8091: autodoc: AttributeError is raised on documenting an attribute on Python
25 3.5.2
26 * #8099: autodoc: NameError is raised when target code uses ``TYPE_CHECKING``
27 * C++, fix parsing of template template parameters, broken by the fix of #7944
28
29 Release 3.2.0 (released Aug 08, 2020)
30 =====================================
31
32 Deprecated
33 ----------
34
35 * ``sphinx.ext.autodoc.members_set_option()``
36 * ``sphinx.ext.autodoc.merge_special_members_option()``
37 * ``sphinx.writers.texinfo.TexinfoWriter.desc``
38 * C, parsing of pre-v3 style type directives and roles, along with the options
39 :confval:`!c_allow_pre_v3` and :confval:`!c_warn_on_allowed_pre_v3`.
40
41 Features added
42 --------------
43
44 * #2076: autodoc: Allow overriding of exclude-members in skip-member function
45 * #8034: autodoc: ``:private-member:`` can take an explicit list of member names
46 to be documented
47 * #2024: autosummary: Add :confval:`autosummary_filename_map` to avoid conflict
48 of filenames between two object with different case
49 * #8011: autosummary: Support instance attributes as a target of autosummary
50 directive
51 * #7849: html: Add :confval:`html_codeblock_linenos_style` to change the style
52 of line numbers for code-blocks
53 * #7853: C and C++, support parameterized GNU style attributes.
54 * #7888: napoleon: Add aliases Warn and Raise.
55 * #7690: napoleon: parse type strings and make them hyperlinks as possible. The
56 conversion rule can be updated via :confval:`napoleon_type_aliases`
57 * #8049: napoleon: Create a hyperlink for each the type of parameter when
58 :confval:`napoleon_use_param` is ``False``
59 * C, added :rst:dir:`c:alias` directive for inserting copies
60 of existing declarations.
61 * #7745: html: inventory is broken if the docname contains a space
62 * #7991: html search: Allow searching for numbers
63 * #7902: html theme: Add a new option :confval:`globaltoc_maxdepth` to control
64 the behavior of globaltoc in sidebar
65 * #7840: i18n: Optimize the dependencies check on bootstrap
66 * #7768: i18n: :confval:`figure_language_filename` supports ``docpath`` token
67 * #5208: linkcheck: Support checks for local links
68 * #5090: setuptools: Link verbosity to distutils' -v and -q option
69 * #6698: doctest: Add ``:trim-doctest-flags:`` and ``:no-trim-doctest-flags:``
70 options to doctest, testcode and testoutput directives
71 * #7052: add ``:noindexentry:`` to the Python, C, C++, and Javascript domains.
72 Update the documentation to better reflect the relationship between this option
73 and the ``:noindex:`` option.
74 * #7899: C, add possibility of parsing of some pre-v3 style type directives and
75 roles and try to convert them to equivalent v3 directives/roles.
76 Set the new option :confval:`!c_allow_pre_v3` to ``True`` to enable this.
77 The warnings printed from this functionality can be suppressed by setting
78 :confval:`!c_warn_on_allowed_pre_v3` to ``True``.
79 The functionality is immediately deprecated.
80 * #7999: C, add support for named variadic macro arguments.
81 * #8071: Allow to suppress "self referenced toctrees" warning
82
83 Bugs fixed
84 ----------
85
86 * #7886: autodoc: TypeError is raised on mocking generic-typed classes
87 * #7935: autodoc: function signature is not shown when the function has a
88 parameter having ``inspect._empty`` as its default value
89 * #7901: autodoc: type annotations for overloaded functions are not resolved
90 * #904: autodoc: An instance attribute cause a crash of autofunction directive
91 * #1362: autodoc: ``private-members`` option does not work for class attributes
92 * #7983: autodoc: Generator type annotation is wrongly rendered in py36
93 * #8030: autodoc: An uninitialized annotated instance variable is not documented
94 when ``:inherited-members:`` option given
95 * #8032: autodoc: A type hint for the instance variable defined at parent class
96 is not shown in the document of the derived class
97 * #8041: autodoc: An annotated instance variable on super class is not
98 documented when derived class has other annotated instance variables
99 * #7839: autosummary: cannot handle umlauts in function names
100 * #7865: autosummary: Failed to extract summary line when abbreviations found
101 * #7866: autosummary: Failed to extract correct summary line when docstring
102 contains a hyperlink target
103 * #7469: autosummary: "Module attributes" header is not translatable
104 * #7940: apidoc: An extra newline is generated at the end of the rst file if a
105 module has submodules
106 * #4258: napoleon: decorated special methods are not shown
107 * #7799: napoleon: parameters are not escaped for combined params in numpydoc
108 * #7780: napoleon: multiple parameters declaration in numpydoc was wrongly
109 recognized when ``napoleon_use_param=True``
110 * #7715: LaTeX: ``numfig_secnum_depth > 1`` leads to wrong figure links
111 * #7846: html theme: XML-invalid files were generated
112 * #7894: gettext: Wrong source info is shown when using rst_epilog
113 * #7691: linkcheck: HEAD requests are not used for checking
114 * #4888: i18n: Failed to add an explicit title to ``:ref:`` role on translation
115 * #7928: py domain: failed to resolve a type annotation for the attribute
116 * #8008: py domain: failed to parse a type annotation containing ellipsis
117 * #7994: std domain: option directive does not generate old node_id compatible
118 with 2.x or older
119 * #7968: i18n: The content of ``math`` directive is interpreted as reST on
120 translation
121 * #7768: i18n: The ``root`` element for :confval:`figure_language_filename` is
122 not a path that user specifies in the document
123 * #7993: texinfo: TypeError is raised for nested object descriptions
124 * #7993: texinfo: a warning not supporting desc_signature_line node is shown
125 * #7869: :rst:role:`abbr` role without an explanation will show the explanation
126 from the previous abbr role
127 * #8048: graphviz: graphviz.css was copied on building non-HTML document
128 * C and C++, removed ``noindex`` directive option as it did
129 nothing.
130 * #7619: Duplicated node IDs are generated if node has multiple IDs
131 * #2050: Symbols sections are appeared twice in the index page
132 * #8017: Fix circular import in sphinx.addnodes
133 * #7986: CSS: make "highlight" selector more robust
134 * #7944: C++, parse non-type template parameters starting with
135 a dependent qualified name.
136 * C, don't deepcopy the entire symbol table and make a mess every time an
137 enumerator is handled.