gh-91207: Override stylesheet fingerprinting when building for HTML Help (GH-95556)

This commit is contained in:
CAM Gerlach 2022-08-02 14:04:12 -05:00 committed by GitHub
parent 8a7bf2d28c
commit 7c5f13f391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -74,6 +74,11 @@
'root_include_title': False # We use the version switcher instead.
}
# Override stylesheet fingerprinting for Windows CHM htmlhelp to fix GH-91207
# https://github.com/python/cpython/issues/91207
if any('htmlhelp' in arg for arg in sys.argv):
html_style = 'pydoctheme.css'
# Short title used e.g. for <title> HTML tags.
html_short_title = '%s Documentation' % release

View File

@ -0,0 +1,2 @@
Fix stylesheet not working in Windows CHM htmlhelp docs.
Contributed by C.A.M. Gerlach.