1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
|
===============
Changelog
===============
3.6.0
----------------------
* Documentation fixes in :mod:`~.collapse`.
* Dunder methods added in Python 3.13 are hidden by :mod:`~.autoprotocol` (``__non_callable_proto_members__``, ``__firstlineno__``, ``__replace__``, ``__static_attributes__``)
* mod:`~.autoprotocol` doesn't document subclasses of protocols, unless :class:`~.Protocol` is one of their direct base classes.
* Support for Sphinx 7.x
3.5.0
----------------------
* Increase minimum ``cachecontrol`` version to ``0.13.0``
* Private base classes are hidden with :rst:dir:`autotypeddict`
3.4.0
----------------------
* Renamed :py:obj:`sphinx_toolbox.more_autodoc.variables.type_template`
to :py:obj:`sphinx_toolbox.more_autodoc.variables.old_type_template`
and replaced the original with a version using unicode codepoints
instead of reST substitutions.
* On non-ReStructuredText parsers :mod:`sphinx_toolbox.more_autodoc.variables`
and :mod:`sphinx_toolbox.more_autodoc.autonamedtuple` no longer output spurrious ``|nbsp|``.
3.3.0
----------------------
``sphinx-toolbox`` is now compatible with Sphinx 6.x
Bugs Fixed
^^^^^^^^^^^
* :mod:`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
^^^^^^^^^^^
* :mod:`sphinx_toolbox.more_autodoc.typehints` -- Fix crash when performing fix for ``*args`` and ``**kwargs`` on e.g. builtin functions.
Features
^^^^^^^^^^
* Allow ``sphinx-tabs`` version 3.4.0 in requirements. By :github:user:`jorgepiloto` in :github:pull:`115`.
3.1.1
----------------------
:rst:dir:`.. extensions:: <extensions>` -- Use flushleft text with the LaTeX builder. (PR :github:pull:`105`)
Bugs Fixed
^^^^^^^^^^^
* :mod:`sphinx_toolbox.more_autodoc.typehints` -- Fix crash when performing fix for ``*args`` and ``**kwargs``.
3.1.0
----------------------
Removed cap on acceptable versions for `sphinx-autodoc-typehints <https://github.com/tox-dev/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
^^^^^^^^^^^
* :mod:`sphinx_toolbox.more_autodoc.typehints` -- ``*args`` and ``**kwargs`` arguments have type hints applied correctly.
3.0.0
----------------------
Additions
^^^^^^^^^^^
* Official support for Sphinx 4.5 and docutils 0.17
* :mod:`sphinx_toolbox.collapse` -- Added the ``:open:`` option for having the collapsable section open by default. Suggested by :github:user:`tdegeus` in :github:issue:`96`. (PR :github:pull:`101`)
* :mod:`sphinx_toolbox.more_autosummary.column_widths` -- Allows for the autosummary table column widths to be customised with the LaTeX builder. (PR :github:pull:`100`)
* :mod:`sphinx_toolbox.tweaks.latex_layout` -- Added the :confval:`needspace_amount` option for configuring the LaTeX ``needspace`` extension.
* Add :mod:`sphinx_toolbox.latex.succinct_seealso` and make :mod:`sphinx_toolbox.latex` a package.
* Add :rst:role:`namedtuple-field` role for cross-references to namedtuple fields. (PR :github:pull:`104`)
Moves
^^^^^^^^^^
* :mod:`sphinx_toolbox.tweaks.latex_layout` -- Moved to :mod:`sphinx_toolbox.latex.layout`.
* :mod:`sphinx_toolbox.tweaks.latex_toc` -- Moved to :mod:`sphinx_toolbox.latex.toc`.
Removals
^^^^^^^^
* Python 3.6 (including CPython 3.6 and PyPy 3.6) are no longer supported. (PR :github:pull:`99`)
* :mod:`sphinx_toolbox.issues` -- ``IssueNode``, ``visit_issue_node``, ``depart_issue_node``, ``get_issue_title``. Import from :mod:`sphinx_toolbox.github.issues` instead.
* ``sphinx_toolbox.tweaks.sphinx_panels_tabs.copy_assets`` -- renamed to :func:`~sphinx_toolbox.tweaks.sphinx_panels_tabs.copy_asset_files`.
* ``sphinx_toolbox.utils.begin_generate``
Bugs Fixed
^^^^^^^^^^^
* :mod:`sphinx_toolbox.more_autodoc.overloads` -- Now try to resolve forward references in function overloads.
* :mod:`sphinx_toolbox.confval` -- :rst:dir:`confval` directives now show up in the index.
* :rst:dir:`autonamedtuple`, :rst:dir:`autoprotocol`, :rst:dir:`autotypeddict` -- Index entries are now created. (PR :github:pull:`103`)
* Type hints for ``typing.ContextManager`` redirect to :class:`contextlib.AbstractContextManager` on Python 3.7 and 3.8.
2.18.2
--------------
Bugs Fixed
^^^^^^^^^^^
* :mod:`sphinx_toolbox.github` now correctly parses issue titles containing code and quote characters. Reported by :github:user:`arisp99` in :github:issue:`91`.
* :mod:`sphinx_toolbox.more_autosummary` -- Restore compatibility with latest autodocsumm. For the time being autodocsumm's ``relative_ref_paths`` option is not supported.
2.18.0
--------------
``consolekit`` is no longer a dependency;
:class:`~.TerminalRegexParser` now contains the necessary code to create coloured text itself.
2.17.0
--------------
Additions
^^^^^^^^^^^
* :func:`sphinx_toolbox.testing.latex_regression` and :class:`sphinx_toolbox.testing.LaTeXRegressionFixture`
* The ``jinja2_namespace`` argument to :class:`sphinx_toolbox.testing.HTMLRegressionFixture.check`
Bugs Fixed
^^^^^^^^^^^
* Close the underlying requests session of :data:`sphinx_toolbox.utils.GITHUB_COM` when the Python interpreter exits.
* :func:`sphinx_toolbox.more_autodoc.typehints.process_docstring` is skipped for ``variable`` and ``regex`` documenters
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
^^^^^^^^^^^^
* :mod:`sphinx_toolbox.more_autodoc` -- Ensure the ``|nbsp|`` substitution is set up correctly when the ``rst_prolog`` option is specified in ``conf.py`` (Issue :issue:`80`).
when using the extension on its own.
* Set the ``class`` CSS class with custom autodocumenters (:mod:`~.autonamedtuple`, :mod:`~.autoprotocol` and :mod:`~.autotypeddict`) (Issue :issue:`79`)
Additions
^^^^^^^^^^^
* :func:`sphinx_toolbox.utils.add_fallback_css_class`
* :class:`sphinx_toolbox.testing.HTMLRegressionFixture` -- made the ``docutils_version`` variable available in jinja2 templates.
2.15.3
--------------
Features
^^^^^^^^^^^
* Support ``sphinx-autodoc-typehints`` versions 1.12-1.14.
Bugs Fixed
^^^^^^^^^^^^
* :mod:`sphinx_toolbox.more_autodoc.regex` -- Ensure the ``|nbsp|`` substitution is set up
when using the extension on its own (Issue :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
^^^^^^^^^^^^
* :mod:`sphinx_toolbox.decorators` -- Ensure the ``deco`` role correctly finds the targets of xrefs.
2.15.1
------------
Bugs Fixed
^^^^^^^^^^^^^
* :mod:`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
^^^^^^^^^^^^^
* :class:`~.RegexDocumenter` -- No longer outputs a ``csv-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.
2.14.0
--------
Features
^^^^^^^^^
* :class:`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
* :mod:`sphinx_toolbox.tweaks.latex_layout` -- Now configures ``hyperref`` to use correct page numbering for the frontmatter.
Bugs Fixed
^^^^^^^^^^^^^
* URLs pointing to https://pypistats.org/ now use lowercased project names.
* The ``cls`` and ``return`` attributes are ignored from ``__annotations__`` when deciding whether to include the ``__new__`` method for a :class:`~.NamedTuple` with :class:`~.NamedTupleDocumenter`.
2.13.0
--------
Features
^^^^^^^^^^
* Added support for Sphinx 3.4.x and 3.5.x.
* :mod:`sphinx_toolbox.more_autodoc.autoprotocol` -- Added support for generic bases, such as ``class SupportsAbs(Protocol[T_co]): ...``.
* :mod:`sphinx_toolbox.more_autosummary` -- Added the :confval:`autosummary_col_type` configuration option.
* :func:`sphinx_toolbox.latex.replace_unknown_unicode` -- Add support for converting ``≥`` and ``≤``.
* :func:`sphinx_toolbox.more_autodoc.typehints.format_annotation` -- Added support for :py:obj:`True` and :py:obj:`False`
Bugs Fixed
^^^^^^^^^^^^^
* :mod:`sphinx_toolbox.more_autosummary` -- Ensure ``__all__`` is respected for autosummary tables.
-----
.. note:: The changlog prior to 2.13.0 has not been compiled yet.
|