Add checks for spelling

This commit is contained in:
Carol Willing
2016-08-18 04:47:21 -07:00
parent 75cb487ab3
commit 7b80b95a49
4 changed files with 235 additions and 3 deletions

View File

@@ -38,6 +38,14 @@ extensions = [
'sphinx.ext.napoleon',
]
# Spelling
try:
import sphinxcontrib.spelling
except ImportError:
pass
else:
extensions.append("sphinxcontrib.spelling")
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -391,3 +399,6 @@ else:
from subprocess import check_call as sh
sh(['make', 'rest-api'], cwd=docs)
# otherwise, readthedocs.org uses their theme by default, so no need to specify it
# Spell checking using sphinxcontrib-spelling
spelling_word_list_filename='spelling_wordlist.txt'