Skip to content

Commit b07f20c

Browse files
committed
Add tox env to build the docs.
1 parent 6f93a1d commit b07f20c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ max-line-length = 88
1212
envlist =
1313
linting
1414
py{39,310,311,312,313,py3}-pytest{74,80,81,82,83,main}
15+
docs
1516
minversion = 4.0
1617

1718
[testenv]
@@ -30,3 +31,10 @@ basepython = python3
3031
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
3132
deps = pre-commit>=1.11.0
3233
skip_install = True
34+
35+
[testenv:docs]
36+
basepython = python3
37+
skip_install = True
38+
deps = -r docs/requirements.txt
39+
commands =
40+
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html

0 commit comments

Comments
 (0)