Skip to content

Commit

Permalink
Bump Sphinx to 7.2.5 (#1155)
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
AA-Turner and hugovk authored Aug 31, 2023
1 parent f88487f commit b70b763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions conf.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -35,22 +33,14 @@
]


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",
"source_branch": "main",
}
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"
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b70b763

Please sign in to comment.