Skip to content

Commit

Permalink
Fix GitHub source code links on Windows docs builds (#13292) (#13293)
Browse files Browse the repository at this point in the history
(cherry picked from commit e41828f)

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
  • Loading branch information
mergify[bot] and Eric-Arellano authored Oct 7, 2024
1 parent 7794629 commit f5c005c
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 f5c005c

Please sign in to comment.