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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy