fix: #1631: add tox test support for documentation

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
This commit is contained in:
Harsha Narayana 2019-07-13 13:00:37 +05:30
parent 32eb8abb63
commit 4e50295bf0
No known key found for this signature in database
GPG Key ID: 8AF211CB60D4B28C
2 changed files with 18 additions and 1 deletions

View File

@ -25,6 +25,9 @@ help:
@echo "clean-docs" @echo "clean-docs"
@echo " Clean Sanic documentation" @echo " Clean Sanic documentation"
@echo "" @echo ""
@echo "docs-test"
@echo " Test Sanic Documentation for errors"
@echo ""
clean: clean:
@ -70,3 +73,6 @@ docs-clean:
docs: docs-clean docs: docs-clean
cd docs && make html cd docs && make html
docs-test: docs-clean
cd docs && make dummy

13
tox.ini
View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py36, py37, {py36,py37}-no-ext, lint, check, security envlist = py36, py37, {py36,py37}-no-ext, lint, check, security, docs
[testenv] [testenv]
usedevelop = True usedevelop = True
@ -55,3 +55,14 @@ deps =
commands = commands =
bandit --recursive sanic --skip B404,B101 --exclude sanic/reloader_helpers.py bandit --recursive sanic --skip B404,B101 --exclude sanic/reloader_helpers.py
[testenv:docs]
deps =
sphinx>=2.1.2
sphinx_rtd_theme>=0.4.3
recommonmark>=0.5.0
docutils
pygments
commands =
make docs-test