diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-16 14:51:55 -0800 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-16 14:51:55 -0800 |
commit | 25feab3a8c526665067d28a2b8a9f4697de1b8b0 (patch) | |
tree | a6dc9980ee1e047044e2722a9ffb410ed1224c68 | |
parent | ac466747a7e8d15d9136c394e7337f0432fc0541 (diff) | |
parent | eb656bd97fe5eaac3bb54e3c3c73cbceddcb87b8 (diff) | |
download | cryptography-25feab3a8c526665067d28a2b8a9f4697de1b8b0.tar.gz cryptography-25feab3a8c526665067d28a2b8a9f4697de1b8b0.tar.bz2 cryptography-25feab3a8c526665067d28a2b8a9f4697de1b8b0.zip |
Merge pull request #472 from alex/dont-require-spelling
Don't require sphinx spelling to be installed, for readthedocs benefit
-rw-r--r-- | docs/conf.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index a42dcb22..fbd6d57b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,6 +19,11 @@ try: except ImportError: sphinx_rtd_theme = None +try: + from sphinxcontrib import spelling +except ImportError: + spelling = None + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -38,9 +43,11 @@ extensions = [ 'sphinx.ext.intersphinx', 'sphinx.ext.viewcode', 'cryptography-docs', - 'sphinxcontrib.spelling', ] +if spelling is not None: + extensions.append('sphinxcontrib.spelling') + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] |