Debian Codegraph @

doc/changes/1.7.rst

raw
1 ==========
2 Sphinx 1.7
3 ==========
4
5
6 Release 1.7.9 (released Sep 05, 2018)
7 =====================================
8
9 Features added
10 --------------
11
12 * #5359: Make generated texinfo files reproducible by sorting the anchors
13
14 Bugs fixed
15 ----------
16
17 * #5361: crashed on incremental build if document uses include directive
18
19 Release 1.7.8 (released Aug 29, 2018)
20 =====================================
21
22 Incompatible changes
23 --------------------
24
25 * The type of ``env.included`` has been changed to dict of set
26
27 Bugs fixed
28 ----------
29
30 * #5320: intersphinx: crashed if invalid url given
31 * #5326: manpage: crashed when invalid docname is specified as ``man_pages``
32 * #5322: autodoc: ``Any`` typehint causes formatting error
33 * #5327: "document isn't included in any toctree" warning on rebuild with
34 generated files
35 * #5335: quickstart: escape sequence has been displayed with MacPorts' python
36
37 Release 1.7.7 (released Aug 19, 2018)
38 =====================================
39
40 Bugs fixed
41 ----------
42
43 * #5198: document not in toctree warning when including files only for parallel
44 builds
45 * LaTeX: reduce "Token not allowed in a PDF string" hyperref warnings in latex
46 console output (refs: #5236)
47 * LaTeX: suppress "remreset Warning: The remreset package is obsolete" in latex
48 console output with recent LaTeX (refs: #5237)
49 * #5234: PDF output: usage of PAPER environment variable is broken since Sphinx
50 1.5
51 * LaTeX: fix the :confval:`latex_engine` documentation regarding Latin Modern
52 font with XeLaTeX/LuaLateX (refs: #5251)
53 * #5280: autodoc: Fix wrong type annotations for complex typing
54 * autodoc: Optional types are wrongly rendered
55 * #5291: autodoc crashed by ForwardRef types
56 * #5211: autodoc: No docs generated for functools.partial functions
57 * #5306: autodoc: ``getargspec()`` raises NameError for invalid typehints
58 * #5298: imgmath: math_number_all causes equations to have two numbers in html
59 * #5294: sphinx-quickstart blank prompts in PowerShell
60
61 Release 1.7.6 (released Jul 17, 2018)
62 =====================================
63
64 Bugs fixed
65 ----------
66
67 * #5037: LaTeX ``\sphinxupquote{}`` breaks in Russian
68 * sphinx.testing uses deprecated pytest API; ``Node.get_marker(name)``
69 * #5016: crashed when recommonmark.AutoStrictify is enabled
70 * #5022: latex: crashed with Docutils package provided by Debian/Ubuntu
71 * #5009: latex: a label for table is vanished if table does not have a caption
72 * #5048: crashed with numbered toctree
73 * #2410: C, render empty argument lists for macros.
74 * C++, fix lookup of full template specializations with no template arguments.
75 * #4667: C++, fix assertion on missing references in global scope when using
76 intersphinx. Thanks to Alan M. Carroll.
77 * #5019: autodoc: crashed by Form Feed Character
78 * #5032: autodoc: loses the first staticmethod parameter for old styled classes
79 * #5036: quickstart: Typing Ctrl-U clears the whole of line
80 * #5066: html: "relations" sidebar is not shown by default
81 * #5091: latex: curly braces in index entries are not handled correctly
82 * #5070: epub: Wrong internal href fragment links
83 * #5104: apidoc: Interface of ``sphinx.apidoc:main()`` has changed
84 * #4272: PDF builds of French projects have issues with XeTeX
85 * #5076: napoleon raises RuntimeError with python 3.7
86 * #5125: sphinx-build: Interface of ``sphinx:main()`` has changed
87 * sphinx-build: ``sphinx.cmd.build.main()`` refers ``sys.argv`` instead of given
88 argument
89 * #5146: autosummary: warning is emitted when the first line of docstring ends
90 with literal notation
91 * autosummary: warnings of autosummary indicates wrong location (refs: #5146)
92 * #5143: autodoc: crashed on inspecting dict like object which does not support
93 sorting
94 * #5139: autodoc: Enum argument missing if it shares value with another
95 * #4946: py domain: rtype field could not handle "``None``" as a type
96 * #5176: LaTeX: indexing of terms containing ``@``, ``!``, or ``"`` fails
97 * #5161: html: crashes if copying static files are failed
98 * #5167: autodoc: Fix formatting type annotations for tuples with more than two
99 arguments
100 * #3329: i18n: crashed by auto-symbol footnote references
101 * #5158: autosummary: module summary has been broken when it starts with heading
102
103 Release 1.7.5 (released May 29, 2018)
104 =====================================
105
106 Bugs fixed
107 ----------
108
109 * #4924: html search: Upper characters problem in any other languages
110 * #4932: apidoc: some subpackage is ignored if sibling subpackage contains a
111 module starting with underscore
112 * #4863, #4938, #4939: i18n doesn't handle correctly node.title as used for
113 contents, topic, admonition, table and section.
114 * #4913: i18n: literal blocks in bullet list are not translated
115 * #4962: C++, raised TypeError on duplicate declaration.
116 * #4825: C++, properly parse expr roles and give better error messages when
117 (escaped) line breaks are present.
118 * C++, properly use ``desc_addname`` nodes for prefixes of names.
119 * C++, parse pack expansions in function calls.
120 * #4915, #4916: links on search page are broken when using dirhtml builder
121 * #4969: autodoc: constructor method should not have return annotation
122 * latex: deeply nested enumerated list which is beginning with non-1 causes
123 LaTeX engine crashed
124 * #4978: latex: shorthandoff is not set up for Brazil locale
125 * #4928: i18n: Ignore dot-directories like .git/ in LC_MESSAGES/
126 * #4946: py domain: type field could not handle "``None``" as a type
127 * #4979: latex: Incorrect escaping of curly braces in index entries
128 * #4956: autodoc: Failed to extract document from a subclass of the class on
129 mocked module
130 * #4973: latex: glossary directive adds whitespace to each item
131 * #4980: latex: Explicit labels on code blocks are duplicated
132 * #4919: node.asdom() crashes if toctree has :numbered: option
133 * #4914: autodoc: Parsing error when using dataclasses without default values
134 * #4931: autodoc: crashed when handler for autodoc-skip-member raises an error
135 * #4931: autodoc: crashed when subclass of mocked class are processed by
136 napoleon module
137 * #5007: sphinx-build crashes when error log contains a "%" character
138
139 Release 1.7.4 (released Apr 25, 2018)
140 =====================================
141
142 Bugs fixed
143 ----------
144
145 * #4885, #4887: domains: Crashed with duplicated objects
146 * #4889: latex: sphinx.writers.latex causes recursive import
147
148 Release 1.7.3 (released Apr 23, 2018)
149 =====================================
150
151 Bugs fixed
152 ----------
153
154 * #4769: autodoc loses the first staticmethod parameter
155 * #4790: autosummary: too wide two column tables in PDF builds
156 * #4795: Latex customization via ``_templates/longtable.tex_t`` is broken
157 * #4789: imgconverter: confused by convert.exe of Windows
158 * #4783: On windows, Sphinx crashed when drives of srcdir and outdir are
159 different
160 * #4812: autodoc ignores type annotated variables
161 * #4817: wrong URLs on warning messages
162 * #4784: latex: :confval:`latex_show_urls` assigns incorrect footnote numbers if
163 hyperlinks exists inside substitutions
164 * #4837: latex with class memoir Error: Font command ``\sf`` is not supported
165 * #4803: latex: too slow in proportion to number of auto numbered footnotes
166 * #4838: htmlhelp: The entries in .hhp file is not ordered
167 * toctree directive tries to glob for URL having query_string
168 * #4871: html search: Upper characters problem in German
169 * #4717: latex: Compilation for German docs failed with LuaLaTeX and XeLaTeX
170 * #4459: duplicated labels detector does not work well in parallel build
171 * #4878: Crashed with extension which returns invalid metadata
172
173 Release 1.7.2 (released Mar 21, 2018)
174 =====================================
175
176 Incompatible changes
177 --------------------
178 * #4520: apidoc: folders with an empty __init__.py are no longer excluded from
179 TOC
180
181 Bugs fixed
182 ----------
183
184 * #4669: sphinx.build_main and sphinx.make_main throw NameError
185 * #4685: autosummary emits meaningless warnings
186 * autodoc: crashed when invalid options given
187 * pydomain: always strip parenthesis if empty (refs: #1042)
188 * #4689: autosummary: unexpectedly strips docstrings containing "i.e."
189 * #4701: viewcode: Misplaced ``<div>`` in viewcode html output
190 * #4444: Don't require numfig to use :numref: on sections
191 * #4727: Option clash for package textcomp
192 * #4725: Sphinx does not work with python 3.5.0 and 3.5.1
193 * #4716: Generation PDF file with TexLive on Windows, file not found error
194 * #4574: vertical space before equation in latex
195 * #4720: message when an image is mismatched for builder is not clear
196 * #4655, #4684: Incomplete localization strings in Polish and Chinese
197 * #2286: Sphinx crashes when error is happens in rendering HTML pages
198 * #4688: Error to download remote images having long URL
199 * #4754: sphinx/pycode/__init__.py raises AttributeError
200 * #1435: qthelp builder should htmlescape keywords
201 * epub: Fix docTitle elements of toc.ncx is not escaped
202 * #4520: apidoc: Subpackage not in toc (introduced in 1.6.6) now fixed
203 * #4767: html: search highlighting breaks mathjax equations
204
205 Release 1.7.1 (released Feb 23, 2018)
206 =====================================
207
208 Deprecated
209 ----------
210
211 * #4623: ``sphinx.build_main()`` is deprecated.
212 * autosummary: The interface of ``sphinx.ext.autosummary.get_documenter()`` has
213 been changed (Since 1.7.0)
214 * #4664: ``sphinx.ext.intersphinx.debug()`` is deprecated.
215
216 For more details, see :ref:`deprecation APIs list <dev-deprecated-apis>`.
217
218 Bugs fixed
219 ----------
220
221 * #4608: epub: Invalid meta tag is generated
222 * #4260: autodoc: keyword only argument separator is not disappeared if it is
223 appeared at top of the argument list
224 * #4622: epub: :confval:`epub_scheme` does not effect to content.opf
225 * #4627: graphviz: Fit graphviz images to page
226 * #4617: quickstart: PROJECT_DIR argument is required
227 * #4623: sphinx.build_main no longer exists in 1.7.0
228 * #4615: The argument of ``sphinx.build`` has been changed in 1.7.0
229 * autosummary: The interface of ``sphinx.ext.autosummary.get_documenter()`` has
230 been changed
231 * #4630: Have order on msgids in sphinx.pot deterministic
232 * #4563: autosummary: Incorrect end of line punctuation detection
233 * #4577: Enumerated sublists with explicit start with wrong number
234 * #4641: A external link in TOC cannot contain "?" with ``:glob:`` option
235 * C++, add missing parsing of explicit casts and typeid in expression parsing.
236 * C++, add missing parsing of ``this`` in expression parsing.
237 * #4655: Fix incomplete localization strings in Polish
238 * #4653: Fix error reporting for parameterless ImportErrors
239 * #4664: Reading objects.inv fails again
240 * #4662: ``any`` refs with ``term`` targets crash when an ambiguity is
241 encountered
242
243 Release 1.7.0 (released Feb 12, 2018)
244 =====================================
245
246 Dependencies
247 ------------
248
249 1.7.0b1
250
251 * Add ``packaging`` package
252
253 Incompatible changes
254 --------------------
255
256 1.7.0b1
257
258 * #3668: The arguments has changed of main functions for each command
259 * #3893: Unknown html_theme_options throw warnings instead of errors
260 * #3927: Python parameter/variable types should match classes, not all objects
261 * #3962: sphinx-apidoc now recognizes given directory as an implicit namespace
262 package when ``--implicit-namespaces`` option given, not subdirectories of
263 given directory.
264 * #3929: apidoc: Move sphinx.apidoc to sphinx.ext.apidoc
265 * #4226: apidoc: Generate new style makefile (make-mode)
266 * #4274: sphinx-build returns 2 as an exit code on argument error
267 * #4389: output directory will be created after loading extensions
268 * autodoc does not generate warnings messages to the generated document even if
269 :confval:`keep_warnings` is ``True``. They are only emitted to stderr.
270 * shebang line is removed from generated conf.py
271 * #2557: autodoc: :confval:`autodoc_mock_imports` only mocks specified modules
272 with their descendants. It does not mock their ancestors. If you want to
273 mock them, please specify the name of ancestors explicitly.
274 * #3620: html theme: move DOCUMENTATION_OPTIONS to independent JavaScript file
275 (refs: #4295)
276 * #4246: Limit width of text body for all themes. Configurable via theme
277 options ``body_min_width`` and ``body_max_width``.
278 * #4771: apidoc: The ``exclude_patterns`` arguments are ignored if they are
279 placed just after command line options
280
281 1.7.0b2
282
283 * #4467: html theme: Rename ``csss`` block to ``css``
284
285 Deprecated
286 ----------
287
288 1.7.0b1
289
290 * using a string value for :confval:`html_sidebars` is deprecated and only list
291 values will be accepted at 2.0.
292 * ``format_annotation()`` and ``formatargspec()`` is deprecated. Please use
293 ``sphinx.util.inspect.Signature`` instead.
294 * ``sphinx.ext.autodoc.AutodocReporter`` is replaced by ``sphinx.util.docutils.
295 switch_source_input()`` and now deprecated. It will be removed in Sphinx 2.0.
296 * ``sphinx.ext.autodoc.add_documenter()`` and ``AutoDirective._register`` is now
297 deprecated. Please use ``app.add_autodocumenter()`` instead.
298 * ``AutoDirective._special_attrgetters`` is now deprecated. Please use
299 ``app.add_autodoc_attrgetter()`` instead.
300
301 Features added
302 --------------
303
304 1.7.0b1
305
306 * C++, handle ``decltype(auto)``.
307 * #2406: C++, add proper parsing of expressions, including linking of
308 identifiers.
309 * C++, add a ``cpp:expr`` role for inserting inline C++ expressions or types.
310 * C++, support explicit member instantiations with shorthand ``template`` prefix
311 * C++, make function parameters linkable, like template params.
312 * #3638: Allow to change a label of reference to equation using
313 ``math_eqref_format``
314 * Now :confval:`suppress_warnings` accepts following configurations:
315
316 - ``ref.python`` (ref: #3866)
317
318 * #3872: Add latex key to configure literal blocks caption position in PDF
319 output (refs #3792, #1723)
320 * In case of missing docstring try to retrieve doc from base classes (ref:
321 #3140)
322 * #4023: Clarify error message when any role has more than one target.
323 * #3973: epub: allow to override build date
324 * #3972: epub: Sort manifest entries by filename
325 * #4052: viewcode: Sort before highlighting module code
326 * #1448: qthelp: Add new config value; :confval:`qthelp_namespace`
327 * #4140: html themes: Make body tag inheritable
328 * #4168: improve zh search with jieba
329 * HTML themes can set up default sidebars through ``theme.conf``
330 * #3160: html: Use ``<kdb>`` to represent ``:kbd:`` role
331 * #4212: autosummary: catch all exceptions when importing modules
332 * #4166: Add :confval:`math_numfig` for equation numbering by section (refs:
333 #3991, #4080). Thanks to Oliver Jahn.
334 * #4311: Let LaTeX obey :confval:`numfig_secnum_depth` for figures, tables, and
335 code-blocks
336 * #947: autodoc now supports ignore-module-all to ignore a module's ``__all__``
337 * #4332: Let LaTeX obey :confval:`math_numfig` for equation numbering
338 * #4093: sphinx-build creates empty directories for unknown targets/builders
339 * Add ``top-classes`` option for the ``sphinx.ext.inheritance_diagram``
340 extension to limit the scope of inheritance graphs.
341 * #4183: doctest: ``:pyversion:`` option also follows PEP-440 specification
342 * #4235: html: Add :confval:`manpages_url` to make manpage roles to hyperlinks
343 * #3570: autodoc: Do not display 'typing.' module for type hints
344 * #4354: sphinx-build now emits finish message. Builders can modify it through
345 ``Builder.epilog`` attribute
346 * #4245: html themes: Add ``language`` to javascript vars list
347 * #4079: html: Add ``notranslate`` class to each code-blocks, literals and maths
348 to let Google Translate know they are not translatable
349 * #4137: doctest: doctest block is always highlighted as python console (pycon)
350 * #4137: doctest: testcode block is always highlighted as python
351 * #3998: text: Assign section numbers by default. You can control it using
352 :confval:`text_add_secnumbers` and :confval:`text_secnumber_suffix`
353
354 1.7.0b2
355
356 * #4271: sphinx-build supports an option called ``-j auto`` to adjust numbers of
357 processes automatically.
358 * Napoleon: added option to specify custom section tags.
359
360
361 Features removed
362 ----------------
363
364 1.7.0b1
365
366 * Configuration variables
367
368 - :confval:`!html_use_smartypants`
369 - :confval:`!latex_keep_old_macro_names`
370 - latex_elements['footer']
371
372 * utility methods of ``sphinx.application.Sphinx`` class
373
374 - buildername (property)
375 - _display_chunk()
376 - old_status_iterator()
377 - status_iterator()
378 - _directive_helper()
379
380 * utility methods of ``sphinx.environment.BuildEnvironment`` class
381
382 - currmodule (property)
383 - currclass (property)
384
385 * epub2 builder
386 * prefix and colorfunc parameter for warn()
387 * ``sphinx.util.compat`` module
388 * ``sphinx.util.nodes.process_only_nodes()``
389 * LaTeX environment ``notice``, use ``sphinxadmonition`` instead
390 * LaTeX ``\sphinxstylethead``, use ``\sphinxstyletheadfamily``
391 * C++, support of function concepts. Thanks to mickk-on-cpp.
392 * Not used and previously not documented LaTeX macros ``\shortversion``
393 and ``\setshortversion``
394
395
396 Bugs fixed
397 ----------
398
399 1.7.0b1
400
401 * #3882: Update the order of files for HTMLHelp and QTHelp
402 * #3962: sphinx-apidoc does not recognize implicit namespace packages correctly
403 * #4094: C++, allow empty template argument lists.
404 * C++, also hyperlink types in the name of declarations with qualified names.
405 * C++, do not add index entries for declarations inside concepts.
406 * C++, support the template disambiguator for dependent names.
407 * #4314: For PDF 'howto' documents, numbering of code-blocks differs from the
408 one of figures and tables
409 * #4330: PDF 'howto' documents have an incoherent default LaTeX tocdepth counter
410 setting
411 * #4198: autosummary emits multiple 'autodoc-process-docstring' event. Thanks
412 to Joel Nothman.
413 * #4081: Warnings and errors colored the same when building
414 * latex: Do not display 'Release' label if :confval:`release` is not set
415
416 1.7.0b2
417
418 * #4415: autodoc classifies inherited classmethods as regular methods
419 * #4415: autodoc classifies inherited staticmethods as regular methods
420 * #4472: DOCUMENTATION_OPTIONS is not defined
421 * #4491: autodoc: prefer _MockImporter over other importers in sys.meta_path
422 * #4490: autodoc: type annotation is broken with python 3.7.0a4+
423 * utils package is no longer installed
424 * #3952: apidoc: module header is too escaped
425 * #4275: Formats accepted by sphinx.util.i18n.format_date are limited
426 * #4493: recommonmark raises AttributeError if AutoStructify enabled
427 * #4209: intersphinx: In link title, "v" should be optional if target has no
428 version
429 * #4230: slowdown in writing pages with Sphinx 1.6
430 * #4522: epub: document is not rebuilt even if config changed
431
432 1.7.0b3
433
434 * #4019: inheritance_diagram AttributeError stopping make process
435 * #4531: autosummary: methods are not treated as attributes
436 * #4538: autodoc: ``sphinx.ext.autodoc.Options`` has been moved
437 * #4539: autodoc emits warnings for partialmethods
438 * #4223: doctest: failing tests reported in wrong file, at wrong line
439 * i18n: message catalogs are not compiled if specific filenames are given for
440 ``sphinx-build`` as arguments (refs: #4560)
441 * #4027: sphinx.ext.autosectionlabel now expects labels to be the same as they
442 are in the raw source; no smart quotes, nothig fancy.
443 * #4581: apidoc: Excluded modules still included
444
445
446 Testing
447 -------
448
449 1.7.0b1
450
451 * Add support for Docutils 0.14
452 * Add tests for the ``sphinx.ext.inheritance_diagram`` extension.