Skip to content

Commit

Permalink
Fix GitHub source code links on Windows docs builds (#13292)
Browse files Browse the repository at this point in the history
Eric-Arellano authored Oct 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b56e846 commit e41828f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -185,7 +185,7 @@ def linkcode_resolve(domain, info):
return None
try:
relative_file_name = Path(full_file_name).resolve().relative_to(REPO_ROOT)
file_name = re.sub(r"\.tox\/.+\/site-packages\/", "", str(relative_file_name))
file_name = re.sub(r"\.tox\/.+\/site-packages\/", "", relative_file_name.as_posix())
except ValueError:
return None

0 comments on commit e41828f

Please sign in to comment.