Skip to content

Commit a6e262e

Browse files
authored
Merge pull request #113 from hugovk/skip-cache-busting-for-old-sphinx
Skip cache-busting for old Sphinx
2 parents acd4754 + 8b88430 commit a6e262e

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 "css_files" in context:
40+
if sphinx.version_info >= (4,) 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)