summaryrefslogtreecommitdiff
path: root/docs/internals
diff options
context:
space:
mode:
authorSzczepan Cieślik <szczepan.cieslik@gmail.com>2014-02-22 18:46:31 +0100
committerTim Graham <timograham@gmail.com>2014-03-07 09:29:23 -0500
commita0f252520291924f8fb7cb0d85f1680294508560 (patch)
treeb96dcaf239a80e3d0869381c36b080b609ee7d11 /docs/internals
parent8f9c3d05650cd418c57f2ded49ed1acbb5c05e77 (diff)
Fixed #22141 -- Added a spelling checker for documentation.
Diffstat (limited to 'docs/internals')
-rw-r--r--docs/internals/contributing/writing-documentation.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/internals/contributing/writing-documentation.txt b/docs/internals/contributing/writing-documentation.txt
index 94a9ae3cb4..2ceef3d05d 100644
--- a/docs/internals/contributing/writing-documentation.txt
+++ b/docs/internals/contributing/writing-documentation.txt
@@ -348,3 +348,27 @@ look better:
(that's a tilde) to get just the "last bit" of that path. So
``:class:`~django.contrib.contenttypes.models.ContentType``` will just
display a link with the title "ContentType".
+
+Spelling check
+--------------
+
+Before you commit your docs, it's a good idea to run the spelling checker.
+You'll need to install a couple packages first:
+
+* `pyenchant <https://pypi.python.org/pypi/pyenchant/>`_ (which requires
+ `enchant <http://www.abisource.com/projects/enchant/>`_)
+
+* `sphinxcontrib-spelling
+ <https://pypi.python.org/pypi/sphinxcontrib-spelling/>`_
+
+Then from the ``docs`` directory, run ``make spelling``. Wrong words (if any)
+along with the file and line number where they occur will be saved to
+``_build/spelling/output.txt``.
+
+If you encounter false-positives (error output that actually is correct), do
+one of the following:
+
+* Surround inline code or brand/technology names with grave accents (`).
+* Find synonyms that the spell checker recognizes.
+* If, and only if, you are sure the word you are using is correct - add it
+ to ``docs/spelling_wordlist`` (please keep the list in alphabetical order).