Skip to content

Commit 9ccc108

Browse files
authored
Avoid nbsphinx loading widgets in doc
Xref spatialaudio/nbsphinx#378
1 parent 0e4a4cd commit 9ccc108

File tree

1 file changed

+5
-1
lines changed
  • {{cookiecutter.github_project_name}}/docs/source

1 file changed

+5
-1
lines changed

{{cookiecutter.github_project_name}}/docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
'nbsphinx_link',
3434
]
3535

36+
# Set the nbsphinx JS path to empty to avoid showing twice of the widgets
37+
nbsphinx_requirejs_path = ""
38+
nbsphinx_widgets_path = ""
39+
3640
# Ensure our extension is available:
3741
import sys
3842
from os.path import dirname, join as pjoin
@@ -206,4 +210,4 @@ def add_scripts(app):
206210
if not os.path.exists(os.path.join(here, '_static', fname)):
207211
logger.warning('missing javascript file: %s' % fname)
208212
app.add_js_file(fname)
209-
app.connect('builder-inited', add_scripts)
213+
app.connect('builder-inited', add_scripts)

0 commit comments

Comments
 (0)