diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2016-12-02 15:33:30 +0100 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2016-12-02 15:33:30 +0100 |
commit | 7609f9e6a4103e13beb294873f4dac562b1d45e1 (patch) | |
tree | a7776b0eee3ce73609fb86cf3cc6fca8986353d5 /docs/source/conf.py | |
parent | fd6df63f0775ba869f0dff839d5ff0713cdb89dc (diff) |
working doc with gallery
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'} |