Skip to content

Commit abb94d5

Browse files
committed
docs: rework CI a bit
1 parent 3d5218d commit abb94d5

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -704,14 +704,11 @@ jobs:
704704
- name: Install Doxygen
705705
run: sudo apt-get install -y doxygen librsvg2-bin # Changed to rsvg-convert in 20.04
706706

707-
- name: Install docs & setup requirements
708-
run: python3 -m pip install -r docs/requirements.txt
709-
710707
- name: Build docs
711-
run: python3 -m sphinx -W -b html docs docs/.build
708+
run: pipx run nox -s docs
712709

713710
- name: Make SDist
714-
run: python3 setup.py sdist
711+
run: pipx run nox -s build
715712

716713
- run: git status --ignored
717714

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ def docs(session: nox.Session) -> None:
5757
session.chdir("docs")
5858

5959
if "pdf" in session.posargs:
60-
session.run("sphinx-build", "-M", "latexpdf", ".", "_build")
60+
session.run("sphinx-build", "-b", "latexpdf", ".", "_build")
6161
return
6262

63-
session.run("sphinx-build", "-M", "html", ".", "_build")
63+
session.run("sphinx-build", "-b", "html", ".", "_build")
6464

6565
if "serve" in session.posargs:
6666
session.log("Launching docs at http://localhost:8000/ - use Ctrl-C to quit")

0 commit comments

Comments
 (0)