Mercurial > repos > vimalkumarvelayudhan > riboplot
diff 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 |
line wrap: on
line diff
--- a/docs/conf.py Wed Aug 26 16:37:10 2015 +0100 +++ b/docs/conf.py Thu Aug 27 12:52:48 2015 +0100 @@ -15,6 +15,17 @@ import sys import os +# To get the docs to build on readthedocs.org +from mock import Mock as MagicMock + +class Mock(MagicMock): + @classmethod + def __getattr__(cls, name): + return Mock() + +MOCK_MODULES = ['matplotlib'] +sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) + # If extensions (or modules to document with autodoc) are in another # directory, add these directories to sys.path here. If the directory is @@ -40,7 +51,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] +extensions = ['sphinx.ext.viewcode'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']