summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/conf.py b/doc/conf.py
index a721508de..58e8e6c27 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -47,8 +47,8 @@ epub_pre_files = [('index.xhtml', 'Welcome')]
epub_post_files = [('usage/installation.xhtml', 'Installing Sphinx'),
('develop.xhtml', 'Sphinx development')]
epub_exclude_files = ['_static/opensearch.xml', '_static/doctools.js',
- '_static/jquery.js', '_static/searchtools.js',
- '_static/underscore.js', '_static/basic.css',
+ '_static/searchtools.js',
+ '_static/basic.css',
'_static/language_data.js',
'search.html', '_static/websupport.js']
epub_fix_images = False
@@ -186,6 +186,13 @@ def setup(app):
app.add_object_type('event', 'event', 'pair: %s; event', parse_event,
doc_field_types=[fdesc])
+ # Load jQuery and patches 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)
+ app.add_js_file('https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.1/underscore-min.js', # NoQA
+ priority=100)
+ app.add_js_file('_sphinx_javascript_frameworks_compat.js', priority=105)
+
# workaround for RTD
from sphinx.util import logging
logger = logging.getLogger(__name__)