mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Use the Sphinx doctest builder
This allows us to test our documentation snippets using the standard "doctest" utility.
This commit is contained in:
parent
09f5357892
commit
235fa7199d
2 changed files with 4 additions and 2 deletions
|
|
@ -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',
|
||||
]
|
||||
|
|
|
|||
5
tox.ini
5
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue