Skip to content

Commit

Permalink
build sphinx and upload instead of using sphinx action
Browse files Browse the repository at this point in the history
its unclear to me what the sphinx action is doing and why its not picking up the notebook
  • Loading branch information
pattonw committed Mar 10, 2025
1 parent d0bde11 commit 6393f62
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ jobs:
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
- name: Build
run: uv run --extra docs sphinx-build docs/source/ docs/build/html -b html
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
documentation_path: ./docs/source
- name: Push changes
uses: ad-m/github-push-action@master
name: html-docs
path: docs/build/html/

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}
artifact_name: html-docs

0 comments on commit 6393f62

Please sign in to comment.