We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 384f4d3 commit e9ee9cdCopy full SHA for e9ee9cd
doc/source/conf.py
@@ -73,13 +73,18 @@
73
'sphinx.ext.ifconfig',
74
'sphinx.ext.linkcode',
75
'nbsphinx',
76
- 'sphinxcontrib.spelling'
77
]
78
79
exclude_patterns = ['**.ipynb_checkpoints']
80
81
-spelling_word_list_filename = ['spelling_wordlist.txt', 'names_wordlist.txt']
82
-spelling_ignore_pypi_package_names = True
+# Tries to import sphixcontrib.spelling - if not available pass
+try:
+ import sphinxcontrib.spelling
83
+ extensions.append('sphinxcontrib.spelling')
84
+ spelling_word_list_filename = ['spelling_wordlist.txt', 'names_wordlist.txt']
85
+ spelling_ignore_pypi_package_names = True
86
+except ModuleNotFoundError:
87
+ pass
88
89
with open("index.rst") as f:
90
index_rst_lines = f.readlines()
0 commit comments