| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,7 @@ def _html_page_context( | |||
| 37 | 37 | ||
| 38 | 38 | assert isinstance(app.builder, StandaloneHTMLBuilder) | |
| 39 | 39 | ||
| 40 | - if "css_files" in context: | ||
| 40 | + if sphinx.version_info >= (4,) and "css_files" in context: | ||
| 41 | 41 | if "_static/pydoctheme.css" not in context["css_files"]: | |
| 42 | 42 | raise ValueError( | |
| 43 | 43 | "This documentation is not using `pydoctheme.css` as the stylesheet. " | |
| Back | FazBrowse Home | New Git URL |
0 commit comments