Skip to content

docs: add local examples gallery on GitHub Pages#23

Merged
TMHSDigital merged 1 commit into
mainfrom
feat/local-examples-gallery
Jun 20, 2026
Merged

docs: add local examples gallery on GitHub Pages#23
TMHSDigital merged 1 commit into
mainfrom
feat/local-examples-gallery

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

Phase 2 of the local-gallery series — Option-1 (this-repo-local) gallery, built Option-2-ready. docs/ci only, no release expected.

Phase 1 findings (read-only)

  • This repo had no Pages (no pages.yml/docs//site.json), but Pages is already configured build_type: workflowno manual settings step needed.
  • The fleet build (build_site.py) writes only docs/index.html and rmtree-replaces docs/fonts/ + docs/assets/; it never touches anything else under docs/. → docs/gallery/ is safe.
  • Cross-linking the generated landing page → gallery is not possible without a template edit (the nav/footer render only a fixed set of site.json links). That template change is the Option-2 fleet item. Flagged; README links to the live gallery instead, and the gallery links back to the landing page.

What ships

  • site.json + .github/workflows/pages.yml — stands up Pages; builds the fleet landing page and the local gallery into one docs/ artifact.
  • examples/gallery.jsonforward-compatible source of truth (per-entry name/dir/teaches/witnessesFix/hero/preview). Option-2 migration is lift-and-shift onto the shared template.
  • scripts/build_gallery.py — stdlib-only generator → docs/gallery/index.html (CI regenerates it before upload so it can't drift).
  • docs/gallery/index.html + 3 heroes docs/gallery/assets/*-hero.webp (1280px WebP, 6–14 KB; rendered on Blender 5.1, asserted non-black).

Notes / verification

  • Fleet landing page test-built locally with the new site.json (title + all 12 skill cards rendered) — confirms CI build.
  • pages.yml deploys on push to main (not on PR), so the live URL is verified after merge.
  • README counts line (12/6/2/17) untouched; no shipped script/assertion changed.

🤖 Generated with Claude Code

Stand up Pages for this repo (no site existed) following the fleet entry
pattern: site.json + pages.yml that builds the shared landing page
(docs/index.html via Developer-Tools-Directory's build_site.py).

Add a this-repo-local examples gallery that rides alongside it:
- examples/gallery.json: forward-compatible source of truth (per-entry
  name/dir/teaches/witnessesFix/hero/preview). When the fleet template
  gains examples support, it reads this same file and the local page is
  retired -- a lift-and-shift, not a rewrite.
- scripts/build_gallery.py: stdlib-only generator -> docs/gallery/index.html.
- docs/gallery/index.html + docs/gallery/assets/*-hero.webp: the standalone
  gallery and its web-optimized heroes (1280px WebP, 6-14 KB each), rendered
  on Blender 5.1 and asserted non-black.

The fleet build only writes docs/index.html + docs/fonts/ + docs/assets/, so
it never clobbers docs/gallery/. pages.yml regenerates the gallery before
upload so the committed page can't drift from gallery.json.

Cross-linking the generated landing page -> gallery needs a template edit
(the Option-2 fleet change), so the README links to the live gallery instead
and the gallery links back to the landing page.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: fOuttaMyPaint <TMhospitalitystrategies@gmail.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation ci labels Jun 20, 2026
@TMHSDigital TMHSDigital merged commit 8c02d5c into main Jun 20, 2026
8 checks passed
@TMHSDigital TMHSDigital deleted the feat/local-examples-gallery branch June 20, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant