Skip to content

Commit 05af45e

Browse files
committed
fix sphinx errors
1 parent 8191909 commit 05af45e

File tree

1 file changed

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

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
'sphinx.ext.napoleon',
3030
'sphinx.ext.todo',
3131
'nbsphinx',
32-
'jupyter_sphinx.embed_widgets',
32+
'jupyter_sphinx.execute',
3333
'nbsphinx_link',
3434
]
3535

@@ -197,12 +197,13 @@
197197
#
198198
nbsphinx_allow_errors = True # exception ipstruct.py ipython_genutils
199199

200+
from sphinx.util import logging
201+
logger = logging.getLogger(__name__)
200202

201203
def 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)

0 commit comments

Comments
 (0)