Skip to content

Commit

Permalink
sys.path modification removed to avoid confusion with paths created b…
Browse files Browse the repository at this point in the history
…y pyproject.toml
  • Loading branch information
agalitsyna committed Feb 22, 2023
1 parent b51362e commit 4be5a8e
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 @@ -26,8 +26,9 @@ def skip(app, what, name, obj, would_skip, options):
def setup(app):
app.connect("autodoc-skip-member", skip)


sys.path.insert(0, os.path.abspath(".."))
## 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 Down Expand Up @@ -138,4 +139,4 @@ def setup(app):
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_static_path = [] # removed the path to static files

0 comments on commit 4be5a8e

Please sign in to comment.