diff options
Diffstat (limited to 'doc/conf.py')
-rw-r--r-- | doc/conf.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/conf.py b/doc/conf.py index ec845bec8..5826fefa6 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -47,9 +47,9 @@ 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/searchtools.js', '_static/sphinx_highlight.js', - '_static/underscore.js', '_static/basic.css', + '_static/basic.css', '_static/language_data.js', 'search.html', '_static/websupport.js'] epub_fix_images = False @@ -188,6 +188,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__) |