diff --git a/docs/source/conf.py b/docs/source/conf.py index 75f6332..5d05f9f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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",