From 7c5f13f391ad9112bb238f2bbccca749f4b7923d Mon Sep 17 00:00:00 2001 From: CAM Gerlach Date: Tue, 2 Aug 2022 14:04:12 -0500 Subject: gh-91207: Override stylesheet fingerprinting when building for HTML Help (GH-95556) --- Doc/conf.py | 5 +++++ .../next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2022-08-01-23-17-04.gh-issue-91207._P8i0B.rst 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 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. -- cgit v0.12