forked from adang1345/PythonWindows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-chm.patch
More file actions
25 lines (21 loc) · 821 Bytes
/
fix-chm.patch
File metadata and controls
25 lines (21 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 6387e89858a481cda584dd251d50b7b34ec2fd94 Mon Sep 17 00:00:00 2001
From: "C.A.M. Gerlach" <CAM.Gerlach@Gerlach.CAM>
Date: Wed, 3 Aug 2022 13:33:34 -0500
Subject: [PATCH] gh-91207: Fix CSS issue building docs for Windows CHM help
---
Doc/conf.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Doc/conf.py b/Doc/conf.py
index bf0af6a663c8..50a9f3ef35cd 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -79,6 +79,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