8000 DOC: add cache-buster query string to css path · matplotlib/matplotlib@d29cb4d · GitHub
[go: up one dir, main page]

Skip to content

Commit d29cb4d

Browse files
committed
DOC: add cache-buster query string to css path
This is to make sure when we re-build the docs users get the new css rather than using a cached version. The query string is enough to make (most) browsers and cloudflare treat the get request as a new file.
1 parent 1b2aa23 commit d29cb4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def _check_dependencies():
229229
# must exist either in Sphinx' static/ path, or in one of the custom paths
230230
# given in html_static_path.
231231
#html_style = 'matplotlib.css'
232-
html_style = 'mpl.css'
232+
html_style = f'mpl.css?{SHA}'
233233

234234
# The name for this set of Sphinx documents. If None, it defaults to
235235
# "<project> v<release> documentation".

0 commit comments

Comments
 (0)
0