Furo is broken on Sphinx 7.2.0 and 7.2.1 #693
-
I have definitely not set
|
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 14 replies
-
I'm facing the same issue in this project. My Sphinx config is short extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
"sphinx.ext.napoleon", # before sphinx_autodoc_typehints
"sphinx_autodoc_typehints",
]
autodoc_mock_imports = []
templates_path = []
source_suffix = ".rst"
master_doc = "index"
project = "..."
copyright = "..."
author = "..."
version = "X.Y"
release = "X.Y.Z"
language = "en"
pygments_style = "sphinx"
html_theme = "furo"
htmlhelp_basename = "foxplotdoc" Timeline:
So it is likely this started to happen recently. |
Beta Was this translation helpful? Give feedback.
-
This is definitely due to Sphinx 7.2.0. When downgrading to 7.1.2, it works. |
Beta Was this translation helpful? Give feedback.
-
The contents of ['_static/pygments.css', '_static/styles/furo.css', '_static/custom.css', '_static/styles/furo-extensions.css'] However, in Sphinx 7.2, it is a list of objects (that no longer inherit from [<sphinx.builders.html._assets._CascadingStyleSheet object at 0x107b2db30>, <sphinx.builders.html._assets._CascadingStyleSheet object at 0x107cbd8b0>,...] Each of those objects has a --- __init__.py.orig 2023-08-17 05:48:11.377444596 -0500
+++ __init__.py 2023-08-17 05:49:06.006422357 -0500
@@ -181,14 +181,15 @@
)
if "css_files" in context:
- if "_static/styles/furo.css" not in context["css_files"]:
+ css_files = [getattr(c, 'filename', c) for c in context['css_files']]
+ if "_static/styles/furo.css" not in css_files:
raise Exception(
"This documentation is not using `furo.css` as the stylesheet. "
"If you have set `html_style` in your conf.py file, remove it.",
)
_add_asset_hashes(
- context["css_files"],
+ css_files,
["styles/furo.css", "styles/furo-extensions.css"],
)
if "scripts" in context: |
Beta Was this translation helpful? Give feedback.
-
I confirm this issue too. Downgrading |
Beta Was this translation helpful? Give feedback.
-
Here's a complete reproduction case:
|
Beta Was this translation helpful? Give feedback.
-
Sphinx 7.2.1 has been released, please test with the new release. |
Beta Was this translation helpful? Give feedback.
-
Fixed in 9b94420. If folks can test with that, that would be appreciated (https://pradyunsg.me/furo/contributing/workflow/#installing-directly-from-github)! :) The release is going to have to wait though, until I get home in about an hour. |
Beta Was this translation helpful? Give feedback.
-
Thanks to @AA-Turner for the quick fix on Sphinx's end for this. As always, the work that you're doing to improve foundational pieces in the Sphinx ecosystem are appreciated! ❤️ I've also released the aforementioned change, in case it makes things easier for the behaviours that Sphinx has planned. :) |
Beta Was this translation helpful? Give feedback.
-
Also an issue with Sphinx 6.2.1 (yes I will be updating to 7.2.2) |
Beta Was this translation helpful? Give feedback.
-
With the release today, I think all the known incompatibility issues with various Sphinx releases should be resolved (this is also tested with automation now, which is a good thing). |
Beta Was this translation helpful? Give feedback.
With the release today, I think all the known incompatibility issues with various Sphinx releases should be resolved (this is also tested with automation now, which is a good thing).