Debian Codegraph @

doc/changes/1.8.rst

raw
1 ==========
2 Sphinx 1.8
3 ==========
4
5
6 Release 1.8.6 (released Nov 18, 2021)
7 =====================================
8
9 Dependencies
10 ------------
11
12 * #9807: Restrict Docutils to 0.17.x or older
13
14 Release 1.8.5 (released Mar 10, 2019)
15 =====================================
16
17 Bugs fixed
18 ----------
19
20 * LaTeX: Remove extraneous space after author names on PDF title page (refs:
21 #6004)
22 * #6026: LaTeX: A cross reference to definition list does not work
23 * #6046: LaTeX: ``TypeError`` is raised when invalid latex_elements given
24 * #6067: LaTeX: images having a target are concatenated to next line
25 * #6067: LaTeX: images having a target are not aligned even if specified
26 * #6149: LaTeX: ``:index:`` role in titles causes ``Use of \@icentercr doesn't
27 match its definition`` error on latexpdf build
28 * #6019: imgconverter: Including multipage PDF fails
29 * #6047: autodoc: ``autofunction`` emits a warning for method objects
30 * #6028: graphviz: Ensure the graphviz filenames are reproducible
31 * #6068: doctest: ``skipif`` option may remove the code block from documentation
32 * #6136: ``:name:`` option for ``math`` directive causes a crash
33 * #6139: intersphinx: ValueError on failure reporting
34 * #6135: changes: Fix UnboundLocalError when any module found
35 * #3859: manpage: code-block captions are not displayed correctly
36
37 Release 1.8.4 (released Feb 03, 2019)
38 =====================================
39
40 Bugs fixed
41 ----------
42
43 * #3707: latex: no bold checkmark (✔) available.
44 * #5605: with the documentation language set to Chinese, English words could not
45 be searched.
46 * #5889: LaTeX: user ``numfig_format`` is stripped of spaces and may cause
47 build failure
48 * C++, fix hyperlinks for declarations involving east cv-qualifiers.
49 * #5755: C++, fix duplicate declaration error on function templates with
50 constraints in the return type.
51 * C++, parse unary right fold expressions and binary fold expressions.
52 * pycode could not handle egg files on windows
53 * #5928: KeyError: 'DOCUTILSCONFIG' when running build
54 * #5936: LaTeX: PDF build broken by inclusion of image taller than page height
55 in an admonition
56 * #5231: "make html" does not read and build "po" files in "locale" dir
57 * #5954: ``:scale:`` image option may break PDF build if image in an admonition
58 * #5966: mathjax has not been loaded on incremental build
59 * #5960: LaTeX: modified PDF layout since September 2018 TeXLive update of
60 :file:`parskip.sty`
61 * #5948: LaTeX: duplicated labels are generated for sections
62 * #5958: versionadded directive causes crash with Python 3.5.0
63 * #5995: autodoc: autodoc_mock_imports conflict with metaclass on Python 3.7
64 * #5871: texinfo: a section title ``.`` is not allowed
65
66 Release 1.8.3 (released Dec 26, 2018)
67 =====================================
68
69 Features added
70 --------------
71
72 * LaTeX: it is possible to insert custom material to appear on back of title
73 page, see discussion of ``'maketitle'`` key of :confval:`latex_elements`
74 (``'manual'`` docclass only)
75
76 Bugs fixed
77 ----------
78
79 * #5725: mathjax: Use CDN URL for "latest" version by default
80 * #5460: html search does not work with some 3rd party themes
81 * #5520: LaTeX, caption package incompatibility since Sphinx 1.6
82 * #5614: autodoc: incremental build is broken when builtin modules are imported
83 * #5627: qthelp: index.html missing in QtHelp
84 * #5659: linkcheck: crashes for a hyperlink containing multibyte character
85 * #5754: DOC: Fix some mistakes in :doc:`/latex`
86 * #5810: LaTeX: sphinxVerbatim requires explicit "hllines" set-up since 1.6.6
87 (refs: #1238)
88 * #5636: C++, fix parsing of floating point literals.
89 * #5496 (again): C++, fix assertion in partial builds with duplicates.
90 * #5724: quickstart: sphinx-quickstart fails when $LC_ALL is empty
91 * #1956: Default conf.py is not PEP8-compliant
92 * #5849: LaTeX: document class ``\maketitle`` is overwritten with no
93 possibility to use original meaning in place of Sphinx custom one
94 * #5834: apidoc: wrong help for ``--tocfile``
95 * #5800: todo: crashed if todo is defined in TextElement
96 * #5846: htmlhelp: convert hex escaping to decimal escaping in .hhc/.hhk files
97 * htmlhelp: broken .hhk file generated when title contains a double quote
98
99 Release 1.8.2 (released Nov 11, 2018)
100 =====================================
101
102 Incompatible changes
103 --------------------
104
105 * #5497: Do not include MathJax.js and jsmath.js unless it is really needed
106
107 Features added
108 --------------
109
110 * #5471: Show appropriate deprecation warnings
111
112 Bugs fixed
113 ----------
114
115 * #5490: latex: enumerated list causes a crash with recommonmark
116 * #5492: sphinx-build fails to build docs w/ Python < 3.5.2
117 * #3704: latex: wrong ``\label`` positioning for figures with a legend
118 * #5496: C++, fix assertion when a symbol is declared more than twice.
119 * #5493: gettext: crashed with broken template
120 * #5495: csv-table directive with file option in included file is broken (refs:
121 #4821)
122 * #5498: autodoc: unable to find type hints for a ``functools.partial``
123 * #5480: autodoc: unable to find type hints for unresolvable Forward references
124 * #5419: incompatible math_block node has been generated
125 * #5548: Fix ensuredir() in case of pre-existing file
126 * #5549: graphviz Correctly deal with non-existing static dir
127 * #3002: i18n: multiple footnote_references referring same footnote cause
128 duplicated node_ids
129 * #5563: latex: footnote_references generated by extension causes a LaTeX
130 builder crash
131 * #5561: make all-pdf fails with old xindy version
132 * #5557: quickstart: --no-batchfile isn't honored
133 * #3080: texinfo: multiline rubrics are broken
134 * #3080: texinfo: multiline citations are broken
135
136 Release 1.8.1 (released Sep 22, 2018)
137 =====================================
138
139 Incompatible changes
140 --------------------
141
142 * LaTeX ``\pagestyle`` commands have been moved to the LaTeX template. No
143 changes in PDF, except possibly if ``\sphinxtableofcontents``, which
144 contained them, had been customized in :file:`conf.py`. (refs: #5455)
145
146 Bugs fixed
147 ----------
148
149 * #5418: Incorrect default path for sphinx-build -d/doctrees files
150 * #5421: autodoc emits deprecation warning for :confval:`!autodoc_default_flags`
151 * #5422: lambda object causes PicklingError on storing environment
152 * #5417: Sphinx fails to build with syntax error in Python 2.7.5
153 * #4911: add latexpdf to make.bat for non make-mode
154 * #5436: Autodoc does not work with enum subclasses with properties/methods
155 * #5437: autodoc: crashed on modules importing eggs
156 * #5433: latex: ImportError: cannot import name 'DEFAULT_SETTINGS'
157 * #5431: autodoc: ``autofunction`` emits a warning for callable objects
158 * #5457: Fix TypeError in error message when override is prohibited
159 * #5453: PDF builds of 'howto' documents have no page numbers
160 * #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
161 * #5454: latex: Index has disappeared from PDF for Japanese documents
162 * #5432: py domain: ``:type:`` field can't process ``:term:`` references
163 * #5426: py domain: TypeError has been raised for class attribute
164
165 Release 1.8.0 (released Sep 13, 2018)
166 =====================================
167
168 Dependencies
169 ------------
170
171 1.8.0b1
172
173 * LaTeX: :confval:`latex_use_xindy`, if ``True`` (default for
174 ``xelatex/lualatex``), instructs ``make latexpdf`` to use :program:`xindy`
175 for general index. Make sure your LaTeX distribution includes it.
176 (refs: #5134)
177 * LaTeX: ``latexmk`` is required for ``make latexpdf`` on Windows
178
179 Incompatible changes
180 --------------------
181
182 1.8.0b2
183
184 * #5282: html theme: refer ``pygments_style`` settings of HTML themes
185 preferentially
186 * The URL of download files are changed
187 * #5127: quickstart: ``Makefile`` and ``make.bat`` are not overwritten if exists
188
189 1.8.0b1
190
191 * #5156: the :py:mod:`sphinx.ext.graphviz` extension runs ``dot`` in the
192 directory of the document being built instead of in the root directory of
193 the documentation.
194 * #4460: extensions which stores any data to environment should return the
195 version of its env data structure as metadata. In detail, please see
196 :ref:`ext-metadata`.
197 * Sphinx expects source parser modules to have supported file formats as
198 ``Parser.supported`` attribute
199 * The default value of :confval:`epub_author` and :confval:`epub_publisher` are
200 changed from ``'unknown'`` to the value of :confval:`author`. This is same as
201 a ``conf.py`` file sphinx-build generates.
202 * The ``gettext_compact`` attribute is removed from ``document.settings``
203 object. Please use ``config.gettext_compact`` instead.
204 * The processing order on reading phase is changed. smart_quotes, sphinx
205 domains, :event:`doctree-read` event and versioning doctrees are invoked
206 earlier than so far. For more details, please read a description of
207 :py:meth:`.Sphinx.add_transform()`
208 * #4827: All ``substitution_definition`` nodes are removed from doctree on
209 reading phase
210 * ``docutils.conf`` in ``$HOME`` or ``/etc`` directories are ignored. Only
211 ``docutils.conf`` from confdir is obeyed.
212 * #789: ``:samp:`` role supports to escape curly braces with backslash
213 * #4811: The files under :confval:`html_static_path` are excluded from source
214 files.
215 * latex: Use ``\sphinxcite`` for citation references instead ``\hyperref``
216 * The config value :confval:`!viewcode_import` is renamed to
217 :confval:`viewcode_follow_imported_members` (refs: #4035)
218 * #1857: latex: :confval:`latex_show_pagerefs` does not add pagerefs for
219 citations
220 * #4648: latex: Now "rubric" elements are rendered as unnumbered section title
221 * #4983: html: The anchor for productionlist tokens has been changed
222 * Modifying a template variable ``script_files`` in templates is allowed now.
223 Please use ``app.add_js_file()`` instead.
224 * #5072: Save environment object also with only new documents
225 * #5035: qthelp builder allows dashes in :confval:`qthelp_namespace`
226 * LaTeX: with lualatex or xelatex use by default :program:`xindy` as
227 UTF-8 able replacement of :program:`makeindex` (refs: #5134). After
228 upgrading Sphinx, please clean latex build repertory of existing project
229 before new build.
230 * #5163: html: hlist items are now aligned to top
231 * ``highlightlang`` directive is processed on resolving phase
232 * #4000: LaTeX: template changed. Following elements moved to it:
233
234 - ``\begin{document}``
235 - ``shorthandoff`` variable
236 - ``maketitle`` variable
237 - ``tableofcontents`` variable
238
239 Deprecated
240 ----------
241
242 1.8.0b2
243
244 * ``sphinx.io.SphinxI18nReader.set_lineno_for_reporter()`` is deprecated
245 * ``sphinx.io.SphinxI18nReader.line`` is deprecated
246 * ``sphinx.util.i18n.find_catalog_source_file()`` has changed; the
247 *gettext_compact* argument has been deprecated
248 * #5403: ``sphinx.util.images.guess_mimetype()`` has changed; the *content*
249 argument has been deprecated
250
251 1.8.0b1
252
253 * :confval:`!source_parsers` is deprecated
254 * :confval:`!autodoc_default_flags` is deprecated
255 * quickstart: ``--epub`` option becomes default, so it is deprecated
256 * Drop function based directive support. For now, Sphinx only supports class
257 based directives (see :class:`~docutils.parsers.rst.Directive`)
258 * ``sphinx.util.docutils.directive_helper()`` is deprecated
259 * ``sphinx.cmdline`` is deprecated
260 * ``sphinx.make_mode`` is deprecated
261 * ``sphinx.locale.l_()`` is deprecated
262 * #2157: helper function ``warn()`` for HTML themes is deprecated
263 * ``app.override_domain()`` is deprecated
264 * ``app.add_stylesheet()`` is deprecated
265 * ``app.add_javascript()`` is deprecated
266 * ``app.import_object()`` is deprecated
267 * ``app.add_source_parser()`` has changed; the *suffix* argument has been
268 deprecated
269 * ``sphinx.versioning.prepare()`` is deprecated
270 * ``Config.__init__()`` has changed; the *dirname*, *filename* and *tags*
271 argument has been deprecated
272 * ``Config.check_types()`` is deprecated
273 * ``Config.check_unicode()`` is deprecated
274 * ``sphinx.application.CONFIG_FILENAME`` is deprecated
275 * ``highlightlang`` directive is deprecated
276 * ``BuildEnvironment.load()`` is deprecated
277 * ``BuildEnvironment.loads()`` is deprecated
278 * ``BuildEnvironment.frompickle()`` is deprecated
279 * ``env.read_doc()`` is deprecated
280 * ``env.update()`` is deprecated
281 * ``env._read_serial()`` is deprecated
282 * ``env._read_parallel()`` is deprecated
283 * ``env.write_doctree()`` is deprecated
284 * ``env._nitpick_ignore`` is deprecated
285 * ``env.versionchanges`` is deprecated
286 * ``env.dump()`` is deprecated
287 * ``env.dumps()`` is deprecated
288 * ``env.topickle()`` is deprecated
289 * ``env.note_versionchange()`` is deprecated
290 * ``sphinx.writers.latex.Table.caption_footnotetexts`` is deprecated
291 * ``sphinx.writers.latex.Table.header_footnotetexts`` is deprecated
292 * ``sphinx.writers.latex.LaTeXTranslator.footnotestack`` is deprecated
293 * ``sphinx.writers.latex.LaTeXTranslator.in_container_literal_block`` is
294 deprecated
295 * ``sphinx.writers.latex.LaTeXTranslator.next_section_ids`` is deprecated
296 * ``sphinx.writers.latex.LaTeXTranslator.next_hyperlink_ids`` is deprecated
297 * ``sphinx.writers.latex.LaTeXTranslator.restrict_footnote()`` is deprecated
298 * ``sphinx.writers.latex.LaTeXTranslator.unrestrict_footnote()`` is deprecated
299 * ``sphinx.writers.latex.LaTeXTranslator.push_hyperlink_ids()`` is deprecated
300 * ``sphinx.writers.latex.LaTeXTranslator.pop_hyperlink_ids()`` is deprecated
301 * ``sphinx.writers.latex.LaTeXTranslator.check_latex_elements()`` is deprecated
302 * ``sphinx.writers.latex.LaTeXTranslator.bibitems`` is deprecated
303 * ``sphinx.writers.latex.LaTeXTranslator.hlsettingstack`` is deprecated
304 * ``sphinx.writers.latex.ExtBabel.get_shorthandoff()`` is deprecated
305 * ``sphinx.writers.html.HTMLTranslator.highlightlang`` is deprecated
306 * ``sphinx.writers.html.HTMLTranslator.highlightlang_base`` is deprecated
307 * ``sphinx.writers.html.HTMLTranslator.highlightlangopts`` is deprecated
308 * ``sphinx.writers.html.HTMLTranslator.highlightlinenothreshold`` is deprecated
309 * ``sphinx.writers.html5.HTMLTranslator.highlightlang`` is deprecated
310 * ``sphinx.writers.html5.HTMLTranslator.highlightlang_base`` is deprecated
311 * ``sphinx.writers.html5.HTMLTranslator.highlightlangopts`` is deprecated
312 * ``sphinx.writers.html5.HTMLTranslator.highlightlinenothreshold`` is deprecated
313 * ``sphinx.ext.mathbase`` extension is deprecated
314 * ``sphinx.ext.mathbase.math`` node is deprecated
315 * ``sphinx.ext.mathbase.displaymath`` node is deprecated
316 * ``sphinx.ext.mathbase.eqref`` node is deprecated
317 * ``sphinx.ext.mathbase.is_in_section_title()`` is deprecated
318 * ``sphinx.ext.mathbase.MathDomain`` is deprecated
319 * ``sphinx.ext.mathbase.MathDirective`` is deprecated
320 * ``sphinx.ext.mathbase.math_role`` is deprecated
321 * ``sphinx.ext.mathbase.setup_math()`` is deprecated
322 * ``sphinx.directives.other.VersionChanges`` is deprecated
323 * ``sphinx.highlighting.PygmentsBridge.unhighlight()`` is deprecated
324 * ``sphinx.ext.mathbase.get_node_equation_number()`` is deprecated
325 * ``sphinx.ext.mathbase.wrap_displaymath()`` is deprecated
326 * The ``trim_doctest_flags`` argument of ``sphinx.highlighting.PygmentsBridge``
327 is deprecated
328
329 For more details, see :ref:`deprecation APIs list <dev-deprecated-apis>`.
330
331 Features added
332 --------------
333
334 1.8.0b2
335
336 * #5388: Ensure frozen object descriptions are reproducible
337 * #5362: apidoc: Add ``--tocfile`` option to change the filename of ToC
338
339 1.8.0b1
340
341 * Add :event:`config-inited` event
342 * Add ``sphinx.config.Any`` to represent the config value accepts any type of
343 value
344 * :confval:`source_suffix` allows a mapping fileext to file types
345 * Add :confval:`author` as a configuration value
346 * #2852: imgconverter: Support to convert GIF to PNG
347 * ``sphinx-build`` command supports i18n console output
348 * Add ``app.add_message_catalog()`` and ``sphinx.locale.get_translations()`` to
349 support translation for 3rd party extensions
350 * helper function ``warning()`` for HTML themes is added
351 * Add ``Domain.enumerable_nodes`` to manage own enumerable nodes for domains
352 (experimental)
353 * Add a new keyword argument ``override`` to Application APIs
354 * LaTeX: new key ``'fvset'`` for :confval:`latex_elements`. For
355 XeLaTeX/LuaLaTeX its default sets ``fanvyvrb`` to use normal, not small,
356 fontsize in code-blocks (refs: #4793)
357 * Add :confval:`html_css_files` and :confval:`epub_css_files` for adding CSS
358 files from configuration
359 * Add :confval:`html_js_files` for adding JS files from configuration
360 * #4834: Ensure set object descriptions are reproducible.
361 * #4828: Allow to override :confval:`numfig_format` partially. Full definition
362 is not needed.
363 * Improve warning messages during including (refs: #4818)
364 * LaTeX: separate customizability of :rst:role:`guilabel` and
365 :rst:role:`menuselection` (refs: #4830)
366 * Add ``Config.read()`` classmethod to create a new config object from
367 configuration file
368 * #4866: Wrap graphviz diagrams in ``<div>`` tag
369 * viewcode: Add :event:`viewcode-find-source` and
370 :event:`viewcode-follow-imported` to load source code without loading
371 * #4785: napoleon: Add strings to translation file for localisation
372 * #4927: Display a warning when invalid values are passed to linenothreshold
373 option of highlight directive
374 * C++:
375
376 - Add a ``cpp:texpr`` role as a sibling to ``cpp:expr``.
377 - Add support for unions.
378 - #3593, #2683: add support for anonymous entities using names staring with
379 ``@``.
380 - #5147: add support for (most) character literals.
381 - Cross-referencing entities inside primary templates is supported,
382 and now properly documented.
383 - #1552: add new cross-referencing format for ``cpp:any`` and ``cpp:func``
384 roles, for referencing specific function overloads.
385
386 * #3606: MathJax should be loaded with async attribute
387 * html: Output ``canonical_url`` metadata if :confval:`html_baseurl` set (refs:
388 #4193)
389 * #5029: autosummary: expose ``inherited_members`` to template
390 * #3784: mathjax: Add :confval:`mathjax_options` to give options to script tag
391 for mathjax
392 * #726, #969: mathjax: Add :confval:`mathjax_config` to give in-line
393 configurations for mathjax
394 * #4362: latex: Don't overwrite .tex file if document not changed
395 * #1431: latex: Add alphanumeric enumerated list support
396 * Add :confval:`latex_use_xindy` for UTF-8 savvy indexing, defaults to ``True``
397 if :confval:`latex_engine` is ``'xelatex'`` or ``'lualatex'``. (refs: #5134,
398 #5192, #5212)
399 * #4976: ``SphinxLoggerAdapter.info()`` now supports ``location`` parameter
400 * #5122: setuptools: support nitpicky option
401 * #2820: autoclass directive supports nested class
402 * Add ``app.add_html_math_renderer()`` to register a math renderer for HTML
403 * Apply :confval:`trim_doctest_flags` to all builders (cf. text, manpages)
404 * #5140: linkcheck: Add better Accept header to HTTP client
405 * #4614: sphinx-build: Add ``--keep-going`` option to show all warnings
406 * Add :rst:role:`math:numref` role to refer equations (Same as :rst:role:`eq`)
407 * quickstart: epub builder is enabled by default
408 * #5246: Add :confval:`singlehtml_sidebars` to configure sidebars for singlehtml
409 builder
410 * #5273: doctest: Skip doctest conditionally
411 * #5306: autodoc: emit a warning for invalid typehints
412 * #4075, #5215: autodoc: Add :confval:`autodoc_default_options` which accepts
413 option values as dict
414
415 Bugs fixed
416 ----------
417
418 1.8.0b2
419
420 * html: search box overrides to other elements if scrolled
421 * i18n: warnings for translation catalogs have wrong line numbers (refs: #5321)
422 * #5325: latex: cross references has been broken by multiply labeled objects
423 * C++, fixes for symbol addition and lookup. Lookup should no longer break
424 in partial builds. See also #5337.
425 * #5348: download reference to remote file is not displayed
426 * #5282: html theme: ``pygments_style`` of theme was overridden by ``conf.py``
427 by default
428 * #4379: toctree shows confusing warning when document is excluded
429 * #2401: autodoc: ``:members:`` causes ``:special-members:`` not to be shown
430 * autodoc: ImportError is replaced by AttributeError for deeper module
431 * #2720, #4034: Incorrect links with ``:download:``, duplicate names, and
432 parallel builds
433 * #5290: autodoc: failed to analyze source code in egg package
434 * #5399: Sphinx crashes if unknown po file exists
435
436 1.8.0b1
437
438 * i18n: message catalogs were reset on each initialization
439 * #4850: latex: footnote inside footnote was not rendered
440 * #4945: i18n: fix lang_COUNTRY not fallback correctly for IndexBuilder. Thanks
441 to Shengjing Zhu.
442 * #4983: productionlist directive generates invalid IDs for the tokens
443 * #5132: lualatex: PDF build fails if indexed word starts with Unicode character
444 * #5133: latex: index headings "Symbols" and "Numbers" not internationalized
445 * #5114: sphinx-build: Handle errors on scanning documents
446 * epub: spine has been broken when "self" is listed on toctree (refs: #4611)
447 * #344: autosummary does not understand docstring of module level attributes
448 * #5191: C++, prevent nested declarations in functions to avoid lookup problems.
449 * #5126: C++, add missing isPack method for certain template parameter types.
450 * #5187: C++, parse attributes on declarators as well.
451 * C++, parse delete expressions and basic new expressions as well.
452 * #5002: graphviz: SVGs do not adapt to the column width
453
454 Features removed
455 ----------------
456
457 1.8.0b1
458
459 * ``sphinx.ext.pngmath`` extension
460
461 Documentation
462 -------------
463
464 1.8.0b1
465
466 * #5083: Fix wrong make.bat option for internationalization.
467 * #5115: napoleon: add admonitions added by #4613 to the docs.