From 94e5a84276d49e650750cafd946072caa1f5c0c0 Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:24:50 -0400 Subject: [PATCH] Fix GitHub source code links on Windows docs builds --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 4a5f696f7ab9..9ea64b61e73f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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