-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the documentation building (#2483)
* Simplify `docs/Makefile` * Fix pre-commit push branch target * Add doc-tests to GH-Actions * Remove `/plans/install/docs` Signed-off-by: Cristian Le <[email protected]>
- Loading branch information
Showing
8 changed files
with
67 additions
and
71 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,30 @@ | ||
name: test-docs | ||
run-name: Documentation tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
doc-test: | ||
name: Sphinx-${{ matrix.builder }} | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental || false }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
builder: [ html ] | ||
include: | ||
# Run default html builder with warnings as error | ||
- builder: html | ||
args: -W | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run sphinx builder ${{ matrix.builder }} | ||
run: | | ||
pip install hatch | ||
hatch run docs:${{ matrix.builder }} ${{ matrix.args }} |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: pre-commit | |
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
branches: [main] | ||
|
||
jobs: | ||
pre-commit: | ||
|
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,12 +1,12 @@ | ||
# Config for building https://tmt.readthedocs.io/ | ||
version: 2 | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3" | ||
# Override RTD's default build commands, install hatch & delegate | ||
# the rest to our Makefiles. | ||
commands: | ||
- cat docs/conf.py | ||
- pip install hatch | ||
- make BUILDDIR=$READTHEDOCS_OUTPUT docs | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3" |
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 was deleted.
Oops, something went wrong.
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