Skip to content

Commit

Permalink
sys path insertion is back
Browse files Browse the repository at this point in the history
  • Loading branch information
agalitsyna committed Feb 22, 2023
1 parent 4be5a8e commit 31f4490
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand All @@ -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',
Expand All @@ -46,6 +46,7 @@ def setup(app):
"scipy.sparse",
"scipy.spatial",
"scipy.interpolate",
"scipy.ndimage",
"pandas",
"pandas.algos",
"pandas.api",
Expand Down

0 comments on commit 31f4490

Please sign in to comment.