From 31f4490443b34d641c2a6b0ee2eda3a38ddf56bd Mon Sep 17 00:00:00 2001 From: agalitsyna Date: Wed, 22 Feb 2023 12:25:05 -0500 Subject: [PATCH] sys path insertion is back --- docs/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a88bb9a..bc7ed53 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,6 +16,9 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # sys.path.insert(0, os.path.abspath('.')) +## We shall consider removing the sys path changes according to https://www.sphinx-doc.org/en/master/tutorial/describing-code.html#including-doctests-in-your-documentation +## if using pyproject.toml +sys.path.insert(0, os.path.abspath("..")) def skip(app, what, name, obj, would_skip, options): if name == "__init__": @@ -26,9 +29,6 @@ def skip(app, what, name, obj, would_skip, options): def setup(app): app.connect("autodoc-skip-member", skip) -## Remove the sys path changes according to https://www.sphinx-doc.org/en/master/tutorial/describing-code.html#including-doctests-in-your-documentation -## if using pyproject.toml -# sys.path.insert(0, os.path.abspath("..")) # autodoc_mock_imports = [ # 'numpy', @@ -46,6 +46,7 @@ def setup(app): "scipy.sparse", "scipy.spatial", "scipy.interpolate", + "scipy.ndimage", "pandas", "pandas.algos", "pandas.api",