Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
lowener committed Jan 16, 2025
1 parent c7ff9b5 commit c082858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def setup(app):
linkcode_resolve = make_linkcode_resolve(
"pylibraft",
"https://github.com/rapidsai/raft"
"/blob/{revision}/python/"
"/blob/{revision}/python/pylibraft/"
"{package}/{path}#L{lineno}",
)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/sphinxext/github_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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/cuvs", sp_path)
fn = fn.replace("/opt/conda/conda-bld/work/python/pylibraft", sp_path)

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

0 comments on commit c082858

Please sign in to comment.