[Python-checkins] gh-91207: Override stylesheet fingerprinting when building for HTML Help (GH-95556)

zooba webhook-mailer at python.org
Tue Aug 2 15:04:16 EDT 2022


https://github.com/python/cpython/commit/7c5f13f391ad9112bb238f2bbccca749f4b7923d
commit: 7c5f13f391ad9112bb238f2bbccca749f4b7923d
branch: 3.10
author: CAM Gerlach <CAM.Gerlach at Gerlach.CAM>
committer: zooba <steve.dower at microsoft.com>
date: 2022-08-02T20:04:12+01:00
summary:

gh-91207: Override stylesheet fingerprinting when building for HTML Help (GH-95556)

files:
A Misc/NEWS.d/next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst
M Doc/conf.py

diff --git a/Doc/conf.py b/Doc/conf.py
index 01243de7805..8fdff7965d9 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -74,6 +74,11 @@
     '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
index 00000000000..d71de3ed2f9
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst
@@ -0,0 +1,2 @@
+Fix stylesheet not working in Windows CHM htmlhelp docs.
+Contributed by C.A.M. Gerlach.



More information about the Python-checkins mailing list