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 2929 'sphinx.ext.napoleon' ,
3030 'sphinx.ext.todo' ,
3131 'nbsphinx' ,
32- 'jupyter_sphinx.embed_widgets ' ,
32+ 'jupyter_sphinx.execute ' ,
3333 'nbsphinx_link' ,
3434]
3535
197197#
198198nbsphinx_allow_errors = True # exception ipstruct.py ipython_genutils
199199
200+ from sphinx .util import logging
201+ logger = logging .getLogger (__name__ )
200202
201203def setup (app ):
202- app .setup_extension ('jupyter_sphinx.embed_widgets' )
203204 def add_scripts (app ):
204205 for fname in ['helper.js' , 'embed-bundle.js' ]:
205206 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