diff --git a/doc/source/conf.py b/doc/source/conf.py index 61d8b52af..634e8e8dc 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -24,11 +24,12 @@ author = 'Seldon Technologies Ltd' # The short X.Y version -import alibi +#import alibi +exec(open('../../alibi/version.py').read()) -version = alibi.__version__ +version = __version__ # The full version, including alpha/beta/rc tags -release = alibi.__version__ +release = __version__ # -- General configuration --------------------------------------------------- @@ -68,6 +69,10 @@ apidoc_separate_modules = True apidoc_extra_args = ['-d 6'] +# mock imports +autodoc_mock_imports = ['numpy', 'pandas', 'sklearn', 'spacy', 'skimage', 'requests', + 'cv2', 'bs4', 'keras', 'tensorflow', 'seaborn'] + # Napoleon settings napoleon_google_docstring = True napoleon_numpy_docstring = True