gh-91207: Fix CSS bug in Windows CHM help file and add deprecation message (GH-95607)

(cherry picked from commit ac3bf6155f)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
Miss Islington (bot) 2022-08-03 13:43:14 -07:00 committed by GitHub
parent 8d09626066
commit a591c4701c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -74,6 +74,13 @@ html_theme_options = {
'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'
print("\nWARNING: Windows CHM Help is no longer supported.")
print("It may be removed in the future\n")
# Short title used e.g. for <title> HTML tags.
html_short_title = '%s Documentation' % release

View file

@ -0,0 +1,3 @@
Fix stylesheet not working in Windows CHM htmlhelp docs
and add warning that they are deprecated.
Contributed by C.A.M. Gerlach.