Changelog¶
4.0.0¶
The sphinx_toolbox.source module no longer enables the sphinx_toolbox.github extension automatically.
If you have source_link_target set to 'GitHub' you may need to enable the extension manually.
3.10.0¶
Allow GitHub branch to be specified for installation directive.
3.9.0¶
Improved support for Sphinx 8.1+
3.8.2¶
(BUG) Fix GitHub issue title parsing.
3.8.0¶
Improved support for Sphinx 7.3+
3.7.0¶
Add
sphinx_toolbox.more_autodoc.variables.PropertyDocumenter.Use sphinx’s
HTML5TranslatoroverHTMLTranslator.
3.6.0¶
Documentation fixes in
collapse.Dunder methods added in Python 3.13 are hidden by
autoprotocol(__non_callable_proto_members__,__firstlineno__,__replace__,__static_attributes__)mod:~.autoprotocol doesn’t document subclasses of protocols, unless
Protocolis one of their direct base classes.Support for Sphinx 7.x
3.5.0¶
Increase minimum
cachecontrolversion to0.13.0Private base classes are hidden with
autotypeddict
3.4.0¶
Renamed
sphinx_toolbox.more_autodoc.variables.type_templatetosphinx_toolbox.more_autodoc.variables.old_type_templateand replaced the original with a version using unicode codepoints instead of reST substitutions.On non-ReStructuredText parsers
sphinx_toolbox.more_autodoc.variablesandsphinx_toolbox.more_autodoc.autonamedtupleno longer output spurrious|nbsp|.
3.3.0¶
sphinx-toolbox is now compatible with Sphinx 6.x
Bugs Fixed¶
sphinx_toolbox.github.issues– GitHub made a change to the page structure which broke the issue title parsing.
3.2.0¶
sphinx-toolbox is now compatible with Sphinx 5.x and docutils 0.18.
3.1.2¶
Bugs Fixed¶
sphinx_toolbox.more_autodoc.typehints– Fix crash when performing fix for*argsand**kwargson e.g. builtin functions.
Features¶
Allow
sphinx-tabsversion 3.4.0 in requirements. By @jorgepiloto in #115.
3.1.1¶
.. extensions:: – Use flushleft text with the LaTeX builder. (PR #105)
Bugs Fixed¶
sphinx_toolbox.more_autodoc.typehints– Fix crash when performing fix for*argsand**kwargs.
3.1.0¶
Removed cap on acceptable versions for sphinx-autodoc-typehints.
However, because sphinx-toolbox customises some of the functions from that package,
configuration options added after version 1.14.1 may not work (e.g. typehints_defaults and typehints_formatter).
Bugs Fixed¶
sphinx_toolbox.more_autodoc.typehints–*argsand**kwargsarguments have type hints applied correctly.
3.0.0¶
Additions¶
Official support for Sphinx 4.5 and docutils 0.17
sphinx_toolbox.collapse– Added the:open:option for having the collapsable section open by default. Suggested by @tdegeus in #96. (PR #101)sphinx_toolbox.more_autosummary.column_widths– Allows for the autosummary table column widths to be customised with the LaTeX builder. (PR #100)sphinx_toolbox.tweaks.latex_layout– Added theneedspace_amountoption for configuring the LaTeXneedspaceextension.Add
sphinx_toolbox.latex.succinct_seealsoand makesphinx_toolbox.latexa package.Add
namedtuple-fieldrole for cross-references to namedtuple fields. (PR #104)
Moves¶
Removals¶
Python 3.6 (including CPython 3.6 and PyPy 3.6) are no longer supported. (PR #99)
sphinx_toolbox.issues–IssueNode,visit_issue_node,depart_issue_node,get_issue_title. Import fromsphinx_toolbox.github.issuesinstead.sphinx_toolbox.tweaks.sphinx_panels_tabs.copy_assets– renamed tocopy_asset_files().sphinx_toolbox.utils.begin_generate
Bugs Fixed¶
sphinx_toolbox.more_autodoc.overloads– Now try to resolve forward references in function overloads.sphinx_toolbox.confval–confvaldirectives now show up in the index.autonamedtuple,autoprotocol,autotypeddict– Index entries are now created. (PR #103)Type hints for
typing.ContextManagerredirect tocontextlib.AbstractContextManageron Python 3.7 and 3.8.
2.18.2¶
Bugs Fixed¶
sphinx_toolbox.githubnow correctly parses issue titles containing code and quote characters. Reported by @arisp99 in #91.sphinx_toolbox.more_autosummary– Restore compatibility with latest autodocsumm. For the time being autodocsumm’srelative_ref_pathsoption is not supported.
2.18.0¶
consolekit is no longer a dependency;
TerminalRegexParser now contains the necessary code to create coloured text itself.
2.17.0¶
Additions¶
sphinx_toolbox.testing.latex_regression()andsphinx_toolbox.testing.LaTeXRegressionFixtureThe
jinja2_namespaceargument tosphinx_toolbox.testing.HTMLRegressionFixture.check
Bugs Fixed¶
Close the underlying requests session of
sphinx_toolbox.utils.GITHUB_COMwhen the Python interpreter exits.sphinx_toolbox.more_autodoc.typehints.process_docstring()is skipped forvariableandregexdocumenters where there aren’t:param:and:rtype:attributes.
2.16.1¶
Removed top-end requirement for Sphinx. The officially supported versions are Sphinx 3.2 to 4.4 inclusive.
2.16.0¶
Bugs Fixed¶
sphinx_toolbox.more_autodoc– Ensure the|nbsp|substitution is set up correctly when therst_prologoption is specified inconf.py(Issue #80). when using the extension on its own.Set the
classCSS class with custom autodocumenters (autonamedtuple,autoprotocolandautotypeddict) (Issue #79)
Additions¶
sphinx_toolbox.testing.HTMLRegressionFixture– made thedocutils_versionvariable available in jinja2 templates.
2.15.3¶
Features¶
Support
sphinx-autodoc-typehintsversions 1.12-1.14.
Bugs Fixed¶
sphinx_toolbox.more_autodoc.regex– Ensure the|nbsp|substitution is set up when using the extension on its own (Issue #80).
Deprecations¶
sphinx_toolbox.utils.begin_generate– Will be removed in v3.0.0. Users of this function should reimplement it in their own code.
2.15.2¶
Bugs Fixed¶
sphinx_toolbox.decorators– Ensure thedecorole correctly finds the targets of xrefs.
2.15.1¶
Bugs Fixed¶
sphinx_toolbox.github– fix crash when getting GitHub issue titles if there’s no internet.
2.15.0¶
Features¶
Added support for Sphinx 4.1 and 4.2
Added support for autodocsumm > 0.2.2
Improved support for Python 3.10.0 rc.2
Bugs Fixed¶
RegexDocumenter– No longer outputs acsv-tabledirective when there is no pattern and no flags. This prevents docutils emitting a warning.Correctly uses UTF-8 when reading files in HTML regression tests.
2.14.0¶
Features¶
sphinx_toolbox.testing.HTMLRegressionFixture– Added support for rendering the reference file as a jinja2 template, which can be used to account for differences between Python and Sphinx versions.Added support for Sphinx 4.0 and sphinx-tabs versions up to 3.2.0
Improved support for Python 3.10.0 rc.1
sphinx_toolbox.tweaks.latex_layout– Now configureshyperrefto use correct page numbering for the frontmatter.
Bugs Fixed¶
URLs pointing to https://pypistats.org/ now use lowercased project names.
The
clsandreturnattributes are ignored from__annotations__when deciding whether to include the__new__method for aNamedTuplewithNamedTupleDocumenter.
2.13.0¶
Features¶
Added support for Sphinx 3.4.x and 3.5.x.
sphinx_toolbox.more_autodoc.autoprotocol– Added support for generic bases, such asclass SupportsAbs(Protocol[T_co]): ....sphinx_toolbox.more_autosummary– Added theautosummary_col_typeconfiguration option.sphinx_toolbox.latex.replace_unknown_unicode()– Add support for converting≥and≤.sphinx_toolbox.more_autodoc.typehints.format_annotation()– Added support forTrueandFalse
Bugs Fixed¶
sphinx_toolbox.more_autosummary– Ensure__all__is respected for autosummary tables.
Note
The changlog prior to 2.13.0 has not been compiled yet.