minor #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install topo + docs dependencies | |
| run: | | |
| pip install .[docs] | |
| python -m ipykernel install --user --name python3 | |
| - name: Convert tutorial scripts to notebooks and execute | |
| run: | | |
| jupytext --to notebook --execute ./docs/source/notebooks/tutorial_full_volume.py --output ./docs/source/notebooks/tutorial_full_volume.ipynb | |
| jupytext --to notebook --execute ./docs/source/notebooks/tutorial_tiled_stitching.py --output ./docs/source/notebooks/tutorial_tiled_stitching.ipynb | |
| - name: Remove .py notebook sources (keep only .ipynb) | |
| run: rm ./docs/source/notebooks/*.py | |
| - name: Build and Commit | |
| uses: sphinx-notes/pages@v3 | |
| with: | |
| documentation_path: ./docs/source | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: gh-pages |