Skip to content

Commit

Permalink
fix: change myst-nb settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed May 31, 2022
1 parent e703076 commit e6b2452
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mudkip/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def create_sphinx_application(self):
extensions = conf.setdefault("extensions", [])

extensions.append("myst_nb")
conf.setdefault("jupyter_execute_notebooks", "force")
conf.setdefault("execution_allow_errors", True)
conf.setdefault("nb_execution_mode", "force")
conf.setdefault("nb_execution_allow_errors", True)

extensions.append("sphinx.ext.autodoc")
conf.setdefault("autodoc_member_order", "bysource")
Expand Down Expand Up @@ -293,7 +293,7 @@ def build(self, *, check=False, skip_broken_links=False, update_gh_pages=False):
os.makedirs(self.sphinx.outdir, exist_ok=True)

with self.sphinx_warning_is_error():
with self.sphinx_config(execution_allow_errors=False):
with self.sphinx_config(nb_execution_allow_errors=False):
self.sphinx.build()

if not skip_broken_links:
Expand Down Expand Up @@ -348,7 +348,7 @@ def develop(
dirs.append(self.config.project_dir)

with ExitStack() as stack:
stack.enter_context(self.sphinx_config(jupyter_execute_notebooks="auto"))
stack.enter_context(self.sphinx_config(nb_execution_mode="auto"))

notebook_url = None
if notebook:
Expand Down

0 comments on commit e6b2452

Please sign in to comment.