From 7c1f76808cb3dbcb2f1c0954ee76a597ea09b768 Mon Sep 17 00:00:00 2001 From: Calum Chamberlain Date: Wed, 16 Aug 2017 17:21:28 +1200 Subject: [PATCH 1/5] Try to debug missing docs --- eqcorrscan/doc/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/eqcorrscan/doc/conf.py b/eqcorrscan/doc/conf.py index caed5fca8..22c2d71a4 100644 --- a/eqcorrscan/doc/conf.py +++ b/eqcorrscan/doc/conf.py @@ -32,7 +32,6 @@ # 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('../lib')) sys.path.insert(0, os.path.abspath('../core')) sys.path.insert(0, os.path.abspath('../utils')) From c3d8fa87f5c329c562b2103cfc9379251ed7b151 Mon Sep 17 00:00:00 2001 From: Calum Chamberlain Date: Thu, 17 Aug 2017 10:37:06 +1200 Subject: [PATCH 2/5] Update conf.py --- eqcorrscan/doc/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/eqcorrscan/doc/conf.py b/eqcorrscan/doc/conf.py index 22c2d71a4..473a4da6a 100644 --- a/eqcorrscan/doc/conf.py +++ b/eqcorrscan/doc/conf.py @@ -17,7 +17,6 @@ import shlex sys.path.insert(0, os.path.abspath('../..')) import matplotlib -import eqcorrscan READ_THE_DOCS = os.environ.get('READTHEDOCS', None) == 'True' if not READ_THE_DOCS: From 907f03b840d507c0ca68cdd2c8dd5551bc4db0a3 Mon Sep 17 00:00:00 2001 From: Calum Chamberlain Date: Thu, 17 Aug 2017 10:39:37 +1200 Subject: [PATCH 3/5] Update conf.py --- eqcorrscan/doc/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eqcorrscan/doc/conf.py b/eqcorrscan/doc/conf.py index 473a4da6a..2030817d1 100644 --- a/eqcorrscan/doc/conf.py +++ b/eqcorrscan/doc/conf.py @@ -28,6 +28,7 @@ MOCK_MODULES = ['cv2', 'h5py', 'eqcorrscan.utils.libutils'] for mod_name in MOCK_MODULES: sys.modules[mod_name] = mock.Mock() +import eqcorrscan # 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. From 9643b791ae7c7de63e9921367e8e89d47bdcfdea Mon Sep 17 00:00:00 2001 From: Calum Chamberlain Date: Thu, 17 Aug 2017 10:47:15 +1200 Subject: [PATCH 4/5] Update conf.py --- eqcorrscan/doc/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eqcorrscan/doc/conf.py b/eqcorrscan/doc/conf.py index 2030817d1..b14757396 100644 --- a/eqcorrscan/doc/conf.py +++ b/eqcorrscan/doc/conf.py @@ -17,6 +17,7 @@ import shlex sys.path.insert(0, os.path.abspath('../..')) import matplotlib +import eqcorrscan READ_THE_DOCS = os.environ.get('READTHEDOCS', None) == 'True' if not READ_THE_DOCS: @@ -25,10 +26,10 @@ # Use mock to allow for autodoc compilation without needing C based modules import mock import glob -MOCK_MODULES = ['cv2', 'h5py', 'eqcorrscan.utils.libutils'] +MOCK_MODULES = ['cv2', 'h5py', 'eqcorrscan.utils.libutils', 'utils.libutils', 'libutils'] for mod_name in MOCK_MODULES: sys.modules[mod_name] = mock.Mock() -import eqcorrscan + # 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. From 4182e9a5a159c94d199ee736aac01350e2ef16a7 Mon Sep 17 00:00:00 2001 From: Calum Chamberlain Date: Thu, 17 Aug 2017 10:54:35 +1200 Subject: [PATCH 5/5] Update conf.py --- eqcorrscan/doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eqcorrscan/doc/conf.py b/eqcorrscan/doc/conf.py index b14757396..e4447b42c 100644 --- a/eqcorrscan/doc/conf.py +++ b/eqcorrscan/doc/conf.py @@ -26,7 +26,7 @@ # Use mock to allow for autodoc compilation without needing C based modules import mock import glob -MOCK_MODULES = ['cv2', 'h5py', 'eqcorrscan.utils.libutils', 'utils.libutils', 'libutils'] +MOCK_MODULES = ['cv2', 'h5py', 'eqcorrscan.utils.libnames'] for mod_name in MOCK_MODULES: sys.modules[mod_name] = mock.Mock()