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
9696* #11278: autodoc: Fix rendering of :class: `functools.singledispatchmethod `
9797 combined with :func: `@classmethod <classmethod> `.
9898 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.
99101
100102Testing
101103-------
Original file line number Diff line number Diff line change @@ -1052,7 +1052,9 @@ def css_tag(css: _CascadingStyleSheet) -> str:
10521052 if value is not None ]
10531053 uri = pathto (os .fspath (css .filename ), resource = True )
10541054 # 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' }:
10561058 if checksum := _file_checksum (outdir , css .filename ):
10571059 uri += f'?v={ checksum } '
10581060 return f'<link { " " .join (sorted (attrs ))} href="{ uri } " />'
You can’t perform that action at this time.
0 commit comments