-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
86 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Workflow for building sphinx documentation remotely | ||
# and deploying the static HTML to a GitHub Pages site. | ||
# Note this approach does not require the static HTML | ||
# files to be stored/pushed/committed to an alternate | ||
# pages branch or anything like that. It uses GitHub | ||
# Action artifacts... | ||
name: Build and Deploy Sphinx Docs to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
release: | ||
types: | ||
- published | ||
pull_request: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
## These help to install krank remotely | ||
## So it's importable in conf.py, but I | ||
## think this is solved with a relative | ||
## import now in conf.py. | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Install package | ||
# run: python -m pip install . | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: sphinx-notes/pages@v3 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This is redundant with dev dependencies in pyproject.toml. | ||
# It is used by the sphinx-notes/pages@v3 GitHub Action used | ||
# to build the documentation remotely. It installs sphinx | ||
# automatically, but need to add additional requirements | ||
# that are installed during documentation building. | ||
# | ||
# There's a way to customize that GitHub action so maybe this | ||
# could be avoided, but okay. | ||
|
||
pydata-sphinx-theme |
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