Skip to content

Commit

Permalink
remove the jquery that is added by sphinx
Browse files Browse the repository at this point in the history
Closes #118
  • Loading branch information
basnijholt committed Oct 22, 2018
1 parent a9f6349 commit 7dc739b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,17 @@ def get_holoviews_js_css():
html_context = {'holoviews_js_files': js}


def remove_jquery(app):
# We need to remove the jquery file that is added by default
# because we already add it in the <head> tag.
if hasattr(app.builder, 'script_files')
app.builder.script_files = [
x for x in app.builder.script_files if 'jquery' not in x]

def setup(app):
for url in css:
app.add_stylesheet(url)

app.add_stylesheet('custom.css') # For the `live_info` widget
app.add_javascript("https://unpkg.com/@jupyter-widgets/html-manager@0.14.4/dist/embed-amd.js")
app.connect('builder-inited', remove_jquery)

0 comments on commit 7dc739b

Please sign in to comment.