Skip to content

Commit e958c3b

Browse files
authored
Fix link in the API (#352)
* fix path for link * remove print
1 parent 3b75403 commit e958c3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tools/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def linkcode_resolve(domain, info):
3131
fn = os.path.relpath(fn, start=os.path.dirname(__file__))
3232

3333
# Adjust if project inside src folder
34-
if fn.startswith("src"):
35-
fn = fn[len("src/") :]
34+
if fn.startswith("../../src"):
35+
fn = fn[len("../../src/") :]
3636

3737
return f"https://github.com/mind-inria/hidimstat/blob/main/src/{fn}#L{lineno}-L{lineno + len(source) - 1}"
3838
except Exception:

0 commit comments

Comments
 (0)