]> git.donarmstrong.com Git - neurodebian.git/blobdiff - sphinx/conf.py
ENH: monkey patch regexp for english words -- we need to allow searching package...
[neurodebian.git] / sphinx / conf.py
index c4570b3a71b94b9d4e0932c439ab67dad716a89d..5949bc3e956f94294cb74f2f94c3a18d050f4142 100644 (file)
@@ -75,6 +75,12 @@ version = ''
 # The full version, including alpha/beta/rc tags.
 release = ''
 
+# Monkey patch "English" language regular expression so we could
+# search for package names as well
+import re
+from sphinx.search.en import SearchEnglish
+SearchEnglish._word_re = re.compile(r'[-.\w]+(?u)')
+
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 language = 'en'