From: Yaroslav Halchenko Date: Tue, 30 Apr 2013 16:56:24 +0000 (-0400) Subject: ENH: monkey patch regexp for english words -- we need to allow searching package... X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8220bd73ec41a1ca71a22e49f745104a02af1636;p=neurodebian.git ENH: monkey patch regexp for english words -- we need to allow searching package names --- diff --git a/sphinx/conf.py b/sphinx/conf.py index c4570b3..5949bc3 100644 --- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -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'