From 581ed9ff6b6784dd030944dd341e5a43111f4c61 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbarton@users.noreply.github.com> Date: Tue, 27 May 2025 13:01:41 +0100 Subject: [PATCH] Add smallpt example to deployment --- .github/workflows/deploy-pages.yml | 2 +- Emscripten-build-instructions.md | 2 +- docs/Emscripten-build-instructions.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 88e0145e6..c4aecd0fd 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -241,7 +241,7 @@ jobs: micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge micromamba activate xeus-lite-host python -m pip install jupyterlite-xeus jupyterlite-core jupyterlab notebook libarchive-c - jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} --contents notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav --output-dir dist + jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} --contents notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/smallpt.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav --output-dir dist - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/Emscripten-build-instructions.md b/Emscripten-build-instructions.md index 9f9d49992..96192d80b 100644 --- a/Emscripten-build-instructions.md +++ b/Emscripten-build-instructions.md @@ -319,7 +319,7 @@ cd ../.. micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge micromamba activate xeus-lite-host python -m pip install jupyterlite-xeus jupyter_server -jupyter lite build --XeusAddon.prefix=$PREFIX --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb +jupyter lite build --XeusAddon.prefix=$PREFIX --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/smallpt.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav ``` Once the Jupyter Lite site has built you can test the website locally by executing diff --git a/docs/Emscripten-build-instructions.rst b/docs/Emscripten-build-instructions.rst index 0c39fa628..9cdf8d49d 100644 --- a/docs/Emscripten-build-instructions.rst +++ b/docs/Emscripten-build-instructions.rst @@ -344,7 +344,7 @@ for testing execute the following micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge micromamba activate xeus-lite-host python -m pip install jupyterlite-xeus jupyter_server - jupyter lite build --XeusAddon.prefix=$PREFIX --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb + jupyter lite build --XeusAddon.prefix=$PREFIX --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/smallpt.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav Once the Jupyter Lite site has built you can test the website locally by executing