mirror of
https://github.com/django/django.git
synced 2025-10-10 02:22:22 +00:00
Fixed #22141 -- Added a spelling checker for documentation.
This commit is contained in:
parent
8f9c3d0565
commit
a0f2525202
4 changed files with 770 additions and 0 deletions
11
docs/conf.py
11
docs/conf.py
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue