From b7958360a4ef1fa87d546ef9cab3d8faef03afdb Mon Sep 17 00:00:00 2001 From: TMHSDigital Date: Wed, 17 Jun 2026 16:16:11 -0400 Subject: [PATCH] fix(catalog): generate search index, footer version, and standards grid from source [skip version] Three hand-maintained regions of docs/index.html had silently drifted and were not covered by sync-check: - The inline search-index block was frozen at 9 of 14 tools, so the five newest tools (developer-tools-mcp, cfx-mcp, blender, local-ai, screencast) were unsearchable on the live site (D1). - The footer version was hardcoded v1.9.5 against a real latest tag of v1.17.0 (D2). - The standards grid was missing born-green-contract and its count read 18 for 19 standards (F2). - docs/search-index.json was generated by aggregate_search.py but never fetched by the page; the page read only the inline block (F3). sync_from_registry.py now owns all four: it reconciles docs/search-index.json from the registry (preserving the scanned skill/rule/MCP-tool name arrays), mirrors it into the inline fallback block, sets the footer from VERSION, and generates the standards grid and count from the standards/*.md listing. Each new region is best-effort so a minimal catalog without a VERSION file or standards directory is left untouched. All four are covered by --check. setupSearch now fetches search-index.json at runtime with the inline block as the offline/file:// fallback, so the file and the embedded copy agree (P1n). aggregate_search.py merges with the existing index so refreshing without a full fleet checkout no longer discards previously scanned names. Co-Authored-By: Claude Opus 4.8 Signed-off-by: TMHSDigital --- docs/index.html | 41 +++--- docs/search-index.json | 2 +- scripts/sync_from_registry.py | 231 +++++++++++++++++++++++++++++- site-template/aggregate_search.py | 34 ++++- tests/test_scaffold_born_green.py | 4 +- 5 files changed, 281 insertions(+), 31 deletions(-) diff --git a/docs/index.html b/docs/index.html index 244dd8b..1594cd3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -257,7 +257,7 @@

Developer Tools Directory

@@ -318,7 +319,7 @@

Scaffold Generator