diff --git a/readme-map.json b/readme-map.json index a35cd37..2449071 100644 --- a/readme-map.json +++ b/readme-map.json @@ -1,20 +1,13 @@ { "files": [ { - "path": "/Users/dico/collar/README.md", - "mustContain": ["https://github.com/specdog/dotdog", "https://github.com/specdog/dogbench", "https://github.com/specdog"] - }, - { - "path": "/Users/dico/dotdog/README.md", - "mustContain": ["https://github.com/specdog/collar", "https://github.com/specdog/dogbench", "https://github.com/specdog"] - }, - { - "path": "/Users/dico/dogbench/README.md", - "mustContain": ["specdog.github.io/dogbench", "Collar", "dotdog"] - }, - { - "path": "/Users/dico/projects/leash/README.md", - "mustContain": ["specdog", "Collar", "dogbench", "dotdog"] + "path": "README.md", + "mustContain": [ + "https://github.com/specdog/dotdog/releases/tag/v1.0.0", + "https://specdog.github.io/dotdog/v1-migration", + "npx dotdog@1.0.0 refresh --json", + "bunx --bun dotdog@1.0.0 refresh --json" + ] } ] } diff --git a/scripts/check-readmes.py b/scripts/check-readmes.py index 1c605f5..a8ca9a0 100644 --- a/scripts/check-readmes.py +++ b/scripts/check-readmes.py @@ -12,11 +12,11 @@ def main() -> int: data = json.loads(MANIFEST.read_text()) issues = [] for item in data["files"]: - p = Path(item["path"]) + p = (ROOT / item["path"]).resolve() try: p.relative_to(ROOT) except ValueError: - print(f"README CHECK SKIP external path: {p}") + issues.append("README path must stay within this repository") continue if not p.exists(): issues.append(f"missing file: {p}")