mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[doc] support building with spell check
This commit is contained in:
16
doc/conf.py
16
doc/conf.py
@@ -36,6 +36,22 @@ rst_prolog = """
|
||||
extensions = [
|
||||
]
|
||||
|
||||
try:
|
||||
from sphinxcontrib import spelling
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
del spelling
|
||||
extensions += ['sphinxcontrib.spelling']
|
||||
|
||||
import sys, os
|
||||
sys.path.append(os.path.dirname(__file__))
|
||||
spelling_filters = [
|
||||
'lgspell.OptionFilter', 'lgspell.PackageFilter', 'lgspell.PathFilter',
|
||||
'lgspell.CryptoAddressFilter'
|
||||
]
|
||||
spelling_word_list_filename = [os.path.join(os.path.dirname(__file__), 'words.txt')]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
# templates_path = ['_templates']
|
||||
|
||||
|
Reference in New Issue
Block a user