diff --git a/docs/source/conf.py b/docs/source/conf.py index d71f3269c0..e5e6e0871a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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}", ) diff --git a/docs/source/sphinxext/github_link.py b/docs/source/sphinxext/github_link.py index 157ff283eb..5712bbe5cb 100644 --- a/docs/source/sphinxext/github_link.py +++ b/docs/source/sphinxext/github_link.py @@ -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,