move documentation to tox

This commit is contained in:
2022-04-18 01:48:36 +03:00
parent a2610504e5
commit c9ee470ee2
4 changed files with 39 additions and 18 deletions

19
tox.ini
View File

@ -27,6 +27,25 @@ commands =
bandit -c .bandit-test.yml -r "tests/{[tox]project_name}"
/bin/bash -c 'mypy --implicit-reexport --strict -p "{[tox]project_name}" --install-types --non-interactive || mypy --implicit-reexport --strict -p "{[tox]project_name}"'
[testenv:docs]
deps =
{[tox]dependencies}
-e .[docs]
changedir = src
setenv =
SPHINX_APIDOC_OPTIONS=members,no-undoc-members,show-inheritance
commands =
argparse-manpage --module ahriman.application.ahriman --function _parser --author "ahriman team" --project-name ahriman --author-email "" --url https://github.com/arcan1s/ahriman --output ../docs/ahriman.1
pydeps ahriman -o ../docs/ahriman-architecture.svg --no-config --no-show --cluster
sphinx-apidoc --force --private -o ../docs/source .
[testenv:docs-html]
deps =
{[tox]dependencies}
-e .[docs]
commands =
sphinx-build -b html -a -j auto docs/source docs/html
[testenv:tests]
deps =
{[tox]dependencies}