| 1 |
========== |
| 2 |
Sphinx 3.1 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 3.1.2 (released Jul 05, 2020) |
| 7 |
===================================== |
| 8 |
|
| 9 |
Incompatible changes |
| 10 |
-------------------- |
| 11 |
|
| 12 |
* #7650: autodoc: the signature of base function will be shown for decorated |
| 13 |
functions, not a signature of decorator |
| 14 |
|
| 15 |
Bugs fixed |
| 16 |
---------- |
| 17 |
|
| 18 |
* #7844: autodoc: Failed to detect module when relative module name given |
| 19 |
* #7856: autodoc: AttributeError is raised when non-class object is given to |
| 20 |
the autoclass directive |
| 21 |
* #7850: autodoc: KeyError is raised for invalid mark up when autodoc_typehints |
| 22 |
is 'description' |
| 23 |
* #7812: autodoc: crashed if the target name matches to both an attribute and |
| 24 |
module that are same name |
| 25 |
* #7650: autodoc: function signature becomes ``(*args, **kwargs)`` if the |
| 26 |
function is decorated by generic decorator |
| 27 |
* #7812: autosummary: generates broken stub files if the target code contains |
| 28 |
an attribute and module that are same name |
| 29 |
* #7806: viewcode: Failed to resolve viewcode references on 3rd party builders |
| 30 |
* #7838: html theme: List items have extra vertical space |
| 31 |
* #7878: html theme: Undesired interaction between "overflow" and "float" |
| 32 |
|
| 33 |
Release 3.1.1 (released Jun 14, 2020) |
| 34 |
===================================== |
| 35 |
|
| 36 |
Incompatible changes |
| 37 |
-------------------- |
| 38 |
|
| 39 |
* #7808: napoleon: a type for attribute are represented as typed field |
| 40 |
|
| 41 |
Features added |
| 42 |
-------------- |
| 43 |
|
| 44 |
* #7807: autodoc: Show detailed warning when type_comment is mismatched with its |
| 45 |
signature |
| 46 |
|
| 47 |
Bugs fixed |
| 48 |
---------- |
| 49 |
|
| 50 |
* #7808: autodoc: Warnings raised on variable and attribute type annotations |
| 51 |
* #7802: autodoc: EOFError is raised on parallel build |
| 52 |
* #7821: autodoc: TypeError is raised for overloaded C-ext function |
| 53 |
* #7805: autodoc: an object which descriptors returns is unexpectedly documented |
| 54 |
* #7807: autodoc: wrong signature is shown for the function using contextmanager |
| 55 |
* #7812: autosummary: generates broken stub files if the target code contains |
| 56 |
an attribute and module that are same name |
| 57 |
* #7808: napoleon: Warnings raised on variable and attribute type annotations |
| 58 |
* #7811: sphinx.util.inspect causes circular import problem |
| 59 |
|
| 60 |
Release 3.1.0 (released Jun 08, 2020) |
| 61 |
===================================== |
| 62 |
|
| 63 |
Dependencies |
| 64 |
------------ |
| 65 |
|
| 66 |
* #7746: mathjax: Update to 2.7.5 |
| 67 |
|
| 68 |
Incompatible changes |
| 69 |
-------------------- |
| 70 |
|
| 71 |
* #7477: imgconverter: Invoke "magick convert" command by default on Windows |
| 72 |
|
| 73 |
Deprecated |
| 74 |
---------- |
| 75 |
|
| 76 |
* The first argument for sphinx.ext.autosummary.generate.AutosummaryRenderer has |
| 77 |
been changed to Sphinx object |
| 78 |
* ``sphinx.ext.autosummary.generate.AutosummaryRenderer`` takes an object type |
| 79 |
as an argument |
| 80 |
* The ``ignore`` argument of ``sphinx.ext.autodoc.Documenter.get_doc()`` |
| 81 |
* The ``template_dir`` argument of ``sphinx.ext.autosummary.generate. |
| 82 |
AutosummaryRenderer`` |
| 83 |
* The ``module`` argument of ``sphinx.ext.autosummary.generate. |
| 84 |
find_autosummary_in_docstring()`` |
| 85 |
* The ``builder`` argument of ``sphinx.ext.autosummary.generate. |
| 86 |
generate_autosummary_docs()`` |
| 87 |
* The ``template_dir`` argument of ``sphinx.ext.autosummary.generate. |
| 88 |
generate_autosummary_docs()`` |
| 89 |
* The ``ignore`` argument of ``sphinx.util.docstring.prepare_docstring()`` |
| 90 |
* ``sphinx.ext.autosummary.generate.AutosummaryRenderer.exists()`` |
| 91 |
* ``sphinx.util.rpartition()`` |
| 92 |
|
| 93 |
Features added |
| 94 |
-------------- |
| 95 |
|
| 96 |
* LaTeX: Make the ``toplevel_sectioning`` setting optional in LaTeX theme |
| 97 |
* LaTeX: Allow to override papersize and pointsize from LaTeX themes |
| 98 |
* LaTeX: Add :confval:`latex_theme_options` to override theme options |
| 99 |
* #7410: Allow to suppress "circular toctree references detected" warnings using |
| 100 |
:confval:`suppress_warnings` |
| 101 |
* C, added scope control directives, :rst:dir:`c:namespace`, |
| 102 |
:rst:dir:`c:namespace-push`, and :rst:dir:`c:namespace-pop`. |
| 103 |
* #2044: autodoc: Suppress default value for instance attributes |
| 104 |
* #7473: autodoc: consider a member public if docstring contains |
| 105 |
``:meta public:`` in info-field-list |
| 106 |
* #7487: autodoc: Allow to generate docs for singledispatch functions by |
| 107 |
py:autofunction |
| 108 |
* #7143: autodoc: Support final classes and methods |
| 109 |
* #7384: autodoc: Support signatures defined by ``__new__()``, metaclasses and |
| 110 |
builtin base classes |
| 111 |
* #2106: autodoc: Support multiple signatures on docstring |
| 112 |
* #4422: autodoc: Support GenericAlias in Python 3.7 or above |
| 113 |
* #3610: autodoc: Support overloaded functions |
| 114 |
* #7722: autodoc: Support TypeVar |
| 115 |
* #7466: autosummary: headings in generated documents are not translated |
| 116 |
* #7490: autosummary: Add ``:caption:`` option to autosummary directive to set a |
| 117 |
caption to the toctree |
| 118 |
* #7469: autosummary: Support module attributes |
| 119 |
* #248, #6040: autosummary: Add ``:recursive:`` option to autosummary directive |
| 120 |
to generate stub files recursively |
| 121 |
* #4030: autosummary: Add :confval:`autosummary_context` to add template |
| 122 |
variables for custom templates |
| 123 |
* #7530: html: Support nested <kbd> elements |
| 124 |
* #7481: html theme: Add right margin to footnote/citation labels |
| 125 |
* #7482, #7717: html theme: CSS spacing for code blocks with captions and line |
| 126 |
numbers |
| 127 |
* #7443: html theme: Add new options :confval:`globaltoc_collapse` and |
| 128 |
:confval:`globaltoc_includehidden` to control the behavior of globaltoc in |
| 129 |
sidebar |
| 130 |
* #7484: html theme: Avoid clashes between sidebar and other blocks |
| 131 |
* #7476: html theme: Relbar breadcrumb should contain current page |
| 132 |
* #7506: html theme: A canonical URL is not escaped |
| 133 |
* #7533: html theme: Avoid whitespace at the beginning of genindex.html |
| 134 |
* #7541: html theme: Add a "clearer" at the end of the "body" |
| 135 |
* #7542: html theme: Make admonition/topic/sidebar scrollable |
| 136 |
* #7543: html theme: Add top and bottom margins to tables |
| 137 |
* #7695: html theme: Add viewport meta tag for basic theme |
| 138 |
* #7721: html theme: classic: default codetextcolor/codebgcolor doesn't override |
| 139 |
Pygments |
| 140 |
* C and C++: allow semicolon in the end of declarations. |
| 141 |
* C++, parse parameterized noexcept specifiers. |
| 142 |
* #7294: C++, parse expressions with user-defined literals. |
| 143 |
* C++, parse trailing return types. |
| 144 |
* #7143: py domain: Add ``:final:`` option to :rst:dir:`py:class`, |
| 145 |
:rst:dir:`py:exception` and :rst:dir:`py:method` directives |
| 146 |
* #7596: py domain: Change a type annotation for variables to a hyperlink |
| 147 |
* #7770: std domain: :rst:dir:`option` directive support arguments in the form |
| 148 |
of ``foo[=bar]`` |
| 149 |
* #7582: napoleon: a type for attribute are represented like type annotation |
| 150 |
* #7734: napoleon: overescaped trailing underscore on attribute |
| 151 |
* #7247: linkcheck: Add :confval:`linkcheck_request_headers` to send custom HTTP |
| 152 |
headers for specific host |
| 153 |
* #7792: setuptools: Support ``--verbosity`` option |
| 154 |
* #7683: Add ``allowed_exceptions`` parameter to ``Sphinx.emit()`` to allow |
| 155 |
handlers to raise specified exceptions |
| 156 |
* #7295: C++, parse (trailing) requires clauses. |
| 157 |
|
| 158 |
Bugs fixed |
| 159 |
---------- |
| 160 |
|
| 161 |
* #6703: autodoc: incremental build does not work for imported objects |
| 162 |
* #7564: autodoc: annotations not to be shown for descriptors |
| 163 |
* #6588: autodoc: Decorated inherited method has no documentation |
| 164 |
* #7469: autodoc: The change of autodoc-process-docstring for variables is |
| 165 |
cached unexpectedly |
| 166 |
* #7559: autodoc: misdetects a sync function is async |
| 167 |
* #6857: autodoc: failed to detect a classmethod on Enum class |
| 168 |
* #7562: autodoc: a typehint contains spaces is wrongly rendered under |
| 169 |
:confval:`autodoc_typehints`\ ``='description'`` mode |
| 170 |
* #7551: autodoc: failed to import nested class |
| 171 |
* #7362: autodoc: does not render correct signatures for built-in functions |
| 172 |
* #7654: autodoc: ``Optional[Union[foo, bar]]`` is presented as |
| 173 |
``Union[foo, bar, None]`` |
| 174 |
* #7629: autodoc: autofunction emits an unfriendly warning if an invalid object |
| 175 |
specified |
| 176 |
* #7650: autodoc: undecorated signature is shown for decorated functions |
| 177 |
* #7676: autodoc: typo in the default value of autodoc_member_order |
| 178 |
* #7676: autodoc: wrong value for :member-order: option is ignored silently |
| 179 |
* #7676: autodoc: member-order="bysource" does not work for C module |
| 180 |
* #3673: autodoc: member-order="bysource" does not work for a module having |
| 181 |
``__all__`` |
| 182 |
* #7668: autodoc: wrong retann value is passed to a handler of |
| 183 |
autodoc-process-signature |
| 184 |
* #7711: autodoc: fails with ValueError when processing numpy objects |
| 185 |
* #7791: autodoc: TypeError is raised on documenting singledispatch function |
| 186 |
* #7551: autosummary: a nested class is indexed as non-nested class |
| 187 |
* #7661: autosummary: autosummary directive emits warnings twices if failed to |
| 188 |
import the target module |
| 189 |
* #7685: autosummary: The template variable "members" contains imported members |
| 190 |
even if :confval:`autossummary_imported_members` is ``False`` |
| 191 |
* #7671: autosummary: The location of import failure warning is missing |
| 192 |
* #7535: sphinx-autogen: crashes when custom template uses inheritance |
| 193 |
* #7536: sphinx-autogen: crashes when template uses i18n feature |
| 194 |
* #7781: sphinx-build: Wrong error message when outdir is not directory |
| 195 |
* #7653: sphinx-quickstart: Fix multiple directory creation for nested relpath |
| 196 |
* #2785: html: Bad alignment of equation links |
| 197 |
* #7718: html theme: some themes does not respect background color of Pygments |
| 198 |
style (agogo, haiku, nature, pyramid, scrolls, sphinxdoc and traditional) |
| 199 |
* #7544: html theme: inconsistent padding in admonitions |
| 200 |
* #7581: napoleon: bad parsing of inline code in attribute docstrings |
| 201 |
* #7628: imgconverter: runs imagemagick once unnecessary for builders not |
| 202 |
supporting images |
| 203 |
* #7610: incorrectly renders consecutive backslashes for Docutils 0.16 |
| 204 |
* #7646: handle errors on event handlers |
| 205 |
* #4187: LaTeX: EN DASH disappears from PDF bookmarks in Japanese documents |
| 206 |
* #7701: LaTeX: Anonymous indirect hyperlink target causes duplicated labels |
| 207 |
* #7723: LaTeX: pdflatex crashed when URL contains a single quote |
| 208 |
* #7756: py domain: The default value for positional only argument is not shown |
| 209 |
* #7760: coverage: Add :confval:`coverage_show_missing_items` to show coverage |
| 210 |
result to console |
| 211 |
* C++, fix rendering and xrefs in nested names explicitly starting |
| 212 |
in global scope, e.g., ``::A::B``. |
| 213 |
* C, fix rendering and xrefs in nested names explicitly starting |
| 214 |
in global scope, e.g., ``.A.B``. |
| 215 |
* #7763: C and C++, don't crash during display stringification of unary |
| 216 |
expressions and fold expressions. |