Skip to content

Commit 4be56f3

Browse files
authored
Remove deprecated style key for HTML templates (#11381)
1 parent 49027a9 commit 4be56f3

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Incompatible changes
2525
function.
2626
* #11379: Make the ``env`` argument to ``Builder`` subclasses required.
2727
* #11380: autosummary: Always emit grouped import exceptions.
28+
* #11381: Remove deprecated ``style`` key for HTML templates.
2829

2930
Deprecated
3031
----------

doc/development/templating.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -381,22 +381,6 @@ in the future.
381381

382382
.. versionadded:: 5.1
383383

384-
.. data:: style
385-
386-
The name of the main stylesheet, as given by the theme or
387-
:confval:`html_style`.
388-
389-
.. versionchanged:: 5.1
390-
391-
The theme or :confval:`html_style` are now able to specify multiple
392-
stylesheets, the ``style`` key returns the last stylesheet when more than
393-
one is specified.
394-
395-
.. deprecated:: 5.1
396-
397-
Use the :data:`styles` key instead, as there is no longer a single main
398-
stylesheet. The ``style`` key will be removed in Sphinx 7.0.
399-
400384
.. data:: title
401385

402386
The title of the current document, as used in the ``<title>`` tag.

sphinx/builders/html/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ def prepare_writing(self, docnames: set[str]) -> None:
560560
'sphinx_version_tuple': sphinx_version,
561561
'docutils_version_info': docutils.__version_info__[:5],
562562
'styles': styles,
563-
'style': styles[-1], # xref RemovedInSphinx70Warning
564563
'rellinks': rellinks,
565564
'builder': self.name,
566565
'parents': [],

0 commit comments

Comments
 (0)