]> git.donarmstrong.com Git - neurodebian.git/commitdiff
ENH: monkey patch regexp for english words -- we need to allow searching package...
authorYaroslav Halchenko <debian@onerussian.com>
Tue, 30 Apr 2013 16:56:24 +0000 (12:56 -0400)
committerYaroslav Halchenko <debian@onerussian.com>
Tue, 30 Apr 2013 16:56:24 +0000 (12:56 -0400)
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'