File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ Bugs fixed
96
96
* #11278: autodoc: Fix rendering of :class: `functools.singledispatchmethod `
97
97
combined with :func: `@classmethod <classmethod> `.
98
98
Patch by Bénédikt Tran.
99
+ * #11894: Do not add checksums to css files if building using the htmlhelp builder.
100
+ Patch by mkay.
99
101
100
102
Testing
101
103
-------
Original file line number Diff line number Diff line change @@ -1052,7 +1052,9 @@ def css_tag(css: _CascadingStyleSheet) -> str:
1052
1052
if value is not None ]
1053
1053
uri = pathto (os .fspath (css .filename ), resource = True )
1054
1054
# the EPUB format does not allow the use of query components
1055
- if self .name != 'epub' :
1055
+ # the Windows help compiler requires that css links
1056
+ # don't have a query component
1057
+ if self .name not in {'epub' , 'htmlhelp' }:
1056
1058
if checksum := _file_checksum (outdir , css .filename ):
1057
1059
uri += f'?v={ checksum } '
1058
1060
return f'<link { " " .join (sorted (attrs ))} href="{ uri } " />'
You can’t perform that action at this time.
0 commit comments