diff --git a/autohands/board.py b/autohands/board.py index 4cfb2c1..6c97512 100644 --- a/autohands/board.py +++ b/autohands/board.py @@ -266,6 +266,22 @@ def _heart_board_url(snapshot: dict) -> str: return f"https://{owner}.github.io/PyAutoHeart/" if owner 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, so no +# instance name lives here beyond the family's repo identities. +BOARD_FAMILY = (("mind", "PyAutoMind"), ("brain", "PyAutoBrain"), + ("heart", "PyAutoHeart"), ("memory", "PyAutoMemory"), + ("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 _latest(snapshot: dict) -> dict | None: """The headline: the newest released version across the library set.""" libs = [(k, i, l) for i, l in enumerate(snapshot.get("libraries") or []) @@ -472,6 +488,7 @@ def _render_html(snapshot: dict) -> str: +

Boards: {_boards_nav(snapshot)}

"""