-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add link check workflow and fix broken links (#562)
* fix broken links * update make to use nitpicky mode for linkcheck * add github workflow for sphinx link checks * update sphinx linkcheck workflow * update installation step of workflow --------- Co-authored-by: Ryan Ly <[email protected]>
- Loading branch information
1 parent
a8df775
commit 6ce41fa
Showing
7 changed files
with
47 additions
and
11 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,34 @@ | ||
name: Check Sphinx external links and references | ||
on: | ||
pull_request: | ||
schedule: | ||
- cron: '0 5 * * *' # once per day at midnight ET | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-external-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel non-latest runs | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: 0 # tags are required for versioneer to determine the version | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install Sphinx dependencies and package | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements-doc.txt | ||
- name: Check Sphinx links and references | ||
run: sphinx-build -n -b linkcheck ./docs/format/source ./test_build |
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
hdmf-docutils | ||
pynwb | ||
matplotlib | ||
sphinx | ||
sphinx_rtd_theme | ||
matplotlib |