X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sphinx%2Fconf.py;h=5949bc3e956f94294cb74f2f94c3a18d050f4142;hb=8220bd73ec41a1ca71a22e49f745104a02af1636;hp=c4570b3a71b94b9d4e0932c439ab67dad716a89d;hpb=7f53ce3fa9476ae6aee60b8dcce7694dbd667e6a;p=neurodebian.git 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'