Repository navigation
Description
Summary
Add examples gallery support to the shared Pages build so every tool repo gets a gallery from site-template/, instead of each repo shipping its own local page.
This is the convergence target for the local gallery already shipped in Blender-Developer-Tools — that repo built its gallery to be a lift-and-shift onto the fleet template (not a rewrite).
Two parts
- Discovery in
site-template/build_site.py— load anexamples/gallery.jsonfrom the repo root (if present) and pass it into the template context. Proposed per-entry schema (already in use):{ "repoBaseUrl": "https://github.com/<owner>/<repo>/tree/main", "examples": [ { "name": "...", "dir": "examples/<name>", "teaches": "...", "witnessesFix": "...", "hero": "docs/gallery/assets/<name>-hero.webp", "preview": "examples/<name>/preview.webp" } ] } - Examples grid in
template.html.j2— render the entries (hero image, name, what it teaches, which fix it witnesses, link to the example) and add a nav link to the Examples section. The nav link also unblocks the cross-link gap below.
Why now (the cross-link gap)
In Blender-Developer-Tools, the generated landing page (docs/index.html) cannot link to the gallery without a template edit — the nav/footer render only a fixed set of site.json links, with no free-form nav/CTA field. So the local gallery currently ships standalone and is reached via a README link only. This template change closes that gap for the whole fleet.
Reference implementation (Blender-Developer-Tools)
- Source of truth:
examples/gallery.json - Generator (stdlib-only, to be retired once the template handles this):
scripts/build_gallery.py - Local page + heroes:
docs/gallery/index.html,docs/gallery/assets/*-hero.webp - Live: https://tmhsdigital.github.io/Blender-Developer-Tools/gallery/
Done when
build_site.pyconsumesexamples/gallery.jsonand the template renders an Examples grid + nav link.- A repo with
examples/gallery.jsongets a gallery on its fleet site with no local generator. - Blender-Developer-Tools retires
scripts/build_gallery.py+docs/gallery/and relies on the shared template.
Filed from the Blender-Developer-Tools local-gallery work (ROADMAP candidate: "Fleet Pages examples support").
Activity
fix: stop skill name overflowing/overlapping the description
fix: stop skill name overflowing/overlapping the description (#88)