Skip to content

Commit a591c47

Browse files
gh-91207: Fix CSS bug in Windows CHM help file and add deprecation message (GH-95607)
(cherry picked from commit ac3bf61) Co-authored-by: CAM Gerlach <[email protected]>
1 parent 8d09626 commit a591c47

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
@@ -74,6 +74,13 @@
7474
'root_include_title': False # We use the version switcher instead.
7575
}
7676

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

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)