Skip to content

Commit 3679858

Browse files
TMHSDigitalclaude
andauthored
docs: vendor the landing-page build; examples showcase + full stats (#41)
The fleet site-template only scaffolds new tool repos — after that each tool's site evolves independently. Vendors the template (build_site.py, template.html.j2, tokens.css, fonts) into scripts/site/ and points pages.yml at it, removing the deploy-time metarepo checkout. On the vendored copy, the landing page now reads examples/gallery.json: an Examples nav item, an Examples section with 16:9 hero cards linking to the gallery, and hero stats extended with snippets/templates/examples counts from the CI-gated plugin.json (12/6/17/2/4 instead of 12/6). Landing build outputs (docs/index.html, docs/fonts/, docs/assets/) are now gitignored; docs/gallery/ stays committed. AGENTS.md documents the pages.yml flow. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent cdf62fc commit 3679858

11 files changed

Lines changed: 1359 additions & 15 deletions

File tree

.github/workflows/pages.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Deploy GitHub Pages
22

3-
# Builds the fleet landing page (docs/index.html, via the shared Developer-Tools-Directory
4-
# template) AND the local examples gallery (docs/gallery/index.html, generated from
5-
# examples/gallery.json by scripts/build_gallery.py). Both ship in the single docs/ artifact;
6-
# the fleet build only writes docs/index.html + docs/fonts/ + docs/assets/, so it never
7-
# clobbers docs/gallery/. When the fleet template gains examples support, the gallery step is
8-
# retired and the data (examples/gallery.json) migrates onto the shared template.
3+
# Builds the landing page (docs/index.html, via the locally vendored template at
4+
# scripts/site/ — originally scaffolded from Developer-Tools-Directory's site-template,
5+
# now owned and evolved by this repo) AND the local examples gallery
6+
# (docs/gallery/index.html, generated from examples/gallery.json by scripts/build_gallery.py).
7+
# Both ship in the single docs/ artifact; the landing build only writes docs/index.html +
8+
# docs/fonts/ + docs/assets/, so it never clobbers docs/gallery/.
99

1010
on:
1111
push:
@@ -20,6 +20,8 @@ on:
2020
- "examples/gallery.json"
2121
- "docs/gallery/**"
2222
- "scripts/build_gallery.py"
23+
- "scripts/site/**"
24+
- "CHANGELOG.md"
2325
workflow_dispatch:
2426

2527
permissions:
@@ -39,21 +41,14 @@ jobs:
3941
steps:
4042
- uses: actions/checkout@v7
4143

42-
- name: Checkout site template
43-
uses: actions/checkout@v7
44-
with:
45-
repository: TMHSDigital/Developer-Tools-Directory
46-
sparse-checkout: site-template
47-
path: _template
48-
4944
- uses: actions/setup-python@v6
5045
with:
5146
python-version: "3.12"
5247

5348
- run: pip install Jinja2
5449

55-
- name: Build fleet landing page
56-
run: python _template/site-template/build_site.py --repo-root . --out docs
50+
- name: Build landing page (vendored template)
51+
run: python scripts/site/build_site.py --repo-root . --out docs
5752

5853
- name: Build local examples gallery (from examples/gallery.json)
5954
# Stdlib-only; regenerates docs/gallery/index.html so the committed page can never

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ ehthumbs.db
3333
# Local planning docs (not published)
3434
docs/site-upgrade-plan.md
3535

36+
# Landing-page build outputs (generated at deploy time by scripts/site/build_site.py;
37+
# docs/gallery/ stays committed)
38+
docs/index.html
39+
docs/fonts/
40+
docs/assets/
41+
3642
# Build artifacts
3743
dist/
3844
build/

AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ way, and a one-paragraph rationale. 30 to 80 lines is the right size.
125125
each release. Triggered on push to `main` for content-changing paths only.
126126
- `label-sync.yml` self-heals labels via `gh label create --force` per
127127
label, then applies them to the PR.
128+
- `pages.yml` builds the landing page from the **locally vendored** template
129+
at `scripts/site/` (originally scaffolded from Developer-Tools-Directory's
130+
site-template, now owned by this repo — the fleet template only scaffolds
131+
new tools) plus the examples gallery via `scripts/build_gallery.py`, then
132+
deploys `docs/`. `docs/index.html`, `docs/fonts/`, and `docs/assets/` are
133+
build outputs and gitignored; `docs/gallery/` is committed.
128134

129135
## Where to look for canonical references
130136

0 commit comments

Comments
 (0)