Debian Codegraph @

doc/changes/1.6.rst

raw
1 ==========
2 Sphinx 1.6
3 ==========
4
5
6 Release 1.6.7 (released Feb 04, 2018)
7 =====================================
8
9 Bugs fixed
10 ----------
11
12 * #1922: html search: Upper characters problem in French
13 * #4412: Updated jQuery version from 3.1.0 to 3.2.1
14 * #4438: math: math with labels with whitespace cause html error
15 * #2437: make full reference for classes, aliased with "alias of"
16 * #4434: pure numbers as link targets produce warning
17 * #4477: Build fails after building specific files
18 * #4449: apidoc: include "empty" packages that contain modules
19 * #3917: citation labels are transformed to ellipsis
20 * #4501: graphviz: epub3 validation error caused if graph is not clickable
21 * #4514: graphviz: workaround for wrong map ID which graphviz generates
22 * #4525: autosectionlabel does not support parallel build
23 * #3953: Do not raise warning when there is a working intersphinx inventory
24 * #4487: math: ValueError is raised on parallel build. Thanks to jschueller.
25 * #2372: autosummary: invalid signatures are shown for type annotated functions
26 * #3942: html: table is not aligned to center even if ``:align: center``
27
28 Release 1.6.6 (released Jan 08, 2018)
29 =====================================
30
31 Features added
32 --------------
33
34 * #4181: autodoc: Sort dictionary keys when possible
35 * ``VerbatimHighlightColor`` is a new
36 :ref:`LaTeX 'sphinxsetup' <latexsphinxsetup>` key (refs: #4285)
37 * Easier customizability of LaTeX macros involved in rendering of code-blocks
38 * Show traceback if conf.py raises an exception (refs: #4369)
39 * Add :confval:`smartquotes` to disable smart quotes through ``conf.py``
40 (refs: #3967)
41 * Add :confval:`smartquotes_action` and :confval:`smartquotes_excludes`
42 (refs: #4142, #4357)
43
44 Bugs fixed
45 ----------
46
47 * #4334: sphinx-apidoc: Don't generate references to non-existing files in TOC
48 * #4206: latex: reST label between paragraphs loses paragraph break
49 * #4231: html: Apply fixFirefoxAnchorBug only under Firefox
50 * #4221: napoleon depends on autodoc, but users need to load it manually
51 * #2298: automodule fails to document a class attribute
52 * #4099: C++: properly link class reference to class from inside constructor
53 * #4267: PDF build broken by Unicode U+2116 NUMERO SIGN character
54 * #4249: PDF output: Pygments error highlighting increases line spacing in
55 code blocks
56 * #1238: Support ``:emphasize-lines:`` in PDF output
57 * #4279: Sphinx crashes with pickling error when run with multiple processes and
58 remote image
59 * #1421: Respect the quiet flag in sphinx-quickstart
60 * #4281: Race conditions when creating output directory
61 * #4315: For PDF 'howto' documents, ``latex_toplevel_sectioning='part'``
62 generates ``\chapter`` commands
63 * #4214: Two todolist directives break Sphinx 1.6.5
64 * Fix links to external option docs with intersphinx (refs: #3769)
65 * #4091: Private members not documented without :undoc-members:
66
67 Release 1.6.5 (released Oct 23, 2017)
68 =====================================
69
70 Features added
71 --------------
72
73 * #4107: Make searchtools.js compatible with pre-Sphinx1.5 templates
74 * #4112: Don't override the smart_quotes setting if it was already set
75 * #4125: Display reference texts of original and translated passages on
76 i18n warning message
77 * #4147: Include the exception when logging PO/MO file read/write
78
79 Bugs fixed
80 ----------
81
82 * #4085: Failed PDF build from image in parsed-literal using ``:align:`` option
83 * #4100: Remove debug print from autodoc extension
84 * #3987: Changing theme from ``alabaster`` causes HTML build to fail
85 * #4096: C++, don't crash when using the wrong role type. Thanks to mitya57.
86 * #4070, #4111: crashes when the warning message contains format strings (again)
87 * #4108: Search word highlighting breaks SVG images
88 * #3692: Unable to build HTML if writing .buildinfo failed
89 * #4152: HTML writer crashes if a field list is placed on top of the document
90 * #4063: Sphinx crashes when labeling directive ``.. todolist::``
91 * #4134: [doc] :file:`docutils.conf` is not documented explicitly
92 * #4169: Chinese language doesn't trigger Chinese search automatically
93 * #1020: ext.todo todolist not linking to the page in pdflatex
94 * #3965: New quickstart generates wrong SPHINXBUILD in Makefile
95 * #3739: ``:module:`` option is ignored at content of pyobjects
96 * #4149: Documentation: Help choosing :confval:`latex_engine`
97 * #4090: [doc] :confval:`latex_additional_files` with extra LaTeX macros should
98 not use ``.tex`` extension
99 * Failed to convert reST parser error to warning (refs: #4132)
100
101 Release 1.6.4 (released Sep 26, 2017)
102 =====================================
103
104 Features added
105 --------------
106
107 * #3926: Add ``autodoc_warningiserror`` to suppress the behavior of ``-W``
108 option during importing target modules on autodoc
109
110 Bugs fixed
111 ----------
112
113 * #3924: docname lost after dynamically parsing RST in extension
114 * #3946: Typo in sphinx.sty (this was a bug with no effect in default context)
115 * :pep: and :rfc: does not supports ``default-role`` directive (refs: #3960)
116 * #3960: default_role = 'guilabel' not functioning
117 * Missing ``texinputs_win/Makefile`` to be used in latexpdf builder on windows.
118 * #4026: nature: Fix macOS Safari scrollbar color
119 * #3877: Fix for C++ multiline signatures.
120 * #4006: Fix crash on parallel build
121 * #3969: private instance attributes causes AttributeError
122 * #4041: C++, remove extra name linking in function pointers.
123 * #4038: C, add missing documentation of ``member`` role.
124 * #4044: An empty multicolumn cell causes extra row height in PDF output
125 * #4049: Fix typo in output of sphinx-build -h
126 * #4062: hashlib.sha1() must take bytes, not unicode on Python 3
127 * Avoid indent after index entries in latex (refs: #4066)
128 * #4070: crashes when the warning message contains format strings
129 * #4067: Return non-zero exit status when make subprocess fails
130 * #4055: graphviz: the :align: option does not work for SVG output
131 * #4055: graphviz: the :align: center option does not work for latex output
132 * #4051: ``warn()`` function for HTML theme outputs '``None``' string
133
134 Release 1.6.3 (released Jul 02, 2017)
135 =====================================
136
137 Features added
138 --------------
139
140 * latex: hint that code-block continues on next page (refs: #3764, #3792)
141
142 Bugs fixed
143 ----------
144
145 * #3821: Failed to import sphinx.util.compat with Docutils 0.14rc1
146 * #3829: sphinx-quickstart template is incomplete regarding use of ``alabaster``
147 * #3772: 'str object' has no attribute 'filename'
148 * Emit wrong warnings if citation label includes hyphens (refs: #3565)
149 * #3858: Some warnings are not colored when using --color option
150 * #3775: Remove unwanted whitespace in default template
151 * #3835: sphinx.ext.imgmath fails to convert SVG images if project directory
152 name contains spaces
153 * #3850: Fix color handling in make mode's help command
154 * #3865: use of self.env.warn in Sphinx extension fails
155 * #3824: production lists apply smart quotes transform since Sphinx 1.6.1
156 * latex: fix ``\sphinxbfcode`` swallows initial space of argument
157 * #3878: Quotes in auto-documented class attributes should be straight quotes
158 in PDF output
159 * #3881: LaTeX figure floated to next page sometimes leaves extra vertical
160 whitespace
161 * #3885: duplicated footnotes raises IndexError
162 * #3873: Failure of deprecation warning mechanism of
163 ``sphinx.util.compat.Directive``
164 * #3874: Bogus warnings for "citation not referenced" for cross-file citations
165 * #3860: Don't download images when builders not supported images
166 * #3860: Remote image URIs without filename break builders not supported remote
167 images
168 * #3833: command line messages are translated unintentionally with ``language``
169 setting.
170 * #3840: make checking ``epub_uid`` strict
171 * #3851, #3706: Fix about box drawing characters for PDF output
172 * #3900: autosummary could not find methods
173 * #3902: Emit error if ``latex_documents`` contains non-unicode string in py2
174
175 Release 1.6.2 (released May 28, 2017)
176 =====================================
177
178 Incompatible changes
179 --------------------
180
181 * #3789: Do not require typing module for python>=3.5
182
183 Bugs fixed
184 ----------
185
186 * #3754: HTML builder crashes if HTML theme appends own stylesheets
187 * #3756: epub: Entity 'mdash' not defined
188 * #3758: Sphinx crashed if logs are emitted in conf.py
189 * #3755: incorrectly warns about dedent with literalinclude
190 * #3742: `RTD <https://readthedocs.org/>`_ PDF builds of Sphinx own docs are
191 missing an index entry in the bookmarks and table of contents. This is
192 `rtfd/readthedocs.org#2857
193 <https://github.com/rtfd/readthedocs.org/issues/2857>`_ issue, a workaround
194 is obtained using some extra LaTeX code in Sphinx's own :file:`conf.py`
195 * #3770: Build fails when a "code-block" has the option emphasize-lines and the
196 number indicated is higher than the number of lines
197 * #3774: Incremental HTML building broken when using citations
198 * #3763: got epubcheck validations error if epub_cover is set
199 * #3779: 'ImportError' in sphinx.ext.autodoc due to broken 'sys.meta_path'.
200 Thanks to Tatiana Tereshchenko.
201 * #3796: env.resolve_references() crashes when non-document node given
202 * #3803: Sphinx crashes with invalid PO files
203 * #3791: PDF "continued on next page" for long tables isn't internationalized
204 * #3788: smartquotes emits warnings for unsupported languages
205 * #3807: latex Makefile for ``make latexpdf`` is only for unixen
206 * #3781: double hyphens in option directive are compiled as endashes
207 * #3817: latex builder raises AttributeError
208
209 Release 1.6.1 (released May 16, 2017)
210 =====================================
211
212 Dependencies
213 ------------
214
215 1.6b1
216
217 * (updated) latex output is tested with Ubuntu trusty's texlive packages (Feb.
218 2014) and earlier tex installations may not be fully compliant, particularly
219 regarding Unicode engines xelatex and lualatex
220 * (added) latexmk is required for ``make latexpdf`` on GNU/Linux and Mac OS X
221 (refs: #3082)
222
223 Incompatible changes
224 --------------------
225
226 1.6b1
227
228 * #1061, #2336, #3235: Now generation of autosummary doesn't contain imported
229 members by default. Thanks to Luc Saffre.
230 * LaTeX ``\includegraphics`` command isn't overloaded: only
231 ``\sphinxincludegraphics`` has the custom code to fit image to available width
232 if oversized.
233 * The subclasses of ``sphinx.domains.Index`` should override ``generate()``
234 method. The default implementation raises NotImplementedError
235 * LaTeX positioned long tables horizontally centered, and short ones
236 flushed left (no text flow around table.) The position now defaults to center
237 in both cases, and it will obey Docutils 0.13 ``:align:`` option (refs #3415,
238 #3377)
239 * option directive also allows all punctuations for the option name (refs:
240 #3366)
241 * #3413: if :rst:dir:`literalinclude`'s ``:start-after:`` is used, make
242 ``:lines:`` relative (refs #3412)
243 * ``literalinclude`` directive does not allow the combination of ``:diff:``
244 option and other options (refs: #3416)
245 * LuaLaTeX engine uses ``fontspec`` like XeLaTeX. It is advised ``latex_engine
246 = 'lualatex'`` be used only on up-to-date TeX installs (refs #3070, #3466)
247 * :confval:`!latex_keep_old_macro_names` default value has been changed from
248 ``True`` to ``False``. This means that some LaTeX macros for styling are
249 by default defined only with ``\sphinx..`` prefixed names. (refs: #3429)
250 * Footer "Continued on next page" of LaTeX longtable's now not framed (refs:
251 #3497)
252 * #3529: The arguments of ``BuildEnvironment.__init__`` is changed
253 * #3082: Use latexmk for pdf (and dvi) targets (Unix-like platforms only)
254 * #3558: Emit warnings if footnotes and citations are not referenced. The
255 warnings can be suppressed by ``suppress_warnings``.
256 * latex made available (non documented) colour macros from a file distributed
257 with pdftex engine for Plain TeX. This is removed in order to provide better
258 support for multiple TeX engines. Only interface from ``color`` or
259 ``xcolor`` packages should be used by extensions of Sphinx latex writer.
260 (refs #3550)
261 * ``Builder.env`` is not filled at instantiation
262 * #3594: LaTeX: single raw directive has been considered as block level element
263 * #3639: If ``html_experimental_html5_writer`` is available, epub builder use it
264 by default.
265 * ``Sphinx.add_source_parser()`` raises an error if duplicated
266
267 1.6b2
268
269 * #3345: Replace the custom smartypants code with Docutils' smart_quotes.
270 Thanks to Dmitry Shachnev, and to Günter Milde at Docutils.
271
272 1.6b3
273
274 * LaTeX package ``eqparbox`` is not used and not loaded by Sphinx anymore
275 * LaTeX package ``multirow`` is not used and not loaded by Sphinx anymore
276 * Add line numbers to citation data in std domain
277
278 1.6 final
279
280 * LaTeX package ``threeparttable`` is not used and not loaded by Sphinx
281 anymore (refs #3686, #3532, #3377)
282
283 Features removed
284 ----------------
285
286 * Configuration variables
287
288 - epub3_contributor
289 - epub3_description
290 - epub3_page_progression_direction
291 - html_translator_class
292 - html_use_modindex
293 - latex_font_size
294 - latex_paper_size
295 - latex_preamble
296 - latex_use_modindex
297 - latex_use_parts
298
299 * ``termsep`` node
300 * defindex.html template
301 * LDML format support in ``today``, ``today_fmt`` and ``html_last_updated_fmt``
302 * ``:inline:`` option for the directives of sphinx.ext.graphviz extension
303 * sphinx.ext.pngmath extension
304 * ``sphinx.util.compat.make_admonition()``
305
306 Features added
307 --------------
308
309 1.6b1
310
311 * #3136: Add ``:name:`` option to the directives in ``sphinx.ext.graphviz``
312 * #2336: Add ``imported_members`` option to ``sphinx-autogen`` command to
313 document imported members.
314 * C++, add ``:tparam-line-spec:`` option to templated declarations.
315 When specified, each template parameter will be rendered on a separate line.
316 * #3359: Allow sphinx.js in a user locale dir to override sphinx.js from Sphinx
317 * #3303: Add ``:pyversion:`` option to the doctest directive.
318 * #3378: (latex) support for ``:widths:`` option of table directives
319 (refs: #3379, #3381)
320 * #3402: Allow to suppress "download file not readable" warnings using
321 :confval:`suppress_warnings`.
322 * #3377: latex: Add support for Docutils 0.13 ``:align:`` option for tables
323 (but does not implement text flow around table).
324 * latex: footnotes from inside tables are hyperlinked (except from captions or
325 headers) (refs: #3422)
326 * Emit warning if over dedent has detected on ``literalinclude`` directive
327 (refs: #3416)
328 * Use for LuaLaTeX same default settings as for XeLaTeX (i.e. ``fontspec`` and
329 ``polyglossia``). (refs: #3070, #3466)
330 * Make ``'extraclassoptions'`` key of ``latex_elements`` public (refs #3480)
331 * #3463: Add warning messages for required EPUB3 metadata. Add default value to
332 ``epub_description`` to avoid warning like other settings.
333 * #3476: setuptools: Support multiple builders
334 * latex: merged cells in LaTeX tables allow code-blocks, lists, blockquotes...
335 as do normal cells (refs: #3435)
336 * HTML builder uses experimental HTML5 writer if
337 ``html_experimental_html5_writer`` is ``True`` and Docutils 0.13 or later is
338 installed.
339 * LaTeX macros to customize space before and after tables in PDF output (refs
340 #3504)
341 * #3348: Show decorators in literalinclude and viewcode directives
342 * #3108: Show warning if :start-at: and other literalinclude options does not
343 match to the text
344 * #3609: Allow to suppress "duplicate citation" warnings using
345 ``suppress_warnings``
346 * #2803: Discovery of builders by entry point
347 * #1764, #1676: Allow setting 'rel' and 'title' attributes for stylesheets
348 * #3589: Support remote images on non-HTML builders
349 * #3589: Support images in Data URI on non-HTML builders
350 * #2961: improve :confval:`autodoc_mock_imports`. Now the config value only
351 requires to declare the top-level modules that should be mocked.
352 Thanks to Robin Jarry.
353 * #3449: On py3, autodoc use inspect.signature for more accurate signature
354 calculation. Thanks to Nathaniel J. Smith.
355 * #3641: Epub theme supports HTML structures that are generated by HTML5 writer.
356 * #3644: autodoc uses inspect instead of checking types. Thanks to
357 Jeroen Demeyer.
358 * Add a new extension; ``sphinx.ext.imgconverter``. It converts images in the
359 document to appropriate format for builders
360 * latex: Use templates to render tables (refs #3389, 2a37b0e)
361
362 1.6b2
363
364 * ``LATEXMKOPTS`` variable for the Makefile in ``$BUILDDIR/latex`` to pass
365 options to ``latexmk`` when executing ``make latexpdf`` (refs #3695, #3720)
366 * Add a new event ``env-check-consistency`` to check consistency to extensions
367 * Add ``Domain.check_consistency()`` to check consistency
368
369 Bugs fixed
370 ----------
371
372 1.6b1
373
374 * ``literalinclude`` directive expands tabs after dedent-ing (refs: #3416)
375 * #1574: Paragraphs in table cell doesn't work in Latex output
376 * #3288: Table with merged headers not wrapping text
377 * #3491: Inconsistent vertical space around table and longtable in PDF
378 * #3506: Depart functions for all admonitions in HTML writer now properly pass
379 ``node`` to ``depart_admonition``.
380 * #2693: Sphinx latex style file wrongly inhibits colours for section headings
381 for latex+dvi(ps,pdf,pdfmx)
382 * C++, properly look up ``any`` references.
383 * #3624: sphinx.ext.intersphinx couldn't load inventories compressed with gzip
384 * #3551: PDF information dictionary is lacking author and title data
385 * #3351: intersphinx does not refers context like ``py:module``, ``py:class``
386 and so on.
387 * Fail to load template file if the parent template is archived
388
389 1.6b2
390
391 * #3661: sphinx-build crashes on parallel build
392 * #3669: gettext builder fails with "ValueError: substring not found"
393 * #3660: Sphinx always depends on sphinxcontrib-websupport and its dependencies
394 * #3472: smart quotes getting wrong in latex (at least with list of strings via
395 autoattribute) (refs: #3345, #3666)
396
397 1.6b3
398
399 * #3588: No compact (p tag) html output in the i18n document build even when
400 :confval:`html_compact_lists` is ``True``.
401 * The ``make latexpdf`` from 1.6b1 (for GNU/Linux and Mac OS, using
402 ``latexmk``) aborted earlier in case of LaTeX errors than was the case with
403 1.5 series, due to hard-coded usage of ``--halt-on-error`` option (refs #3695)
404 * #3683: sphinx.websupport module is not provided by default
405 * #3683: Failed to build document if builder.css_file.insert() is called
406 * #3714: viewcode extension not taking ``highlight_code='none'`` in account
407 * #3698: Moving :doc: to std domain broke backwards compatibility
408 * #3633: misdetect unreferenced citations
409
410 1.6 final
411
412 * LaTeX tables do not allow multiple paragraphs in a header cell
413 * LATEXOPTS is not passed over correctly to pdflatex since 1.6b3
414 * #3532: Figure or literal block captions in cells of short tables cause havoc
415 in PDF output
416 * Fix: in PDF captions of tables are rendered differently whether table is of
417 longtable class or not (refs #3686)
418 * #3725: Todo looks different from note in LaTeX output
419 * #3479: stub-columns have no effect in LaTeX output
420 * #3738: Nonsensical code in theming.py
421 * #3746: PDF builds fail with latexmk 4.48 or earlier due to undefined
422 options ``-pdfxe`` and ``-pdflua``
423
424 Deprecated
425 ----------
426
427 1.6b1
428
429 * ``sphinx.util.compat.Directive`` class is now deprecated. Please use instead
430 ``docutils.parsers.rst.Directive``
431 * ``sphinx.util.compat.docutils_version`` is now deprecated
432 * #2367: ``Sphinx.warn()``, ``Sphinx.info()`` and other logging methods are now
433 deprecated. Please use ``sphinx.util.logging`` (:ref:`logging-api`) instead.
434 * #3318: ``notice`` is now deprecated as LaTeX environment name and will be
435 removed at Sphinx 1.7. Extension authors please use ``sphinxadmonition``
436 instead (as Sphinx does since 1.5.)
437 * ``Sphinx.status_iterator()`` and ``Sphinx.old_status_iterator()`` is now
438 deprecated. Please use ``sphinx.util:status_iterator()`` instead.
439 * ``Sphinx._directive_helper()`` is deprecated. Please use
440 ``sphinx.util.docutils.directive_helper()`` instead.
441 * ``BuildEnvironment.set_warnfunc()`` is now deprecated
442 * Following methods of ``BuildEnvironment`` is now deprecated.
443
444 - ``BuildEnvironment.note_toctree()``
445 - ``BuildEnvironment.get_toc_for()``
446 - ``BuildEnvironment.get_toctree_for()``
447 - ``BuildEnvironment.create_index()``
448
449 Please use ``sphinx.environment.adapters`` modules instead.
450 * latex package ``footnote`` is not loaded anymore by its bundled replacement
451 ``footnotehyper-sphinx``. The redefined macros keep the same names as in the
452 original package.
453 * #3429: deprecate config setting :confval:`!latex_keep_old_macro_names`. It will
454 be removed at 1.7, and already its default value has changed from ``True`` to
455 ``False``.
456 * #3221: epub2 builder is deprecated
457 * #3254: ``sphinx.websupport`` is now separated into independent package;
458 ``sphinxcontrib-websupport``. ``sphinx.websupport`` will be removed in
459 Sphinx 2.0.
460 * #3628: ``sphinx_themes`` entry_point is deprecated. Please use
461 ``sphinx.html_themes`` instead.
462
463 1.6b2
464
465 * #3662: ``builder.css_files`` is deprecated. Please use ``add_stylesheet()``
466 API instead.
467
468 1.6 final
469
470 * LaTeX ``\sphinxstylethead`` is deprecated at 1.6 and will be removed at 1.7.
471 Please move customization into new macro ``\sphinxstyletheadfamily``.
472
473 Testing
474 -------
475
476 1.6 final
477
478 * #3458: Add ``sphinx.testing`` (experimental)
479
480 Release 1.6 (unreleased)
481 ========================
482
483 * not released (because of package script error)