File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
{{cookiecutter.github_project_name}}/docs/source Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 29
29
'sphinx.ext.napoleon' ,
30
30
'sphinx.ext.todo' ,
31
31
'nbsphinx' ,
32
- 'jupyter_sphinx.embed_widgets ' ,
32
+ 'jupyter_sphinx.execute ' ,
33
33
'nbsphinx_link' ,
34
34
]
35
35
197
197
#
198
198
nbsphinx_allow_errors = True # exception ipstruct.py ipython_genutils
199
199
200
+ from sphinx .util import logging
201
+ logger = logging .getLogger (__name__ )
200
202
201
203
def setup (app ):
202
- app .setup_extension ('jupyter_sphinx.embed_widgets' )
203
204
def add_scripts (app ):
204
205
for fname in ['helper.js' , 'embed-bundle.js' ]:
205
206
if not os .path .exists (os .path .join (here , '_static' , fname )):
206
- app . warn ('missing javascript file: %s' % fname )
207
- app .add_javascript (fname )
208
- app .connect ('builder-inited' , add_scripts )
207
+ logger . warning ('missing javascript file: %s' % fname )
208
+ app .add_js_file (fname )
209
+ app .connect ('builder-inited' , add_scripts )
You can’t perform that action at this time.
0 commit comments