diff --git a/scripts/board.py b/scripts/board.py index 30c4f45..671eafd 100644 --- a/scripts/board.py +++ b/scripts/board.py @@ -297,6 +297,21 @@ def _repo_url(snapshot: dict) -> str: return f"https://github.com/{owner}/{repo}" if owner and repo else "" +# The one-tap board family — the cross-board footer nav every board carries, +# each board skipping its own entry. Owner comes from the snapshot. +BOARD_FAMILY = (("mind", "PyAutoMind"), ("brain", "PyAutoBrain"), + ("heart", "PyAutoHeart"), ("hands", "PyAutoHands"), + ("organism", "PyAutoScientist")) + + +def _boards_nav(snapshot: dict) -> str: + owner = str(snapshot.get("owner") or "").lower() + if not owner: + return "" + return " · ".join(f'{name}' + for name, repo in BOARD_FAMILY) + + def _read_prompt(snapshot: dict, section: str) -> str: repo = snapshot.get("repo") or "the memory repo" return (f"Work through the next paper in the '## {section}' section of " @@ -579,6 +594,7 @@ def _render_html(snapshot: dict) -> str: {''.join(wiki_rows)}
+

Boards: {_boards_nav(snapshot)}

"""