Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed Sep 19, 2019
1 parent 32a47e7 commit 7b668d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,13 @@ def setup(app):
check_call(['npm', 'run', 'build'], cwd=cwd)

def add_scripts(app):
app.add_js_file("https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js")
for fname in ["helper.js", "embed-bundle.js"]:
if not os.path.exists(os.path.join(here, "_static", fname)):
from sphinx.util import logging

logger = logging.getLogger(__name__)
logger.warn("missing javascript file: %s" % fname)
app.add_javascript(fname)
app.add_js_file(fname)

app.connect("builder-inited", add_scripts)

0 comments on commit 7b668d6

Please sign in to comment.