summaryrefslogtreecommitdiff
path: root/docs/source/conf.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-06-09 13:57:07 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-06-09 13:57:07 +0200
commit05da582675c89ab20998e1a9505bf3c220e296b8 (patch)
treede91f6ac74e8bab182e5f54a4b9d8b5b0a58991d /docs/source/conf.py
parentc7a5e3290527c372aa203c18df5f054409e8a60c (diff)
update doc
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index d58f160..42e2b79 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -25,7 +25,8 @@ except ImportError:
## check whether in the source directory...
#
-sys.path.insert(0, os.path.abspath("../.."))
+
+#!!! This should be commented when executing sphinx-gallery
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
@@ -37,7 +38,10 @@ 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
+sys.path.insert(0, os.path.abspath("../.."))
+
# -- General configuration ------------------------------------------------