Skip to content

Commit

Permalink
Bump Sphinx to 7.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Aug 23, 2023
1 parent b66af5a commit f7687ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sphinx==7.1.1
Sphinx==7.2.3
furo>=2022.6.4
jinja2
sphinx-lint==0.6.8
Expand Down

0 comments on commit f7687ae

Please sign in to comment.