Use the Sphinx doctest builder

This allows us to test our documentation snippets using the standard
"doctest" utility.
This commit is contained in:
Donald Stufft 2013-08-11 17:47:17 -04:00
parent 09f5357892
commit 235fa7199d
2 changed files with 4 additions and 2 deletions

View file

@ -25,6 +25,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
]

View file

@ -8,8 +8,9 @@ commands = py.test --cov=cryptography/ --cov=tests/
[testenv:docs]
deps = sphinx
basepython = python2.7
changedir = docs
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
[testenv:pep8]
deps = flake8