From 7299fcfe348cc2ad421c57a40c8307ffa01947b5 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Mon, 1 Aug 2022 22:56:17 -0500 Subject: [PATCH 1/2] gh-91207: Override stylesheet fingerprinting for Windows CHM HTML help --- Doc/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/conf.py b/Doc/conf.py index 01243de7805ddc..8fdff7965d920e 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 HTML tags. html_short_title = '%s Documentation' % release From bc1e68d644be764f0a04ceb961fd5dd64c60ac76 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" <CAM.Gerlach@Gerlach.CAM> Date: Mon, 1 Aug 2022 23:18:29 -0500 Subject: [PATCH 2/2] Add NEWS entry for Windows CHM htmlhelp fix --- .../Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst 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 00000000000000..d71de3ed2f9a55 --- /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.