diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..85411f3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,48 @@ +name: Build and Deploy + +on: + push: + branches: + - main + pull_request: + branches: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install the dependencies + run: | + python -m pip install -r requirements.txt + - name: Build the JupyterLite site + run: | + cp README.md content + jupyter lite build --contents content --output-dir dist + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./dist + + deploy: + needs: build + if: github.ref == 'refs/heads/main' + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt index 6ac4fd6..5fcf0e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,52 @@ -jupyter-book -jupytercards -jupyterquiz -matplotlib -numpy -sphinxcontrib.mermaid -sphinxcontrib.tikz +# Core modules (mandatory) +jupyterlite-core==0.3.0 +jupyterlab~=4.1.6 +notebook~=7.1.2 + + +# Python kernel (optional) +jupyterlite-pyodide-kernel==0.3.1 + +# JavaScript kernel (optional) +# jupyterlite-javascript-kernel==0.3.0 + +# Language support (optional) +# jupyterlab-language-pack-fr-FR +# jupyterlab-language-pack-zh-CN + +# P5 kernel (optional) +# jupyterlite-p5-kernel==0.1.0 + +# JupyterLab: Fasta file renderer (optional) +jupyterlab-fasta>=3.3.0,<4 +# JupyterLab: Geojson file renderer (optional) +jupyterlab-geojson>=3.4.0,<4 +# JupyterLab: guided tour (optional) +# TODO: re-enable after https://github.com/jupyterlab-contrib/jupyterlab-tour/issues/82 +# jupyterlab-tour +# JupyterLab: dark theme +jupyterlab-night +# JupyterLab: Miami nights theme (optional) +jupyterlab_miami_nights + +# Python: ipywidget library for Jupyter notebooks (optional) +ipywidgets>=8.1.1,<9 +# Python: ipyevents library for Jupyter notebooks (optional) +ipyevents>=2.0.1 +# Python: interative Matplotlib library for Jupyter notebooks (optional) +ipympl>=0.8.2 +# Python: ipycanvas library for Jupyter notebooks (optional) +ipycanvas>=0.9.1 +# Python: ipyleaflet library for Jupyter notebooks (optional) +ipyleaflet + +# Python: plotting libraries (optional) +# plotly>=5,<6 +# bqplot + +# qiskit>=1.0 +# qiskit-ibm-runtime #==0.23 +# pennylane>=0.36 +# cirq>=1.3 +# nbformat>=5.10 +# jsonschema>=4.21