Skip to content

Commit

Permalink
Fixes github link from pyx files
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan committed Jan 1, 2025
1 parent 91496b3 commit e726a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/sphinxext/github_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _linkcode_resolve(domain, info, package, url_fmt, revision):
else:
if fn.endswith(".pyx"):
sp_path = next(x for x in sys.path if re.match(".*site-packages$", x))
fn = fn.replace("/opt/conda/conda-bld/work/python", sp_path)
fn = fn.replace("/opt/conda/conda-bld/work/python/cuml", sp_path)

# Convert to relative from module root
fn = os.path.relpath(fn,
Expand Down

0 comments on commit e726a0c

Please sign in to comment.