Skip to content

Commit

Permalink
Trying to add js again
Browse files Browse the repository at this point in the history
This one follows this suggestion:
readthedocs/sphinx_rtd_theme#788 (comment)
  • Loading branch information
raphaeltimbo committed Jun 13, 2021
1 parent c139c88 commit 0678943
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@
nbsphinx_execute = os.environ["NBSPHINX_EXECUTE"]
except KeyError:
nbsphinx_execute = "always"
html_js_files = []
nbsphinx_prolog = r"""
.. raw:: html
<script src='http://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js'></script>
<script>require=requirejs;</script>
"""
html_theme = "bootstrap"
htlm_theme_path = sphinx_bootstrap_theme.get_html_theme_path()

Expand Down Expand Up @@ -282,6 +291,3 @@
# -- Extension configuration -------------------------------------------------
def setup(app):
app.add_css_file("style.css")
app.add_js_file(
"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"
)

0 comments on commit 0678943

Please sign in to comment.