View example socket-attach-points→
-
+
diff --git a/examples/gallery.json b/examples/gallery.json
index 6c5de1ff..2fb69827 100644
--- a/examples/gallery.json
+++ b/examples/gallery.json
@@ -432,7 +432,7 @@
"tags": [
"world",
"sky",
- "render"
+ "rendering"
]
},
{
@@ -469,7 +469,7 @@
"hero": "docs/gallery/assets/prop-origin-transform-hero.webp",
"preview": "examples/prop-origin-transform/preview.webp",
"tags": [
- "transform",
+ "transforms",
"parenting",
"game-pipeline"
]
@@ -551,7 +551,7 @@
"tags": [
"uv",
"game-pipeline",
- "render"
+ "rendering"
]
},
{
@@ -579,7 +579,7 @@
"mesh",
"attributes",
"game-pipeline",
- "render"
+ "rendering"
]
},
{
diff --git a/scripts/build_gallery.py b/scripts/build_gallery.py
index 657a0738..9a6f5e2d 100644
--- a/scripts/build_gallery.py
+++ b/scripts/build_gallery.py
@@ -1059,6 +1059,16 @@ def main() -> int:
encoding="utf-8",
)
+ # A renamed or removed entry would otherwise leave its old page published
+ # forever. Only folders this generator wrote qualify: a lone index.html
+ # and nothing else, so assets/, contact-sheets/ and asset-sheets/ are safe.
+ names = {ex["name"] for ex in examples}
+ for d in sorted(p for p in OUT_DIR.iterdir() if p.is_dir() and p.name not in names):
+ if [c.name for c in d.iterdir()] == ["index.html"]:
+ (d / "index.html").unlink()
+ d.rmdir()
+ print(f"Removed stale page {d.relative_to(REPO)}")
+
n_showcase = sum(1 for ex in examples if "showcase" in (ex.get("tags") or []))
print(
f"Wrote {OUT_DIR / 'index.html'} + {len(examples)} detail pages "