X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fdocs%2Fsource%2Fconf.py;h=8b43c5ca3f9f1d019c49bf2ac3146186e14c828a;hb=44862764d27d29fbfb9ded12b1112abe104fb7e1;hp=76610b7d23d222626a9267b806c2a18faaaa8603;hpb=ae376c774ee8d8f45bae002261c425e1bc0a243a;p=notmuch diff --git a/bindings/python/docs/source/conf.py b/bindings/python/docs/source/conf.py index 76610b7d..8b43c5ca 100644 --- a/bindings/python/docs/source/conf.py +++ b/bindings/python/docs/source/conf.py @@ -13,22 +13,13 @@ import sys, os +from unittest.mock import Mock + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0,os.path.abspath('../..')) -class Mock(object): - def __init__(self, *args, **kwargs): - pass - - def __call__(self, *args, **kwargs): - return Mock() - - @classmethod - def __getattr__(self, name): - return Mock() if name not in ('__file__', '__path__') else '/dev/null' - MOCK_MODULES = [ 'ctypes', ] @@ -57,8 +48,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'cnotmuch' -copyright = u'2010, ' + __AUTHOR__ +project = u'notmuch' +copyright = u'2010-2012, ' + __AUTHOR__ # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -140,7 +131,7 @@ html_theme = 'default' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../html'] +html_static_path = [] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. @@ -215,4 +206,4 @@ latex_documents = [ # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'http://docs.python.org/': None} +intersphinx_mapping = {'https://docs.python.org/': None}