add scipy to docs dependencies #7
This file contains 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: | |
- update-docs | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Turn script into notebook | |
run: | | |
uv run --extra docs python -m ipykernel install --name daisy_env --user | |
uv run --extra docs jupytext --to notebook --execute ./docs/source/notebooks/tutorial.py --output ./docs/source/notebooks/tutorial.ipynb | |
- name: remove notebook scripts | |
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 |