X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=doc%2Fconf.py;h=5f8c9f1c8752d21e7dc28e8e890e5808c84a92ba;hp=c7013bece1df5bad288d6b1a9c6c7d73e9feac2b;hb=6682b4e686b7972883626c9b0f941ae4bf02dedb;hpb=040c3236afcf95bead0324a48c2e0b9cd7934993 diff --git a/doc/conf.py b/doc/conf.py index c7013bec..5f8c9f1c 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -12,7 +12,7 @@ master_doc = 'index' # General information about the project. project = u'notmuch' -copyright = u'2009-2017, Carl Worth and many others' +copyright = u'2009-2019, Carl Worth and many others' location = os.path.dirname(__file__) @@ -29,6 +29,11 @@ release = version # directories to ignore when looking for source files. exclude_patterns = ['_build'] +# If we don't have emacs, don't build the notmuch-emacs docs, as they need +# emacs to generate the docstring include files +if os.environ.get('HAVE_EMACS') != '1': + exclude_patterns.append('notmuch-emacs.rst') + # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx'