Run only html by default but allow adjustments

This commit is contained in:
Šarūnas Nejus 2025-09-04 12:52:37 +01:00
parent 4cb667cbb3
commit b7e5357914
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435
2 changed files with 3 additions and 2 deletions

View file

@ -143,4 +143,4 @@ jobs:
run: poe lint-docs
- name: Build docs
run: poe docs -e 'SPHINXOPTS=--fail-on-warning --keep-going'
run: poe docs -- -e 'SPHINXOPTS=--fail-on-warning --keep-going'

View file

@ -196,7 +196,8 @@ cmd = "mypy"
[tool.poe.tasks.docs]
help = "Build documentation"
cmd = "make -C docs clean html"
args = [{ name = "COMMANDS", positional = true, multiple = true, default = "html" }]
cmd = "make -C docs $COMMANDS"
[tool.poe.tasks.format]
help = "Format the codebase"