Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Sphinx to 7.2.5 #1155

Merged
merged 5 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.3
furo>=2022.6.4
AA-Turner marked this conversation as resolved.
Show resolved Hide resolved
jinja2
sphinx-lint==0.6.8
sphinx-notfound-page
sphinx-notfound-page>=1.0.0rc1
sphinx_copybutton>=0.3.3
AA-Turner marked this conversation as resolved.
Show resolved Hide resolved
sphinxext-opengraph>=0.7.1
sphinxext-rediraffe
Loading