Skip to content

Commit

Permalink
Attempt to import sphixcontrib-spelling, if fails pass
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioRosado committed Jun 9, 2018
1 parent 384f4d3 commit e9ee9cd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,18 @@
'sphinx.ext.ifconfig',
'sphinx.ext.linkcode',
'nbsphinx',
'sphinxcontrib.spelling'
]

exclude_patterns = ['**.ipynb_checkpoints']

spelling_word_list_filename = ['spelling_wordlist.txt', 'names_wordlist.txt']
spelling_ignore_pypi_package_names = True
# Tries to import sphixcontrib.spelling - if not available pass
try:
import sphinxcontrib.spelling
extensions.append('sphinxcontrib.spelling')
spelling_word_list_filename = ['spelling_wordlist.txt', 'names_wordlist.txt']
spelling_ignore_pypi_package_names = True
except ModuleNotFoundError:
pass

with open("index.rst") as f:
index_rst_lines = f.readlines()
Expand Down

0 comments on commit e9ee9cd

Please sign in to comment.