Skip to content

Commit ac3bf61

Browse files
authored
gh-91207: Fix CSS bug in Windows CHM help file and add deprecation message (GH-95607)
1 parent 906e450 commit ac3bf61

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@
7979
'root_include_title': False # We use the version switcher instead.
8080
}
8181

82+
# Override stylesheet fingerprinting for Windows CHM htmlhelp to fix GH-91207
83+
# https://github.com/python/cpython/issues/91207
84+
if any('htmlhelp' in arg for arg in sys.argv):
85+
html_style = 'pydoctheme.css'
86+
print("\nWARNING: Windows CHM Help is no longer supported.")
87+
print("It may be removed in the future\n")
88+
8289
# Short title used e.g. for <title> HTML tags.
8390
html_short_title = '%s Documentation' % release
8491

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix stylesheet not working in Windows CHM htmlhelp docs
2+
and add warning that they are deprecated.
3+
Contributed by C.A.M. Gerlach.

0 commit comments

Comments
 (0)