Skip to content

Commit b70b763

Browse files
AA-Turnerhugovk
andauthored
Bump Sphinx to 7.2.5 (#1155)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent f88487f commit b70b763

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

conf.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import hashlib
21
import os
32
import sys
43
import time
5-
from pathlib import Path
64

75
# Location of custom extensions.
86
sys.path.insert(0, os.path.abspath(".") + "/_extensions")
@@ -35,22 +33,14 @@
3533
]
3634

3735

38-
def _asset_hash(path: os.PathLike[str]) -> str:
39-
"""Append a `?digest=` to an url based on the file content."""
40-
full_path = (Path(html_static_path[0]) / path).resolve()
41-
digest = hashlib.sha1(full_path.read_bytes()).hexdigest()
42-
43-
return f"{path}?digest={digest}"
44-
45-
4636
html_theme = 'furo'
4737
html_theme_options = {
4838
"source_repository": "https://github.com/python/devguide",
4939
"source_branch": "main",
5040
}
5141
html_static_path = ['_static']
5242
html_css_files = [
53-
_asset_hash('devguide_overrides.css'),
43+
'devguide_overrides.css',
5444
]
5545
html_logo = "_static/python-logo.svg"
5646
html_favicon = "_static/favicon.png"

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Sphinx==7.1.1
1+
Sphinx~=7.2.5
22
furo>=2022.6.4
33
jinja2
44
sphinx-lint==0.6.8
5-
sphinx-notfound-page
5+
sphinx-notfound-page>=1.0.0
66
sphinx_copybutton>=0.3.3
77
sphinxext-opengraph>=0.7.1
88
sphinxext-rediraffe

0 commit comments

Comments
 (0)