Skip cache-busting for old Sphinx by hugovk · Pull Request #113 · python/python-docs-theme
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. "