| 1 |
========== |
| 2 |
Sphinx 2.1 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 2.1.2 (released Jun 19, 2019) |
| 7 |
===================================== |
| 8 |
|
| 9 |
Bugs fixed |
| 10 |
---------- |
| 11 |
|
| 12 |
* #6497: custom lexers fails highlighting when syntax error |
| 13 |
* #6478, #6488: info field lists are incorrectly recognized |
| 14 |
|
| 15 |
Release 2.1.1 (released Jun 10, 2019) |
| 16 |
===================================== |
| 17 |
|
| 18 |
Incompatible changes |
| 19 |
-------------------- |
| 20 |
|
| 21 |
* #6447: autodoc: Stop to generate document for undocumented module variables |
| 22 |
|
| 23 |
Bugs fixed |
| 24 |
---------- |
| 25 |
|
| 26 |
* #6442: LaTeX: admonitions of :rst:dir:`note` type can get separated from |
| 27 |
immediately preceding section title by pagebreak |
| 28 |
* #6448: autodoc: crashed when autodocumenting classes with ``__slots__ = None`` |
| 29 |
* #6451: autodoc: generates docs for "optional import"ed modules as variables |
| 30 |
* #6452: autosummary: crashed when generating document of properties |
| 31 |
* #6455: napoleon: docstrings for properties are not processed |
| 32 |
* #6436: napoleon: "Unknown target name" error if variable name ends with |
| 33 |
underscore |
| 34 |
* #6440: apidoc: missing blank lines between modules |
| 35 |
|
| 36 |
Release 2.1.0 (released Jun 02, 2019) |
| 37 |
===================================== |
| 38 |
|
| 39 |
Incompatible changes |
| 40 |
-------------------- |
| 41 |
|
| 42 |
* Ignore filenames without file extension given to ``Builder.build_specific()`` |
| 43 |
API directly |
| 44 |
* #6230: The anchor of term in glossary directive is changed if it is consisted |
| 45 |
by non-ASCII characters |
| 46 |
* #4550: html: Centering tables by default using CSS |
| 47 |
* #6239: latex: xelatex and xeCJK are used for Chinese documents by default |
| 48 |
* ``Sphinx.add_lexer()`` now takes a Lexer class instead of instance. An |
| 49 |
instance of lexers are still supported until Sphinx 3.x. |
| 50 |
|
| 51 |
Deprecated |
| 52 |
---------- |
| 53 |
|
| 54 |
* ``sphinx.builders.latex.LaTeXBuilder.apply_transforms()`` |
| 55 |
* ``sphinx.builders._epub_base.EpubBuilder.esc()`` |
| 56 |
* ``sphinx.directives.Acks`` |
| 57 |
* ``sphinx.directives.Author`` |
| 58 |
* ``sphinx.directives.Centered`` |
| 59 |
* ``sphinx.directives.Class`` |
| 60 |
* ``sphinx.directives.CodeBlock`` |
| 61 |
* ``sphinx.directives.Figure`` |
| 62 |
* ``sphinx.directives.HList`` |
| 63 |
* ``sphinx.directives.Highlight`` |
| 64 |
* ``sphinx.directives.Include`` |
| 65 |
* ``sphinx.directives.Index`` |
| 66 |
* ``sphinx.directives.LiteralInclude`` |
| 67 |
* ``sphinx.directives.Meta`` |
| 68 |
* ``sphinx.directives.Only`` |
| 69 |
* ``sphinx.directives.SeeAlso`` |
| 70 |
* ``sphinx.directives.TabularColumns`` |
| 71 |
* ``sphinx.directives.TocTree`` |
| 72 |
* ``sphinx.directives.VersionChange`` |
| 73 |
* ``sphinx.domains.python.PyClassmember`` |
| 74 |
* ``sphinx.domains.python.PyModulelevel`` |
| 75 |
* ``sphinx.domains.std.StandardDomain._resolve_citation_xref()`` |
| 76 |
* ``sphinx.domains.std.StandardDomain.note_citations()`` |
| 77 |
* ``sphinx.domains.std.StandardDomain.note_citation_refs()`` |
| 78 |
* ``sphinx.domains.std.StandardDomain.note_labels()`` |
| 79 |
* ``sphinx.environment.NoUri`` |
| 80 |
* ``sphinx.ext.apidoc.format_directive()`` |
| 81 |
* ``sphinx.ext.apidoc.format_heading()`` |
| 82 |
* ``sphinx.ext.apidoc.makename()`` |
| 83 |
* ``sphinx.ext.autodoc.importer.MockFinder`` |
| 84 |
* ``sphinx.ext.autodoc.importer.MockLoader`` |
| 85 |
* ``sphinx.ext.autodoc.importer.mock()`` |
| 86 |
* ``sphinx.ext.autosummary.autolink_role()`` |
| 87 |
* ``sphinx.ext.imgmath.DOC_BODY`` |
| 88 |
* ``sphinx.ext.imgmath.DOC_BODY_PREVIEW`` |
| 89 |
* ``sphinx.ext.imgmath.DOC_HEAD`` |
| 90 |
* ``sphinx.transforms.CitationReferences`` |
| 91 |
* ``sphinx.transforms.SmartQuotesSkipper`` |
| 92 |
* ``sphinx.util.docfields.DocFieldTransformer.preprocess_fieldtypes()`` |
| 93 |
* ``sphinx.util.node.find_source_node()`` |
| 94 |
* ``sphinx.util.i18n.find_catalog()`` |
| 95 |
* ``sphinx.util.i18n.find_catalog_files()`` |
| 96 |
* ``sphinx.util.i18n.find_catalog_source_files()`` |
| 97 |
|
| 98 |
For more details, see :ref:`deprecation APIs list <dev-deprecated-apis>`. |
| 99 |
|
| 100 |
Features added |
| 101 |
-------------- |
| 102 |
|
| 103 |
* Add a helper class ``sphinx.transforms.post_transforms.SphinxPostTransform`` |
| 104 |
* Add helper methods |
| 105 |
|
| 106 |
- ``PythonDomain.note_module()`` |
| 107 |
- ``PythonDomain.note_object()`` |
| 108 |
- ``SphinxDirective.set_source_info()`` |
| 109 |
|
| 110 |
* #6180: Support ``--keep-going`` with ``BuildDoc`` setup command |
| 111 |
* ``math`` directive now supports ``:class:`` option |
| 112 |
* todo: ``todo`` directive now supports ``:name:`` option |
| 113 |
* Enable override via environment of ``SPHINXOPTS`` and ``SPHINXBUILD`` Makefile |
| 114 |
variables (refs: #6232, #6303) |
| 115 |
* #6287: autodoc: Unable to document bound instance methods exported as module |
| 116 |
functions |
| 117 |
* #6289: autodoc: :confval:`autodoc_default_options` now supports |
| 118 |
``imported-members`` option |
| 119 |
* #4777: autodoc: Support coroutine |
| 120 |
* #744: autodoc: Support abstractmethod |
| 121 |
* #6325: autodoc: Support attributes in __slots__. For dict-style __slots__, |
| 122 |
autodoc considers values as a docstring of the attribute |
| 123 |
* #6361: autodoc: Add :confval:`autodoc_typehints` to suppress typehints from |
| 124 |
signature |
| 125 |
* #1063: autodoc: ``automodule`` directive now handles undocumented module level |
| 126 |
variables |
| 127 |
* #6212: autosummary: Add :confval:`autosummary_imported_members` to display |
| 128 |
imported members on autosummary |
| 129 |
* #6271: ``make clean`` is catastrophically broken if building into '.' |
| 130 |
* #6363: Support ``%O%`` environment variable in make.bat |
| 131 |
* #4777: py domain: Add ``:async:`` option to :rst:dir:`py:function` directive |
| 132 |
* py domain: Add new options to :rst:dir:`py:method` directive |
| 133 |
|
| 134 |
- ``:abstractmethod:`` |
| 135 |
- ``:async:`` |
| 136 |
- ``:classmethod:`` |
| 137 |
- ``:property:`` |
| 138 |
- ``:staticmethod:`` |
| 139 |
|
| 140 |
* rst domain: Add :rst:dir:`rst:directive:option` directive to describe the option |
| 141 |
for directive |
| 142 |
* #6306: html: Add a label to search form for accessibility purposes |
| 143 |
* #4390: html: Consistent and semantic CSS for signatures |
| 144 |
* #6358: The ``rawsource`` property of ``production`` nodes now contains the |
| 145 |
full production rule |
| 146 |
* #6373: autosectionlabel: Allow suppression of warnings |
| 147 |
* coverage: Support a new ``coverage_ignore_pyobjects`` option |
| 148 |
* #6239: latex: Support to build Chinese documents |
| 149 |
|
| 150 |
Bugs fixed |
| 151 |
---------- |
| 152 |
|
| 153 |
* #6230: Inappropriate node_id has been generated by glossary directive if term |
| 154 |
is consisted by non-ASCII characters |
| 155 |
* #6213: ifconfig: contents after headings are not shown |
| 156 |
* commented term in glossary directive is wrongly recognized |
| 157 |
* #6299: rst domain: rst:directive directive generates waste space |
| 158 |
* #6379: py domain: Module index (py-modindex.html) has duplicate titles |
| 159 |
* #6331: man: invalid output when doctest follows rubric |
| 160 |
* #6351: "Hyperlink target is not referenced" message is shown even if |
| 161 |
referenced |
| 162 |
* #6165: autodoc: ``tab_width`` setting of Docutils has been ignored |
| 163 |
* #6347: autodoc: crashes with a plain Tuple on Python 3.6 and 3.5 |
| 164 |
* #6311: autosummary: autosummary table gets confused by complex type hints |
| 165 |
* #6350: autosummary: confused by an argument having some kind of default value |
| 166 |
* Generated Makefiles lack a final EOL (refs: #6232) |
| 167 |
* #6375: extlinks: Cannot escape angle brackets in link caption |
| 168 |
* #6378: linkcheck: Send commonly used User-Agent |
| 169 |
* #6387: html search: failed to search document with haiku and scrolls themes |
| 170 |
* #6408: html search: Fix the ranking of search results |
| 171 |
* #6406: Wrong year is returned for ``SOURCE_DATE_EPOCH`` |
| 172 |
* #6402: image directive crashes by unknown image format |
| 173 |
* #6286: C++, allow 8 and 9 in hexadecimal integer literals. |
| 174 |
* #6305: Fix the string in quickstart for 'path' argument of parser |
| 175 |
* LaTeX: Figures in admonitions produced errors (refs: #6364) |