diff --git a/doc/source/conf.py b/doc/source/conf.py index 5113e8e..257f4d6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -30,9 +30,17 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.viewcode', - 'oslosphinx' + 'oslosphinx', ] +# Optionally allow the use of sphinxcontrib.spelling to verify the +# spelling of the documents. +try: + import sphinxcontrib.spelling + extensions.append('sphinxcontrib.spelling') +except ImportError: + pass + todo_include_todos = True # Add any paths that contain templates here, relative to this directory. diff --git a/tox.ini b/tox.ini index aacefbe..f7d64c1 100644 --- a/tox.ini +++ b/tox.ini @@ -14,3 +14,10 @@ commands = {posargs} [testenv:docs] commands = python setup.py build_sphinx + +[testenv:spelling] +deps = + -r{toxinidir}/requirements.txt + sphinxcontrib-spelling + PyEnchant +commands = sphinx-build -b spelling doc/source doc/build/spelling