File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 1- import hashlib
21import os
32import sys
43import time
5- from pathlib import Path
64
75# Location of custom extensions.
86sys .path .insert (0 , os .path .abspath ("." ) + "/_extensions" )
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-
4636html_theme = 'furo'
4737html_theme_options = {
4838 "source_repository" : "https://github.com/python/devguide" ,
4939 "source_branch" : "main" ,
5040}
5141html_static_path = ['_static' ]
5242html_css_files = [
53- _asset_hash ( 'devguide_overrides.css' ) ,
43+ 'devguide_overrides.css' ,
5444]
5545html_logo = "_static/python-logo.svg"
5646html_favicon = "_static/favicon.png"
Original file line number Diff line number Diff line change 1- Sphinx == 7.1.1
1+ Sphinx ~= 7.2.5
22furo >= 2022.6.4
33jinja2
44sphinx-lint == 0.6.8
5- sphinx-notfound-page
5+ sphinx-notfound-page >= 1.0.0
66sphinx_copybutton >= 0.3.3
77sphinxext-opengraph >= 0.7.1
88sphinxext-rediraffe
You can’t perform that action at this time.
0 commit comments