Update repo_health.yml

This commit is contained in:
2025-12-30 17:50:03 -06:00
parent df518bca27
commit d5969227b8

View File

@@ -700,16 +700,16 @@ jobs:
# Docs index link integrity (docs/docs-index.md)
if [ -f 'docs/docs-index.md' ]; then
missing_links="$(python3 - <<'PY'
import os
import re
import os
import re
idx = 'docs/docs-index.md'
base = os.getcwd()
idx = 'docs/docs-index.md'
base = os.getcwd()
bad = []
pat = re.compile(r'\[[^\]]+\]\(([^)]+)\)')
bad = []
pat = re.compile(r'\[[^\]]+\]\(([^)]+)\)')
with open(idx, 'r', encoding='utf-8') as f:
with open(idx, 'r', encoding='utf-8') as f:
for line in f:
for m in pat.findall(line):
link = m.strip()
@@ -727,9 +727,9 @@ with open(idx, 'r', encoding='utf-8') as f:
if not os.path.exists(p):
bad.append(rel)
print('\n'.join(sorted(set(bad))))
PY
)"
print('\n'.join(sorted(set(bad))))
PY
)"
if [ -n "${missing_links}" ]; then
extended_findings+=("docs/docs-index.md contains broken relative links")
{