fix: #1631: add tox test support for documentation
Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
This commit is contained in:
parent
32eb8abb63
commit
4e50295bf0
6
Makefile
6
Makefile
|
@ -25,6 +25,9 @@ help:
|
|||
@echo "clean-docs"
|
||||
@echo " Clean Sanic documentation"
|
||||
@echo ""
|
||||
@echo "docs-test"
|
||||
@echo " Test Sanic Documentation for errors"
|
||||
@echo ""
|
||||
|
||||
|
||||
clean:
|
||||
|
@ -70,3 +73,6 @@ docs-clean:
|
|||
|
||||
docs: docs-clean
|
||||
cd docs && make html
|
||||
|
||||
docs-test: docs-clean
|
||||
cd docs && make dummy
|
||||
|
|
13
tox.ini
13
tox.ini
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = py36, py37, {py36,py37}-no-ext, lint, check, security
|
||||
envlist = py36, py37, {py36,py37}-no-ext, lint, check, security, docs
|
||||
|
||||
[testenv]
|
||||
usedevelop = True
|
||||
|
@ -55,3 +55,14 @@ deps =
|
|||
|
||||
commands =
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user