-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix version number of documentation - Add `-b linkcheck` to `make html` - Expand the "history" within the changelog - Add links to Swung and the Swung-Slack
- Loading branch information
Showing
3 changed files
with
44 additions
and
7 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: docs | |
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
# Triggers the workflow on push or pull request events but only for main | ||
push: | ||
branches: | ||
- main | ||
|
@@ -16,6 +16,8 @@ on: | |
jobs: | ||
docs: | ||
|
||
name: Deploy docs | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
|
@@ -25,7 +27,23 @@ jobs: | |
SHELLOPTS: 'errexit:pipefail' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
# Checks-out your repository under $GITHUB_WORKSPACE | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
# Need to fetch more than the last commit so that setuptools_scm can | ||
# create the correct version string. If the number of commits since | ||
# the last release is greater than this, the version will still be | ||
# wrong. Increase if necessary. | ||
fetch-depth: 100 | ||
# The GitHub token is preserved by default but this job doesn't need | ||
# to be able to push to GitHub. | ||
persist-credentials: false | ||
|
||
# Need the tags so that setuptools_scm can form a valid version number | ||
- name: Fetch git tags | ||
run: git fetch origin 'refs/tags/*:refs/tags/*' | ||
|
||
- name: Setup Headless Display | ||
run: | | ||
sudo apt-get install libgl1-mesa-glx | ||
|
@@ -44,9 +62,9 @@ jobs: | |
pip install -r requirements_dev.txt | ||
pip install -e . | ||
- name: Generate Sphinx Docs | ||
- name: Generate Docs & Check Links | ||
working-directory: docs/ | ||
run: make html | ||
run: make html -b linkcheck | ||
|
||
- name: Publish generated content to GitHub Pages | ||
uses: tsunematsu21/[email protected] | ||
|
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