Skip to content

Curved-element meshing and Palace 3D photonics example #321

Curved-element meshing and Palace 3D photonics example

Curved-element meshing and Palace 3D photonics example #321

Workflow file for this run

name: Docs
on:
push:
branches: [main]
pull_request:
env:
PLOTLY_RENDERER: notebook_connected
jobs:
build:
name: Build Docs
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install UV
uses: astral-sh/setup-uv@v5
- name: Install Just
uses: taiki-e/install-action@just
- name: Install svgbob
run: cargo install svgbob_cli
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libglu1-mesa libosmesa6 xvfb
- name: Create environment
run: just dev
- name: Convert notebooks and build docs
run: |
for nb in nbs/*.ipynb; do
uv run --no-sync jupyter nbconvert --to markdown --embed-images "$nb" --output-dir docs/nbs
done
just docs
- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: site
pages:
name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4