diff options
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r-- | docs/source/conf.py | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index dddc4fe..f76c184 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -17,23 +17,23 @@ import os import re import sphinx_gallery -#try: -from unittest.mock import MagicMock -#except ImportError: -# from mock import MagicMock - -sys.path.insert(0, os.path.abspath("../..")) -#sys.setrecursionlimit(1500) - - - -class Mock(MagicMock): - @classmethod - def __getattr__(cls, name): - return Mock() - -MOCK_MODULES = [ 'emd','ot.lp.emd'] -sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) +##try: +#from unittest.mock import MagicMock +##except ImportError: +## from mock import MagicMock +# +#sys.path.insert(0, os.path.abspath("../..")) +##sys.setrecursionlimit(1500) +# +# +# +#class Mock(MagicMock): +# @classmethod +# def __getattr__(cls, name): +# return Mock() +# +#MOCK_MODULES = [ 'emd','ot.lp.emd'] +#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 relative to the @@ -58,7 +58,7 @@ extensions = [ 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', -# 'sphinx_gallery.gen_gallery', + 'sphinx_gallery.gen_gallery', ] # Add any paths that contain templates here, relative to this directory. @@ -324,6 +324,7 @@ intersphinx_mapping = {'https://docs.python.org/': None} sphinx_gallery_conf = { 'examples_dirs': '../../examples', 'gallery_dirs': 'auto_examples', + 'mod_example_dir': '../modules/generated/', 'reference_url': { 'numpy': 'http://docs.scipy.org/doc/numpy-1.9.1', 'scipy': 'http://docs.scipy.org/doc/scipy-0.17.0/reference'} |