From fb7be867c52dbdc97774be7d97b6cf0597103e6d Mon Sep 17 00:00:00 2001 From: popcoder565 <339285150+popcoder565@users.noreply.github.com> Date: Wed, 7 Oct 2026 15:49:03 -0400 Subject: [PATCH] fix(tools): resolve documentation links as repository paths on Windows check_conventions.py normalized link targets with os.path.normpath, which gives backslash paths on Windows, so every link added in docs failed the doc-link check and a silent stub listed in TechnicalDebt was not found. Links are repository-relative POSIX paths, so they are normalized with posixpath. --- tools/check_conventions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/check_conventions.py b/tools/check_conventions.py index 933dec172..b85a840b1 100644 --- a/tools/check_conventions.py +++ b/tools/check_conventions.py @@ -1,6 +1,7 @@ import argparse import json import os +import posixpath import re import subprocess from collections import defaultdict @@ -186,7 +187,7 @@ def links(path, text): if re.match(r"[a-z]+:|#", target): continue target = target.split("#", 1)[0].split("?", 1)[0] - result.append((target, os.path.normpath(target.lstrip("/") if target.startswith("/") else str(PurePosixPath(path).parent / target)))) + result.append((target, posixpath.normpath(target.lstrip("/") if target.startswith("/") else str(PurePosixPath(path).parent / target)))) return result