]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91207: Override stylesheet fingerprinting when building for HTML Help (GH-95556)
authorCAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Tue, 2 Aug 2022 19:04:12 +0000 (14:04 -0500)
committerGitHub <noreply@github.com>
Tue, 2 Aug 2022 19:04:12 +0000 (20:04 +0100)
Doc/conf.py
Misc/NEWS.d/next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst [new file with mode: 0644]

index 01243de7805ddc62aee38ef4de4434cddc61ebde..8fdff7965d920e76cf04130256bee5339ef95695 100644 (file)
@@ -74,6 +74,11 @@ 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'
+
 # 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-01-23-17-04.gh-issue-91207._P8i0B.rst b/Misc/NEWS.d/next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst
new file mode 100644 (file)
index 0000000..d71de3e
--- /dev/null
@@ -0,0 +1,2 @@
+Fix stylesheet not working in Windows CHM htmlhelp docs.
+Contributed by C.A.M. Gerlach.