mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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:
parent
8d09626066
commit
a591c4701c
2 changed files with 10 additions and 0 deletions
|
@ -74,6 +74,13 @@ html_theme_options = {
|
||||||
'root_include_title': False # We use the version switcher instead.
|
'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.
|
# Short title used e.g. for <title> HTML tags.
|
||||||
html_short_title = '%s Documentation' % release
|
html_short_title = '%s Documentation' % release
|
||||||
|
|
||||||
|
|
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue