Fixed #22141 -- Added a spelling checker for documentation.

This commit is contained in:
Szczepan Cieślik 2014-02-22 18:46:31 +01:00 committed by Tim Graham
parent 8f9c3d0565
commit a0f2525202
4 changed files with 770 additions and 0 deletions

View file

@ -33,6 +33,17 @@ needs_sphinx = '1.0'
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ["djangodocs", "sphinx.ext.intersphinx"]
# Spelling check needs an additional module that is not installed by default.
# Add it only if spelling check is requested so docs can be generated without it.
if 'spelling' in sys.argv:
extensions.append("sphinxcontrib.spelling")
# Spelling language.
spelling_lang = 'en_US'
# Location of word list.
spelling_word_list_filename = 'spelling_wordlist'
# Add any paths that contain templates here, relative to this directory.
# templates_path = []