]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91207: Fix CSS bug in Windows CHM help file and add deprecation message (GH-95607)
authorCAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Wed, 3 Aug 2022 19:23:20 +0000 (14:23 -0500)
committerGitHub <noreply@github.com>
Wed, 3 Aug 2022 19:23:20 +0000 (20:23 +0100)
Doc/conf.py
Misc/NEWS.d/next/Documentation/2022-08-03-13-35-08.gh-issue-91207.eJ4pPf.rst [new file with mode: 0644]

index bf0af6a663c8b65bef11c5c4abfe72d7667a47d4..0a436d7affcdb6045e33e2e31b6bb31c5ec70940 100644 (file)
@@ -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
 
diff --git a/Misc/NEWS.d/next/Documentation/2022-08-03-13-35-08.gh-issue-91207.eJ4pPf.rst b/Misc/NEWS.d/next/Documentation/2022-08-03-13-35-08.gh-issue-91207.eJ4pPf.rst
new file mode 100644 (file)
index 0000000..8c7391f
--- /dev/null
@@ -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.