[tox]
minversion = 1.6.0
-envlist = pep8
+envlist = docs,pep8
skipsdist = true
+[testenv:docs]
+deps = sphinx
+commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+
[testenv:pep8]
deps = flake8
commands = flake8
statistics = True
max-line-length = 100
verbose = 1
-exclude = .git,__pycache__,.vagrant
+exclude = docs/conf.py,.git,__pycache__,.vagrant