From 8b88430553fdaa1d7a85296a106158b5faf99a4b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 11 Mar 2023 13:32:42 +0200 Subject: [PATCH] Skip cache-busting for old Sphinx --- python_docs_theme/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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