Skip to content

Commit

Permalink
Added source directories to sys.path for doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
rhjdjong committed Apr 3, 2024
1 parent 7b02dd6 commit 778cf2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

# Include the example directory in sys.path\
# Include the src and example directories in sys.path
# in order to generate the documentation for the examples
sys.path.append(os.path.abspath(os.path.join("..", "..", "examples")))
sys.path[0:0] = [
os.path.abspath(os.path.join("..", "..", "src")),
os.path.abspath(os.path.join("..", "..", "examples")),
]

extensions = [
"sphinx.ext.autodoc",
Expand Down

0 comments on commit 778cf2b

Please sign in to comment.