[Python-modules-commits] [sphinx-celery] 04/06: Adds sphinxcontrib-spelling

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Fri Aug 18 07:00:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

mans0954 pushed a commit to tag v1.2.0
in repository sphinx-celery.

commit 584c26f570c17f73f943a07c5e29c1413a84668d
Author: Ask Solem <ask at celeryproject.org>
Date:   Wed Apr 13 12:18:15 2016 -0700

    Adds sphinxcontrib-spelling
---
 requirements/default.txt |  1 +
 sphinx_celery/conf.py    | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/requirements/default.txt b/requirements/default.txt
index 4765b9b..cd418ba 100644
--- a/requirements/default.txt
+++ b/requirements/default.txt
@@ -1,2 +1,3 @@
 Sphinx>=1.4
 sphinxcontrib-cheeseshop
+sphinxcontrib-spelling
diff --git a/sphinx_celery/conf.py b/sphinx_celery/conf.py
index 32343a7..b7f8517 100644
--- a/sphinx_celery/conf.py
+++ b/sphinx_celery/conf.py
@@ -145,6 +145,8 @@ def build_config(
         extra_intersphinx_mapping={},
         include_intersphinx=frozenset(),
         exclude_intersphinx=frozenset(),
+        spelling_lang='en_US',
+        spelling_show_suggestions=True,
         **kwargs):
     add_paths(config_file, path_additions)
     if configure_django_settings or django_settings:
@@ -170,6 +172,10 @@ def build_config(
 
     version = '.'.join(map(str, package.VERSION[0:2]))
 
+    extensions = extensions + extra_extensions
+    if os.environ.get('SPELLCHECK'):
+        extensions.append('sphinxcontrib.spelling')
+
     conf = dict(
         extensions=extensions + extra_extensions,
 
@@ -302,5 +308,9 @@ def build_config(
 
         # The depth of the table of contents in toc.ncx.
         epub_tocdepth=3,
+
+        # -- spelling
+        spelling_lang=spelling_lang,
+        spelling_show_suggestions=spelling_show_suggestions,
     )
     return dict(conf, **kwargs)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx-celery.git



More information about the Python-modules-commits mailing list