Skip to content

Commit 1a85b96

Browse files
committed
Un-remove deprecated "style" field from html_context
1 parent 88a54d8 commit 1a85b96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sphinx/builders/html/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ def prepare_writing(self, docnames: set[str]) -> None:
548548
'sphinx_version_tuple': sphinx_version,
549549
'docutils_version_info': docutils.__version_info__[:5],
550550
'styles': styles,
551+
'style': styles[-1], # only for backwards compatibility
551552
'rellinks': rellinks,
552553
'builder': self.name,
553554
'parents': [],

0 commit comments

Comments
 (0)