Skip to content

Commit

Permalink
feat: JupyterLite integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Aug 30, 2024
1 parent d78d9d9 commit 034cc19
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ jobs:
bundle install
- name: Build website
run: bundle exec jekyll build
- name: Build the JupyterLite site
run: |
rm -rf `find . -type d -name .pytest_cache`
rm -rf `find . -type d -name .ruff_cache`
rm -rf `find . -type d -name .doctrees`
mkdir content
mkdir _site/jupyter-lite
cp -R ch*/*.ipynb content
jupyter lite build --contents content --output-dir _site/jupyter-lite
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,5 @@ session04/greetings/scripts/
Gemfile.lock
.env/
polynomials.svg
content/
.jupyterlite.doit.db
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ exclude:
- "*/*.v2.ipynb"
- "combined_files"
- "combined.ipynb"
- jupyter-lite

keep_files:
- jupyter-lite
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ pycodestyle
pylint
webcolors
ruff
jupyterlite-core==0.4.0
jupyterlab~=4.2.4
notebook~=7.2.1
jupyterlite-pyodide-kernel==0.4.1

0 comments on commit 034cc19

Please sign in to comment.