Skip to content

Commit 661bbf1

Browse files
committed
BUG: Only run jupyter lite on RTD HTML build
To address: ``` translation:copy -- build:contents:copy:Hello3DWorld.ipynb . build:lite:patch:_build/html/_static/jupyter-lite.json TaskError - taskid:build:lite:patch:_build/html/_static/jupyter-lite.json PythonAction Error Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/itkwidgets/envs/latest/lib/python3.7/site-packages/doit/action.py", line 437, in execute returned_value = self.py_callable(*self.args, **kwargs) File "/home/docs/checkouts/readthedocs.org/user_builds/itkwidgets/envs/latest/lib/python3.7/site-packages/jupyterlite/addons/base.py", line 223, in merge_one_jupyterlite out_path.write_text(json.dumps(config, **JSON_FMT), **UTF8) File "/home/docs/.pyenv/versions/3.7.9/lib/python3.7/pathlib.py", line 1240, in write_text with self.open(mode='w', encoding=encoding, errors=errors) as f: File "/home/docs/.pyenv/versions/3.7.9/lib/python3.7/pathlib.py", line 1208, in open opener=self._opener) File "/home/docs/.pyenv/versions/3.7.9/lib/python3.7/pathlib.py", line 1063, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: '/home/docs/checkouts/readthedocs.org/user_builds/itkwidgets/checkouts/latest/docs/_output/_build/html/_static/jupyter-lite.json' ```
1 parent 64ad914 commit 661bbf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ def jupyterlite_build(app: Sphinx, error):
7676
def setup(app):
7777
# For local builds, run jupyter lite build manually
7878
# $ jupyter lite serve --config ./jupyterlite_config.json
79-
if RTD:
79+
if RTD and app.builder.format == "html":
8080
app.connect("config-inited", jupyterlite_build)

0 commit comments

Comments
 (0)