File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,15 @@ def setup(app):
50
50
if app .config .html4_writer :
51
51
logger .warning ("'html4_writer' is deprecated with sphinx_rtd_theme" )
52
52
53
+ # Since Sphinx 6, jquery isn't bundled anymore and we need to ensure that
54
+ # the sphinxcontrib-jquery extension is enabled.
55
+ # See: https://dev.readthedocs.io/en/latest/design/sphinx-jquery.html
56
+ if sphinx_version >= (6 , 0 , 0 ):
57
+ # Documentation of Sphinx guarantees that an extension is added and
58
+ # enabled at most once.
59
+ # See: https://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.setup_extension
60
+ app .setup_extension ("sphinxcontrib.jquery" )
61
+
53
62
# Register the theme that can be referenced without adding a theme path
54
63
app .add_html_theme ('sphinx_rtd_theme' , path .abspath (path .dirname (__file__ )))
55
64
You can’t perform that action at this time.
0 commit comments