Skip to content

Commit

Permalink
Add rule to tox.ini to build sphinx docs
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Jan 3, 2025
1 parent 8ba9439 commit 7f8bc8c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,23 @@ commands =
-coverage combine --append
coverage xml --include="./src/*" --omit="*/admin.py,*/test*,*/migrations/*"

[testenv:docs]
description = Build the Sphinx documentation
deps =
-r requirements/dev.txt
-r requirements-django42.txt

package = editable
setenv =
PYTHONPATH = {toxinidir}/python:{toxinidir}/tests
DJANGO_SETTINGS_MODULE = argus.site.settings.dev
LC_ALL=C.UTF-8
LANG=C.UTF-8
VIRTUALENV_PIP=23.1.0
commands_pre =
commands =
sphinx-build -M html docs/ docs/_build/

[testenv]
passenv = DATABASE_URL

Expand Down

0 comments on commit 7f8bc8c

Please sign in to comment.