From 4be5a8e6444ad39795f39a1ce26ca2edc8265c55 Mon Sep 17 00:00:00 2001 From: agalitsyna Date: Wed, 22 Feb 2023 11:53:42 -0500 Subject: [PATCH] sys.path modification removed to avoid confusion with paths created by pyproject.toml --- docs/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7d51ac7..a88bb9a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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', @@ -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