diff options
author | CAM Gerlach <CAM.Gerlach@Gerlach.CAM> | 2022-08-03 19:23:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 19:23:20 (GMT) |
commit | ac3bf6155f8addc62f9a9c48f07eef8c3a6f71b2 (patch) | |
tree | 1cbc81b8a0ff4aa9625771de94c24eb3dc83c6d1 /Doc/conf.py | |
parent | 906e4509328917fe9951f85457897f6a841e0529 (diff) | |
download | cpython-ac3bf6155f8addc62f9a9c48f07eef8c3a6f71b2.zip cpython-ac3bf6155f8addc62f9a9c48f07eef8c3a6f71b2.tar.gz cpython-ac3bf6155f8addc62f9a9c48f07eef8c3a6f71b2.tar.bz2 |
gh-91207: Fix CSS bug in Windows CHM help file and add deprecation message (GH-95607)
Diffstat (limited to 'Doc/conf.py')
-rw-r--r-- | Doc/conf.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/conf.py b/Doc/conf.py index bf0af6a..0a436d7 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -79,6 +79,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 |