Skip to content

Commit

Permalink
Add support to run other commands, like linkcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Aug 8, 2024
1 parent b3a00e2 commit 9a54803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def docs(session: nox.Session) -> None:

session.install(".[docs]")

for cmd in ["html", "doctest"]:
for cmd in (
[session.posargs[0]] if session.posargs else ["html", "doctest"]
):
session.run(
# fmt: off
"python", "-m", "sphinx",
Expand Down

0 comments on commit 9a54803

Please sign in to comment.