diff --git a/docs/conf.py b/docs/conf.py index 76203f9890..bf5e5beed3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -185,6 +185,10 @@ def find_source(): filename = "aeon/%s#L%d-L%d" % find_source() except Exception: filename = info["module"].replace(".", "/") + ".py" + + if filename.split("/")[0] != "aeon": + return None + return "https://github.com/aeon-toolkit/aeon/blob/{}/{}".format( github_tag, filename,