Skip to content

Commit

Permalink
Un-remove deprecated "style" field from html_context
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed May 5, 2024
1 parent 88a54d8 commit 1a85b96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sphinx/builders/html/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ def prepare_writing(self, docnames: set[str]) -> None:
'sphinx_version_tuple': sphinx_version,
'docutils_version_info': docutils.__version_info__[:5],
'styles': styles,
'style': styles[-1], # only for backwards compatibility
'rellinks': rellinks,
'builder': self.name,
'parents': [],
Expand Down

0 comments on commit 1a85b96

Please sign in to comment.