summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/conf.py5
-rw-r--r--Misc/NEWS.d/next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst2
2 files changed, 7 insertions, 0 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index 01243de..8fdff79 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -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
index 0000000..d71de3e
--- /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.