diff --git a/Emscripten-build-instructions.md b/Emscripten-build-instructions.md index 3bd1208c5..7bf9fa849 100644 --- a/Emscripten-build-instructions.md +++ b/Emscripten-build-instructions.md @@ -334,13 +334,13 @@ emcmake cmake \ emmake make -j $(nproc --all) install ``` -To build Jupyter Lite website with this kernel locally that you can use for testing execute the following +To build and test Jupyter Lite with this kernel locally you can execute the following ```bash cd ../.. micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge micromamba activate xeus-lite-host -jupyter lite build --XeusAddon.prefix=$PREFIX \ +jupyter lite serve --XeusAddon.prefix=$PREFIX \ --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb \ --contents xeus-cpp/notebooks/smallpt.ipynb \ --contents xeus-cpp/notebooks/images/marie.png \ @@ -348,9 +348,3 @@ jupyter lite build --XeusAddon.prefix=$PREFIX \ --XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \ --XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" ``` - -Once the Jupyter Lite site has built you can test the website locally by executing - -```bash -jupyter lite serve --XeusAddon.prefix=$PREFIX -``` diff --git a/docs/Emscripten-build-instructions.rst b/docs/Emscripten-build-instructions.rst index a3ffa3a71..385988631 100644 --- a/docs/Emscripten-build-instructions.rst +++ b/docs/Emscripten-build-instructions.rst @@ -355,25 +355,17 @@ build folder, you can build the wasm version of xeus-cpp by executing .. emmake make -j $(nproc --all) install -To build Jupyter Lite website with this kernel locally that you can use -for testing execute the following +To build and test Jupyter Lite with this kernel locally you can execute the following .. code:: bash cd ../.. micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge micromamba activate xeus-lite-host - jupyter lite build --XeusAddon.prefix=$PREFIX \ + jupyter lite serve --XeusAddon.prefix=$PREFIX \ --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb \ --contents xeus-cpp/notebooks/smallpt.ipynb \ --contents xeus-cpp/notebooks/images/marie.png \ --contents xeus-cpp/notebooks/audio/audio.wav \ --XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \ --XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" - -Once the Jupyter Lite site has built you can test the website locally by -executing - -.. code:: bash - - jupyter lite serve --XeusAddon.prefix=$PREFIX