diff options
Diffstat (limited to 'docs/source')
-rw-r--r-- | docs/source/conf.py | 37 | ||||
-rw-r--r-- | docs/source/index.rst | 4 |
2 files changed, 21 insertions, 20 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'} diff --git a/docs/source/index.rst b/docs/source/index.rst index 07c4f9a..b8eabcb 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -10,11 +10,11 @@ Contents -------- .. toctree:: - :maxdepth: 2 + :maxdepth: 3 self all - auto_examples + auto_examples/index .. include:: readme.rst :start-line: 5 |