Skip to content

Commit

Permalink
Merge pull request #137 from python/sphinx-7-1-0
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jul 29, 2023
2 parents 1374abf + c7958da commit a100c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_docs_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _html_page_context(

assert isinstance(app.builder, StandaloneHTMLBuilder)

if sphinx.version_info >= (4,) and "css_files" in context:
if (4,) <= sphinx.version_info < (7, 1) and "css_files" in context:
if "_static/pydoctheme.css" not in context["css_files"]:
raise ValueError(
"This documentation is not using `pydoctheme.css` as the stylesheet. "
Expand Down

0 comments on commit a100c04

Please sign in to comment.