mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #10574: Failed to search on sphinx-doc.org
Since 6.0, jQuery has not been loaded by default. It affects to the search feature of RtD. This loads jQuery again to make it available.
This commit is contained in:
parent
fcc238a21d
commit
a06c49105b
@ -178,6 +178,10 @@ def setup(app):
|
||||
app.add_object_type('event', 'event', 'pair: %s; event', parse_event,
|
||||
doc_field_types=[fdesc])
|
||||
|
||||
# Load jQuery to make readthedocs-doc-embed.js available (refs: #10574)
|
||||
app.add_js_file('https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js',
|
||||
priority=100)
|
||||
|
||||
# workaround for RTD
|
||||
from sphinx.util import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
Loading…
Reference in New Issue
Block a user