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 @@ 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 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.