started model tests

This commit is contained in:
John Lancaster
2026-06-21 17:09:03 -05:00
parent 37fa9b6c6f
commit c189677717
7 changed files with 582 additions and 11 deletions
@@ -47,3 +47,12 @@ class ReferenceEntry(StrictFrozenModel):
if path.suffix.lower() != ".md":
raise ValueError("reference path must target a markdown file")
return path.as_posix()
def _normalize_docs_path(path: str) -> str:
normalized = PurePosixPath(path)
if normalized.is_absolute() or ".." in normalized.parts:
raise ValueError("path must be a normalized docs-relative path")
if normalized.suffix.lower() != ".md":
raise ValueError("path must point to a markdown file")
return normalized.as_posix()