Skip to content

Commit

Permalink
Add underscore.js to the sphinx13 theme (#10588)
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jun 19, 2022
1 parent 0796f70 commit b26bf03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -9,6 +9,11 @@
*
*/

/**
* select a different prefix for underscore
*/
$u = _.noConflict();


/**
* small helper function to urldecode strings
Expand Down
4 changes: 3 additions & 1 deletion doc/conf.py
Expand Up @@ -181,7 +181,9 @@ def setup(app):
# 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('_sphinx_javascript_frameworks_compat.js', priority=200)
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
Expand Down

0 comments on commit b26bf03

Please sign in to comment.