Skip to content

Commit a100c04

Browse files
authored
Merge pull request #137 from python/sphinx-7-1-0
2 parents 1374abf + c7958da commit a100c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_docs_theme/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _html_page_context(
3737

3838
assert isinstance(app.builder, StandaloneHTMLBuilder)
3939

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

0 commit comments

Comments
 (0)