comparison docs/conf.py @ 15:b78a5ba760b1

Update README, add new sample image
author Vimalkumar Velayudhan <vimal@biotechcoder.com>
date Thu, 27 Aug 2015 12:52:48 +0100
parents 628f82e72d72
children
comparison
equal deleted inserted replaced
14:628f82e72d72 15:b78a5ba760b1
13 # All configuration values have a default; values that are commented out 13 # All configuration values have a default; values that are commented out
14 # serve to show the default. 14 # serve to show the default.
15 15
16 import sys 16 import sys
17 import os 17 import os
18 # To get the docs to build on readthedocs.org
19 from mock import Mock as MagicMock
20
21 class Mock(MagicMock):
22 @classmethod
23 def __getattr__(cls, name):
24 return Mock()
25
26 MOCK_MODULES = ['matplotlib']
27 sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
28
18 29
19 # If extensions (or modules to document with autodoc) are in another 30 # If extensions (or modules to document with autodoc) are in another
20 # directory, add these directories to sys.path here. If the directory is 31 # directory, add these directories to sys.path here. If the directory is
21 # relative to the documentation root, use os.path.abspath to make it 32 # relative to the documentation root, use os.path.abspath to make it
22 # absolute, like shown here. 33 # absolute, like shown here.
38 # If your documentation needs a minimal Sphinx version, state it here. 49 # If your documentation needs a minimal Sphinx version, state it here.
39 #needs_sphinx = '1.0' 50 #needs_sphinx = '1.0'
40 51
41 # Add any Sphinx extension module names here, as strings. They can be 52 # Add any Sphinx extension module names here, as strings. They can be
42 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 53 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
43 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] 54 extensions = ['sphinx.ext.viewcode']
44 55
45 # Add any paths that contain templates here, relative to this directory. 56 # Add any paths that contain templates here, relative to this directory.
46 templates_path = ['_templates'] 57 templates_path = ['_templates']
47 58
48 # The suffix of source filenames. 59 # The suffix of source filenames.