diff --git a/sphinx_design/extension.py b/sphinx_design/extension.py index 21ec03d..f7d582c 100644 --- a/sphinx_design/extension.py +++ b/sphinx_design/extension.py @@ -70,7 +70,7 @@ def update_css_js(app: Sphinx): content = read_text(static_module, "style.min.css") # Write the css file if sphinx_version < (7, 1): - hash = hashlib.md5(content.encode("utf8")).hexdigest() + hash = hashlib.md5(content.encode("utf8"), usedforsecurity=False).hexdigest() css_path = static_path / f"sphinx-design.{hash}.min.css" else: # since sphinx 7.1 a checksum is added to the css file URL, so there is no need to do it here