- 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 :githubtdegeus
in :github96
. (PR :github101
)sphinx_toolbox.more_autosummary.column_widths
-- Allows for the autosummary table column widths to be customised with the LaTeX builder. (PR :github100
)sphinx_toolbox.tweaks.latex_layout
-- Added theneedspace_amount
option for configuring the LaTeXneedspace
extension.- Add
sphinx_toolbox.latex.succinct_seealso
and makesphinx_toolbox.latex
a package. - Add :rst
namedtuple-field
role for cross-references to namedtuple fields. (PR :github104
)
sphinx_toolbox.tweaks.latex_layout
-- Moved tosphinx_toolbox.latex.layout
.sphinx_toolbox.tweaks.latex_toc
-- Moved tosphinx_toolbox.latex.toc
.
- Python 3.6 (including CPython 3.6 and PyPy 3.6) are no longer supported. (PR :github
99
) sphinx_toolbox.issues
--IssueNode
,visit_issue_node
,depart_issue_node
,get_issue_title
. Import fromsphinx_toolbox.github.issues
instead.sphinx_toolbox.tweaks.sphinx_panels_tabs.copy_assets
-- renamed to~sphinx_toolbox.tweaks.sphinx_panels_tabs.copy_asset_files
.sphinx_toolbox.utils.begin_generate
sphinx_toolbox.more_autodoc.overloads
-- Now try to resolve forward references in function overloads.sphinx_toolbox.confval
-- :rstconfval
directives now show up in the index.- :rst
autonamedtuple
, :rstautoprotocol
, :rstautotypeddict
-- Index entries are now created. (PR :github103
) - Type hints for
typing.ContextManager
redirect tocontextlib.AbstractContextManager
on Python 3.7 and 3.8.
sphinx_toolbox.github
now correctly parses issue titles containing code and quote characters. Reported by :githubarisp99
in :github91
.sphinx_toolbox.more_autosummary
-- Restore compatibility with latest autodocsumm. For the time being autodocsumm'srelative_ref_paths
option is not supported.
consolekit
is no longer a dependency; ~.TerminalRegexParser
now contains the necessary code to create coloured text itself.
sphinx_toolbox.testing.latex_regression
andsphinx_toolbox.testing.LaTeXRegressionFixture
- The
jinja2_namespace
argument tosphinx_toolbox.testing.HTMLRegressionFixture.check
- Close the underlying requests session of
sphinx_toolbox.utils.GITHUB_COM
when the Python interpreter exits. sphinx_toolbox.more_autodoc.typehints.process_docstring
is skipped forvariable
andregex
documenters where there aren't:param:
and:rtype:
attributes.
Removed top-end requirement for Sphinx. The officially supported versions are Sphinx 3.2 to 4.4 inclusive.
sphinx_toolbox.more_autodoc
-- Ensure the|nbsp|
substitution is set up correctly when therst_prolog
option is specified inconf.py
(Issue80
). when using the extension on its own.- Set the
class
CSS class with custom autodocumenters (~.autonamedtuple
,~.autoprotocol
and~.autotypeddict
) (Issue79
)
sphinx_toolbox.utils.add_fallback_css_class
sphinx_toolbox.testing.HTMLRegressionFixture
-- made thedocutils_version
variable available in jinja2 templates.
- Support
sphinx-autodoc-typehints
versions 1.12-1.14.
sphinx_toolbox.more_autodoc.regex
-- Ensure the|nbsp|
substitution is set up when using the extension on its own (Issue80
).
sphinx_toolbox.utils.begin_generate
-- Will be removed in v3.0.0. Users of this function should reimplement it in their own code.
sphinx_toolbox.decorators
-- Ensure thedeco
role correctly finds the targets of xrefs.
sphinx_toolbox.github
-- fix crash when getting GitHub issue titles if there's no internet.
- 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
~.RegexDocumenter
-- No longer outputs acsv-table
directive 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.
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 configureshyperref
to use correct page numbering for the frontmatter.
- URLs pointing to https://pypistats.org/ now use lowercased project names.
- The
cls
andreturn
attributes are ignored from__annotations__
when deciding whether to include the__new__
method for a~.NamedTuple
with~.NamedTupleDocumenter
.
- 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_type
configuration option.sphinx_toolbox.latex.replace_unknown_unicode
-- Add support for converting≥
and≤
.sphinx_toolbox.more_autodoc.typehints.format_annotation
-- Added support for :pyTrue
and :pyFalse
sphinx_toolbox.more_autosummary
-- Ensure__all__
is respected for autosummary tables.
Note
The changlog prior to 2.13.0 has not been compiled yet.