We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_add_asset_hashes
1 parent f8db95b commit a92dd0cCopy full SHA for a92dd0c
src/furo/__init__.py
@@ -156,6 +156,11 @@ def _asset_hash(path: str) -> str:
156
157
158
def _add_asset_hashes(static: List[str], add_digest_to: List[str]) -> None:
159
+ if sphinx.version_info >= (7, 1):
160
+ # https://github.com/sphinx-doc/sphinx/pull/11415 added the relevant
161
+ # functionality to Sphinx, so we don't need to do anything.
162
+ return
163
+
164
for asset in add_digest_to:
165
index = static.index("_static/" + asset)
166
static[index].filename = _asset_hash(asset) # type: ignore
0 commit comments