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
(cherry picked from commit e41828f)
  • Loading branch information
Eric-Arellano authored and mergify[bot] committed Oct 7, 2024
1 parent 7794629 commit 68f4cf2
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
Expand Up @@ -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

Expand Down

0 comments on commit 68f4cf2

Please sign in to comment.