Replies: 3 comments 5 replies
-
In CI we're using Node 14.x so that might be the cause. You can also use |
Beta Was this translation helpful? Give feedback.
2 replies
-
My attempt at
(venv-3.11) ra@z:~/repos/idom-team/idom$ nox -s docs
nox > Running session docs
nox > Re-using existing virtual environment at .nox/docs.
nox > python -m pip install --upgrade pip
nox > python -m pip install -r ~/repos/idom-team/idom/requirements/build-docs.txt
nox > pip --version
pip 23.0 from ~/repos/idom-team/idom/.nox/docs/lib/python3.11/site-packages/pip (python 3.11)
nox > python -m pip install -e '.[all]'
nox > python scripts/live_docs.py --open-browser --watch=src/idom '--ignore=**/_auto/*' '--ignore=**/_static/custom.js' '--ignore=**/node_modules/*' '--ignore=**/package-lock.json' -a -E -b html docs/source docs/build
2023-02-05T10:49:31+0400 | DEBUG | IDOM is in debug mode
Traceback (most recent call last):
File "~/repos/idom-team/idom/scripts/live_docs.py", line 111, in <module>
main()
File "~/repos/idom-team/idom/scripts/live_docs.py", line 77, in main
builder = wrap_builder(
^^^^^^^^^^^^^
File "~/repos/idom-team/idom/scripts/live_docs.py", line 31, in wrap_builder
app = make_app()
^^^^^^^^^^
File "~/repos/idom-team/idom/docs/app.py", line 52, in make_app
configure(
File "~/repos/idom-team/idom/src/idom/backend/sanic.py", line 48, in configure
_setup_common_routes(api_bp, spa_bp, options)
File "~/repos/idom-team/idom/src/idom/backend/sanic.py", line 114, in _setup_common_routes
index_html = read_client_index_html(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/repos/idom-team/idom/src/idom/backend/_common.py", line 93, in read_client_index_html
.read_text()
^^^^^^^^^^^
File "/usr/lib/python3.11/pathlib.py", line 1058, in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/pathlib.py", line 1044, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '~/repos/idom-team/idom/src/idom/_client/index.html'
nox > Command python scripts/live_docs.py --open-browser --watch=src/idom '--ignore=**/_auto/*' '--ignore=**/_static/custom.js' '--ignore=**/node_modules/*' '--ignore=**/package-lock.json' -a -E -b html docs/source docs/build failed with exit code 1
nox > Session docs failed. ... so I copied _client from site-packages/idom (1.0.0a3) to src/idom (version 1.0.0-a3), and that worked. But I wonder what is the proper way? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Were you able to get this working? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm unable to compile the docs (no Docker). Would you have any suggestions? Running
pip install -r requirements.txt nvm use 8.5.0 && sphinx-build -v -W -b html docs/source docs/build
I get:
Beta Was this translation helpful? Give feedback.
All reactions