Skip to content

Commit aff9448

Browse files
committed
Build docs using sphinx-build directly instead of make.
1 parent 4dc1348 commit aff9448

File tree

4 files changed

+4
-60
lines changed

4 files changed

+4
-60
lines changed

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 36 deletions
This file was deleted.

run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function typing {
7979

8080

8181
function docs {
82-
make -C docs html SPHINXOPTS="-W" "$@"
82+
sphinx-build -E -W docs docs/_build/html "$@"
8383
}
8484

8585

@@ -93,8 +93,8 @@ function typing-dev {
9393
}
9494

9595
function docs-dev {
96-
make -C docs clean
97-
entr-project-files -cdr "$SCRIPT" docs "$@"
96+
rm -r docs/_build/html
97+
entr-project-files -cdr sphinx-build -W docs docs/_build/html "$@"
9898
}
9999

100100
function serve-dev {

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ commands = mypy
3232

3333
[testenv:docs]
3434
dependency_groups = docs
35-
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
35+
commands = sphinx-build -E -W docs docs/_build/html

0 commit comments

Comments
 (0)