We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents acd4754 + 8b88430 commit a6e262eCopy full SHA for a6e262e
python_docs_theme/__init__.py
@@ -37,7 +37,7 @@ def _html_page_context(
37
38
assert isinstance(app.builder, StandaloneHTMLBuilder)
39
40
- if "css_files" in context:
+ if sphinx.version_info >= (4,) and "css_files" in context:
41
if "_static/pydoctheme.css" not in context["css_files"]:
42
raise ValueError(
43
"This documentation is not using `pydoctheme.css` as the stylesheet. "
0 commit comments