diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-04-28 10:41:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 10:41:59 +0100 |
commit | 4be56f3b7ddf44265d2e7a8f26a33ba46be52ab9 (patch) | |
tree | 45c6816a976fb4febc9f372543d9dc45e1134de6 | |
parent | 49027a9ae61d0d00016182025f68239a50ba4c09 (diff) | |
download | sphinx-git-4be56f3b7ddf44265d2e7a8f26a33ba46be52ab9.tar.gz |
Remove deprecated ``style`` key for HTML templates (#11381)
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | doc/development/templating.rst | 16 | ||||
-rw-r--r-- | sphinx/builders/html/__init__.py | 1 |
3 files changed, 1 insertions, 17 deletions
@@ -25,6 +25,7 @@ Incompatible changes function. * #11379: Make the ``env`` argument to ``Builder`` subclasses required. * #11380: autosummary: Always emit grouped import exceptions. +* #11381: Remove deprecated ``style`` key for HTML templates. Deprecated ---------- diff --git a/doc/development/templating.rst b/doc/development/templating.rst index 512240f49..0bb6614c4 100644 --- a/doc/development/templating.rst +++ b/doc/development/templating.rst @@ -381,22 +381,6 @@ in the future. .. versionadded:: 5.1 -.. data:: style - - The name of the main stylesheet, as given by the theme or - :confval:`html_style`. - - .. versionchanged:: 5.1 - - The theme or :confval:`html_style` are now able to specify multiple - stylesheets, the ``style`` key returns the last stylesheet when more than - one is specified. - - .. deprecated:: 5.1 - - Use the :data:`styles` key instead, as there is no longer a single main - stylesheet. The ``style`` key will be removed in Sphinx 7.0. - .. data:: title The title of the current document, as used in the ``<title>`` tag. diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py index 2bf14672d..5cfe8adb5 100644 --- a/sphinx/builders/html/__init__.py +++ b/sphinx/builders/html/__init__.py @@ -560,7 +560,6 @@ class StandaloneHTMLBuilder(Builder): 'sphinx_version_tuple': sphinx_version, 'docutils_version_info': docutils.__version_info__[:5], 'styles': styles, - 'style': styles[-1], # xref RemovedInSphinx70Warning 'rellinks': rellinks, 'builder': self.name, 'parents': [], |