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. " 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