-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Move documentation building command to pyproject.toml
- Loading branch information
1 parent
ca5fed0
commit 5a03056
Showing
2 changed files
with
22 additions
and
13 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 |
---|---|---|
|
@@ -18,16 +18,17 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Sphinx build | ||
run: | | ||
make html SPHINXOPTS="-W" | ||
|
||
- name: Install hatch | ||
run: pip install hatch | ||
|
||
- name: Build documentation | ||
run: hatch run docs:build | ||
|
||
check_links: | ||
name: Check links | ||
|
@@ -39,17 +40,18 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Sphinx build | ||
# Set warnings to be treated as errors | ||
run: | | ||
make html SPHINXOPTS="-W" | ||
|
||
- name: Install hatch | ||
run: pip install hatch | ||
|
||
- name: Build documentation | ||
run: hatch run docs:build | ||
|
||
- name: Link Checker | ||
uses: lycheeverse/[email protected] | ||
with: | ||
|
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