Skip to content

Commit 2d12ff9

Browse files
Jammy2211claude
andauthored
Cross-board footer nav on the knowledge board (#55)
The one-tap board family (mind, brain, heart, hands, organism) as a footer nav — every board now links its siblings, each skipping its own entry. Owner from the snapshot as elsewhere. Co-authored-by: Claude <noreply@anthropic.com>
1 parent cad2ece commit 2d12ff9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

scripts/board.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,21 @@ def _repo_url(snapshot: dict) -> str:
297297
return f"https://github.com/{owner}/{repo}" if owner and repo else ""
298298

299299

300+
# The one-tap board family — the cross-board footer nav every board carries,
301+
# each board skipping its own entry. Owner comes from the snapshot.
302+
BOARD_FAMILY = (("mind", "PyAutoMind"), ("brain", "PyAutoBrain"),
303+
("heart", "PyAutoHeart"), ("hands", "PyAutoHands"),
304+
("organism", "PyAutoScientist"))
305+
306+
307+
def _boards_nav(snapshot: dict) -> str:
308+
owner = str(snapshot.get("owner") or "").lower()
309+
if not owner:
310+
return ""
311+
return " · ".join(f'<a href="https://{owner}.github.io/{repo}/">{name}</a>'
312+
for name, repo in BOARD_FAMILY)
313+
314+
300315
def _read_prompt(snapshot: dict, section: str) -> str:
301316
repo = snapshot.get("repo") or "the memory repo"
302317
return (f"Work through the next paper in the '## {section}' section of "
@@ -579,6 +594,7 @@ def _render_html(snapshot: dict) -> str:
579594
<table>{''.join(wiki_rows)}</table>
580595
<footer>Rendered by <code>scripts/board.py</code> from the checkout —
581596
nothing here is committed; generated {_html.escape(str(snapshot.get('generated') or '?'))}.</footer>
597+
<p class="meta">Boards: {_boards_nav(snapshot)}</p>
582598
</div></body></html>
583599
"""
584600

0 commit comments

Comments
 (0)