Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/smoke-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,33 @@ jobs:
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Run Core Verification Tests (test)
run: cargo test --all-features --workspace
run: cargo test --all-features --workspace

- name: Check Markdown Internal Links (ARCHITECTURE.md)
run: |
# Verify all relative links in ARCHITECTURE.md resolve to real files.
# Exits non-zero if any link target is missing.
python3 - <<'EOF'
import re, sys, pathlib

root = pathlib.Path(".")
src = root / "ARCHITECTURE.md"
text = src.read_text()

# Match relative markdown links: [label](./path) or [label](path)
pattern = re.compile(r'\[.*?\]\((\.\/|(?!https?://)(?!#))([^)#]+)')
missing = []
for m in pattern.finditer(text):
target = (m.group(1) or "") + m.group(2)
resolved = (src.parent / target).resolve()
if not resolved.exists():
missing.append(target)

if missing:
print("Broken links in ARCHITECTURE.md:")
for t in missing:
print(f" {t}")
sys.exit(1)
else:
print("All links in ARCHITECTURE.md resolve correctly.")
EOF
Loading
Loading