diff --git a/conf.py b/conf.py index a9b0ec1a7d..32d46e5811 100644 --- a/conf.py +++ b/conf.py @@ -1,8 +1,6 @@ -import hashlib import os import sys import time -from pathlib import Path # Location of custom extensions. sys.path.insert(0, os.path.abspath(".") + "/_extensions") @@ -35,14 +33,6 @@ ] -def _asset_hash(path: os.PathLike[str]) -> str: - """Append a `?digest=` to an url based on the file content.""" - full_path = (Path(html_static_path[0]) / path).resolve() - digest = hashlib.sha1(full_path.read_bytes()).hexdigest() - - return f"{path}?digest={digest}" - - html_theme = 'furo' html_theme_options = { "source_repository": "https://github.com/python/devguide", @@ -50,7 +40,7 @@ def _asset_hash(path: os.PathLike[str]) -> str: } html_static_path = ['_static'] html_css_files = [ - _asset_hash('devguide_overrides.css'), + 'devguide_overrides.css', ] html_logo = "_static/python-logo.svg" html_favicon = "_static/favicon.png" diff --git a/requirements.txt b/requirements.txt index b5476b7e0a..260c90752c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -Sphinx==7.1.1 +Sphinx~=7.2.5 furo>=2022.6.4 jinja2 sphinx-lint==0.6.8 -sphinx-notfound-page +sphinx-notfound-page>=1.0.0 sphinx_copybutton>=0.3.3 sphinxext-opengraph>=0.7.1 sphinxext-rediraffe