Sphinx 1.8¶
Release 1.8.6 (released Nov 18, 2021)¶
Dependencies¶
#9807: Restrict Docutils to 0.17.x or older
Release 1.8.5 (released Mar 10, 2019)¶
Bugs fixed¶
LaTeX: Remove extraneous space after author names on PDF title page (refs: #6004)
#6026: LaTeX: A cross reference to definition list does not work
#6046: LaTeX:
TypeErroris raised when invalid latex_elements given#6067: LaTeX: images having a target are concatenated to next line
#6067: LaTeX: images having a target are not aligned even if specified
#6149: LaTeX:
:index:role in titles causesUse of \@icentercr doesn't match its definitionerror on latexpdf build#6019: imgconverter: Including multipage PDF fails
#6047: autodoc:
autofunctionemits a warning for method objects#6028: graphviz: Ensure the graphviz filenames are reproducible
#6068: doctest:
skipifoption may remove the code block from documentation#6136:
:name:option formathdirective causes a crash#6139: intersphinx: ValueError on failure reporting
#6135: changes: Fix UnboundLocalError when any module found
#3859: manpage: code-block captions are not displayed correctly
Release 1.8.4 (released Feb 03, 2019)¶
Bugs fixed¶
#3707: latex: no bold checkmark (✔) available.
#5605: with the documentation language set to Chinese, English words could not be searched.
#5889: LaTeX: user
numfig_formatis stripped of spaces and may cause build failureC++, fix hyperlinks for declarations involving east cv-qualifiers.
#5755: C++, fix duplicate declaration error on function templates with constraints in the return type.
C++, parse unary right fold expressions and binary fold expressions.
pycode could not handle egg files on windows
#5928: KeyError: 'DOCUTILSCONFIG' when running build
#5936: LaTeX: PDF build broken by inclusion of image taller than page height in an admonition
#5231: "make html" does not read and build "po" files in "locale" dir
#5954:
:scale:image option may break PDF build if image in an admonition#5966: mathjax has not been loaded on incremental build
#5960: LaTeX: modified PDF layout since September 2018 TeXLive update of
parskip.sty#5948: LaTeX: duplicated labels are generated for sections
#5958: versionadded directive causes crash with Python 3.5.0
#5995: autodoc: autodoc_mock_imports conflict with metaclass on Python 3.7
#5871: texinfo: a section title
.is not allowed
Release 1.8.3 (released Dec 26, 2018)¶
Features added¶
LaTeX: it is possible to insert custom material to appear on back of title page, see discussion of
'maketitle'key oflatex_elements('manual'docclass only)
Bugs fixed¶
#5725: mathjax: Use CDN URL for "latest" version by default
#5460: html search does not work with some 3rd party themes
#5520: LaTeX, caption package incompatibility since Sphinx 1.6
#5614: autodoc: incremental build is broken when builtin modules are imported
#5627: qthelp: index.html missing in QtHelp
#5659: linkcheck: crashes for a hyperlink containing multibyte character
#5754: DOC: Fix some mistakes in LaTeX customization
#5810: LaTeX: sphinxVerbatim requires explicit "hllines" set-up since 1.6.6 (refs: #1238)
#5636: C++, fix parsing of floating point literals.
#5496 (again): C++, fix assertion in partial builds with duplicates.
#5724: quickstart: sphinx-quickstart fails when $LC_ALL is empty
#1956: Default conf.py is not PEP8-compliant
#5849: LaTeX: document class
\maketitleis overwritten with no possibility to use original meaning in place of Sphinx custom one#5834: apidoc: wrong help for
--tocfile#5800: todo: crashed if todo is defined in TextElement
#5846: htmlhelp: convert hex escaping to decimal escaping in .hhc/.hhk files
htmlhelp: broken .hhk file generated when title contains a double quote
Release 1.8.2 (released Nov 11, 2018)¶
Incompatible changes¶
#5497: Do not include MathJax.js and jsmath.js unless it is really needed
Features added¶
#5471: Show appropriate deprecation warnings
Bugs fixed¶
#5490: latex: enumerated list causes a crash with recommonmark
#5492: sphinx-build fails to build docs w/ Python < 3.5.2
#3704: latex: wrong
\labelpositioning for figures with a legend#5496: C++, fix assertion when a symbol is declared more than twice.
#5493: gettext: crashed with broken template
#5495: csv-table directive with file option in included file is broken (refs: #4821)
#5498: autodoc: unable to find type hints for a
functools.partial#5480: autodoc: unable to find type hints for unresolvable Forward references
#5419: incompatible math_block node has been generated
#5548: Fix ensuredir() in case of pre-existing file
#5549: graphviz Correctly deal with non-existing static dir
#3002: i18n: multiple footnote_references referring same footnote cause duplicated node_ids
#5563: latex: footnote_references generated by extension causes a LaTeX builder crash
#5561: make all-pdf fails with old xindy version
#5557: quickstart: --no-batchfile isn't honored
#3080: texinfo: multiline rubrics are broken
#3080: texinfo: multiline citations are broken
Release 1.8.1 (released Sep 22, 2018)¶
Incompatible changes¶
LaTeX
\pagestylecommands have been moved to the LaTeX template. No changes in PDF, except possibly if\sphinxtableofcontents, which contained them, had been customized inconf.py. (refs: #5455)
Bugs fixed¶
#5418: Incorrect default path for sphinx-build -d/doctrees files
#5421: autodoc emits deprecation warning for
autodoc_default_flags#5422: lambda object causes PicklingError on storing environment
#5417: Sphinx fails to build with syntax error in Python 2.7.5
#4911: add latexpdf to make.bat for non make-mode
#5436: Autodoc does not work with enum subclasses with properties/methods
#5437: autodoc: crashed on modules importing eggs
#5433: latex: ImportError: cannot import name 'DEFAULT_SETTINGS'
#5431: autodoc:
autofunctionemits a warning for callable objects#5457: Fix TypeError in error message when override is prohibited
#5453: PDF builds of 'howto' documents have no page numbers
#5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
#5454: latex: Index has disappeared from PDF for Japanese documents
#5432: py domain:
:type:field can't process:term:references#5426: py domain: TypeError has been raised for class attribute
Release 1.8.0 (released Sep 13, 2018)¶
Dependencies¶
1.8.0b1
LaTeX:
latex_use_xindy, ifTrue(default forxelatex/lualatex), instructsmake latexpdfto use xindy for general index. Make sure your LaTeX distribution includes it. (refs: #5134)LaTeX:
latexmkis required formake latexpdfon Windows
Incompatible changes¶
1.8.0b2
#5282: html theme: refer
pygments_stylesettings of HTML themes preferentiallyThe URL of download files are changed
#5127: quickstart:
Makefileandmake.batare not overwritten if exists
1.8.0b1
#5156: the
sphinx.ext.graphvizextension runsdotin the directory of the document being built instead of in the root directory of the documentation.#4460: extensions which stores any data to environment should return the version of its env data structure as metadata. In detail, please see Extension metadata.
Sphinx expects source parser modules to have supported file formats as
Parser.supportedattributeThe default value of
epub_authorandepub_publisherare changed from'unknown'to the value ofauthor. This is same as aconf.pyfile sphinx-build generates.The
gettext_compactattribute is removed fromdocument.settingsobject. Please useconfig.gettext_compactinstead.The processing order on reading phase is changed. smart_quotes, sphinx domains,
doctree-readevent and versioning doctrees are invoked earlier than so far. For more details, please read a description ofSphinx.add_transform()#4827: All
substitution_definitionnodes are removed from doctree on reading phasedocutils.confin$HOMEor/etcdirectories are ignored. Onlydocutils.conffrom confdir is obeyed.#789:
:samp:role supports to escape curly braces with backslash#4811: The files under
html_static_pathare excluded from source files.latex: Use
\sphinxcitefor citation references instead\hyperrefThe config value
viewcode_importis renamed toviewcode_follow_imported_members(refs: #4035)#1857: latex:
latex_show_pagerefsdoes not add pagerefs for citations#4648: latex: Now "rubric" elements are rendered as unnumbered section title
#4983: html: The anchor for productionlist tokens has been changed
Modifying a template variable
script_filesin templates is allowed now. Please useapp.add_js_file()instead.#5072: Save environment object also with only new documents
#5035: qthelp builder allows dashes in
qthelp_namespaceLaTeX: with lualatex or xelatex use by default xindy as UTF-8 able replacement of makeindex (refs: #5134). After upgrading Sphinx, please clean latex build repertory of existing project before new build.
#5163: html: hlist items are now aligned to top
highlightlangdirective is processed on resolving phase#4000: LaTeX: template changed. Following elements moved to it:
\begin{document}shorthandoffvariablemaketitlevariabletableofcontentsvariable
Deprecated¶
1.8.0b2
sphinx.io.SphinxI18nReader.set_lineno_for_reporter()is deprecatedsphinx.io.SphinxI18nReader.lineis deprecatedsphinx.util.i18n.find_catalog_source_file()has changed; the gettext_compact argument has been deprecated#5403:
sphinx.util.images.guess_mimetype()has changed; the content argument has been deprecated
1.8.0b1
source_parsersis deprecatedautodoc_default_flagsis deprecatedquickstart:
--epuboption becomes default, so it is deprecatedDrop function based directive support. For now, Sphinx only supports class based directives (see
Directive)sphinx.util.docutils.directive_helper()is deprecatedsphinx.cmdlineis deprecatedsphinx.make_modeis deprecatedsphinx.locale.l_()is deprecated#2157: helper function
warn()for HTML themes is deprecatedapp.override_domain()is deprecatedapp.add_stylesheet()is deprecatedapp.add_javascript()is deprecatedapp.import_object()is deprecatedapp.add_source_parser()has changed; the suffix argument has been deprecatedsphinx.versioning.prepare()is deprecatedConfig.__init__()has changed; the dirname, filename and tags argument has been deprecatedConfig.check_types()is deprecatedConfig.check_unicode()is deprecatedsphinx.application.CONFIG_FILENAMEis deprecatedhighlightlangdirective is deprecatedBuildEnvironment.load()is deprecatedBuildEnvironment.loads()is deprecatedBuildEnvironment.frompickle()is deprecatedenv.read_doc()is deprecatedenv.update()is deprecatedenv._read_serial()is deprecatedenv._read_parallel()is deprecatedenv.write_doctree()is deprecatedenv._nitpick_ignoreis deprecatedenv.versionchangesis deprecatedenv.dump()is deprecatedenv.dumps()is deprecatedenv.topickle()is deprecatedenv.note_versionchange()is deprecatedsphinx.writers.latex.Table.caption_footnotetextsis deprecatedsphinx.writers.latex.Table.header_footnotetextsis deprecatedsphinx.writers.latex.LaTeXTranslator.footnotestackis deprecatedsphinx.writers.latex.LaTeXTranslator.in_container_literal_blockis deprecatedsphinx.writers.latex.LaTeXTranslator.next_section_idsis deprecatedsphinx.writers.latex.LaTeXTranslator.next_hyperlink_idsis deprecatedsphinx.writers.latex.LaTeXTranslator.restrict_footnote()is deprecatedsphinx.writers.latex.LaTeXTranslator.unrestrict_footnote()is deprecatedsphinx.writers.latex.LaTeXTranslator.push_hyperlink_ids()is deprecatedsphinx.writers.latex.LaTeXTranslator.pop_hyperlink_ids()is deprecatedsphinx.writers.latex.LaTeXTranslator.check_latex_elements()is deprecatedsphinx.writers.latex.LaTeXTranslator.bibitemsis deprecatedsphinx.writers.latex.LaTeXTranslator.hlsettingstackis deprecatedsphinx.writers.latex.ExtBabel.get_shorthandoff()is deprecatedsphinx.writers.html.HTMLTranslator.highlightlangis deprecatedsphinx.writers.html.HTMLTranslator.highlightlang_baseis deprecatedsphinx.writers.html.HTMLTranslator.highlightlangoptsis deprecatedsphinx.writers.html.HTMLTranslator.highlightlinenothresholdis deprecatedsphinx.writers.html5.HTMLTranslator.highlightlangis deprecatedsphinx.writers.html5.HTMLTranslator.highlightlang_baseis deprecatedsphinx.writers.html5.HTMLTranslator.highlightlangoptsis deprecatedsphinx.writers.html5.HTMLTranslator.highlightlinenothresholdis deprecatedsphinx.ext.mathbaseextension is deprecatedsphinx.ext.mathbase.mathnode is deprecatedsphinx.ext.mathbase.displaymathnode is deprecatedsphinx.ext.mathbase.eqrefnode is deprecatedsphinx.ext.mathbase.is_in_section_title()is deprecatedsphinx.ext.mathbase.MathDomainis deprecatedsphinx.ext.mathbase.MathDirectiveis deprecatedsphinx.ext.mathbase.math_roleis deprecatedsphinx.ext.mathbase.setup_math()is deprecatedsphinx.directives.other.VersionChangesis deprecatedsphinx.highlighting.PygmentsBridge.unhighlight()is deprecatedsphinx.ext.mathbase.get_node_equation_number()is deprecatedsphinx.ext.mathbase.wrap_displaymath()is deprecatedThe
trim_doctest_flagsargument ofsphinx.highlighting.PygmentsBridgeis deprecated
For more details, see deprecation APIs list.
Features added¶
1.8.0b2
#5388: Ensure frozen object descriptions are reproducible
#5362: apidoc: Add
--tocfileoption to change the filename of ToC
1.8.0b1
Add
config-initedeventAdd
sphinx.config.Anyto represent the config value accepts any type of valuesource_suffixallows a mapping fileext to file typesAdd
authoras a configuration value#2852: imgconverter: Support to convert GIF to PNG
sphinx-buildcommand supports i18n console outputAdd
app.add_message_catalog()andsphinx.locale.get_translations()to support translation for 3rd party extensionshelper function
warning()for HTML themes is addedAdd
Domain.enumerable_nodesto manage own enumerable nodes for domains (experimental)Add a new keyword argument
overrideto Application APIsLaTeX: new key
'fvset'forlatex_elements. For XeLaTeX/LuaLaTeX its default setsfanvyvrbto use normal, not small, fontsize in code-blocks (refs: #4793)Add
html_css_filesandepub_css_filesfor adding CSS files from configurationAdd
html_js_filesfor adding JS files from configuration#4834: Ensure set object descriptions are reproducible.
#4828: Allow to override
numfig_formatpartially. Full definition is not needed.Improve warning messages during including (refs: #4818)
LaTeX: separate customizability of
guilabelandmenuselection(refs: #4830)Add
Config.read()classmethod to create a new config object from configuration file#4866: Wrap graphviz diagrams in
<div>tagviewcode: Add
viewcode-find-sourceandviewcode-follow-importedto load source code without loading#4785: napoleon: Add strings to translation file for localisation
#4927: Display a warning when invalid values are passed to linenothreshold option of highlight directive
C++:
Add a
cpp:texprrole as a sibling tocpp:expr.Add support for unions.
#3593, #2683: add support for anonymous entities using names staring with
@.#5147: add support for (most) character literals.
Cross-referencing entities inside primary templates is supported, and now properly documented.
#1552: add new cross-referencing format for
cpp:anyandcpp:funcroles, for referencing specific function overloads.
#3606: MathJax should be loaded with async attribute
html: Output
canonical_urlmetadata ifhtml_baseurlset (refs: #4193)#5029: autosummary: expose
inherited_membersto template#3784: mathjax: Add
mathjax_optionsto give options to script tag for mathjax#726, #969: mathjax: Add
mathjax_configto give in-line configurations for mathjax#4362: latex: Don't overwrite .tex file if document not changed
#1431: latex: Add alphanumeric enumerated list support
Add
latex_use_xindyfor UTF-8 savvy indexing, defaults toTrueiflatex_engineis'xelatex'or'lualatex'. (refs: #5134, #5192, #5212)#4976:
SphinxLoggerAdapter.info()now supportslocationparameter#5122: setuptools: support nitpicky option
#2820: autoclass directive supports nested class
Add
app.add_html_math_renderer()to register a math renderer for HTMLApply
trim_doctest_flagsto all builders (cf. text, manpages)#5140: linkcheck: Add better Accept header to HTTP client
#4614: sphinx-build: Add
--keep-goingoption to show all warningsAdd
math:numrefrole to refer equations (Same aseq)quickstart: epub builder is enabled by default
#5246: Add
singlehtml_sidebarsto configure sidebars for singlehtml builder#5273: doctest: Skip doctest conditionally
#5306: autodoc: emit a warning for invalid typehints
#4075, #5215: autodoc: Add
autodoc_default_optionswhich accepts option values as dict
Bugs fixed¶
1.8.0b2
html: search box overrides to other elements if scrolled
i18n: warnings for translation catalogs have wrong line numbers (refs: #5321)
#5325: latex: cross references has been broken by multiply labeled objects
C++, fixes for symbol addition and lookup. Lookup should no longer break in partial builds. See also #5337.
#5348: download reference to remote file is not displayed
#5282: html theme:
pygments_styleof theme was overridden byconf.pyby default#4379: toctree shows confusing warning when document is excluded
#2401: autodoc:
:members:causes:special-members:not to be shownautodoc: ImportError is replaced by AttributeError for deeper module
#2720, #4034: Incorrect links with
:download:, duplicate names, and parallel builds#5290: autodoc: failed to analyze source code in egg package
#5399: Sphinx crashes if unknown po file exists
1.8.0b1
i18n: message catalogs were reset on each initialization
#4850: latex: footnote inside footnote was not rendered
#4945: i18n: fix lang_COUNTRY not fallback correctly for IndexBuilder. Thanks to Shengjing Zhu.
#4983: productionlist directive generates invalid IDs for the tokens
#5132: lualatex: PDF build fails if indexed word starts with Unicode character
#5133: latex: index headings "Symbols" and "Numbers" not internationalized
#5114: sphinx-build: Handle errors on scanning documents
epub: spine has been broken when "self" is listed on toctree (refs: #4611)
#344: autosummary does not understand docstring of module level attributes
#5191: C++, prevent nested declarations in functions to avoid lookup problems.
#5126: C++, add missing isPack method for certain template parameter types.
#5187: C++, parse attributes on declarators as well.
C++, parse delete expressions and basic new expressions as well.
#5002: graphviz: SVGs do not adapt to the column width
Features removed¶
1.8.0b1
sphinx.ext.pngmathextension
Documentation¶
1.8.0b1
#5083: Fix wrong make.bat option for internationalization.
#5115: napoleon: add admonitions added by #4613 to the docs.