diff --git a/python_docs_theme/__init__.py b/python_docs_theme/__init__.py index 62b16f0..bbe1352 100644 --- a/python_docs_theme/__init__.py +++ b/python_docs_theme/__init__.py @@ -37,7 +37,7 @@ def _html_page_context( assert isinstance(app.builder, StandaloneHTMLBuilder) - if "css_files" in context: + if sphinx.version_info >= (4,) 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. "
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: