mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Don't require sphinx spelling to be installed, for readthedocs benefit
This commit is contained in:
parent
ac466747a7
commit
eb656bd97f
1 changed files with 8 additions and 1 deletions
|
|
@ -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']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue