From b33b6743d9bab514c7131d31e5b28ef645bb59ab Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sat, 21 Nov 2026 16:54:56 -0500 Subject: [PATCH] fix(website): refresh favicon links and serve a root icon --- scripts/prepare-website.py | 9 ++++++--- website/public/blog/index.html | 2 +- .../public/blog/reverse-engineering-models/index.html | 2 +- website/public/blog/touhou-reconstruction/index.html | 2 +- website/public/contributors/index.html | 2 +- website/public/examples/dino-lab/index.html | 2 +- website/public/examples/notes-web/index.html | 2 +- website/public/faq/index.html | 2 +- website/public/first-investigation/index.html | 2 +- website/public/get-started/index.html | 2 +- website/public/guides/browser/index.html | 2 +- website/public/guides/index.html | 2 +- website/public/guides/javascript/index.html | 2 +- website/public/guides/native/index.html | 2 +- website/public/guides/rl-environments/index.html | 2 +- website/public/index.html | 2 +- website/public/showcase/aegis/index.html | 2 +- website/public/showcase/ctf/index.html | 2 +- website/public/showcase/dx-ball/index.html | 2 +- website/public/showcase/index.html | 2 +- website/public/showcase/notion/index.html | 2 +- website/public/showcase/th04/index.html | 2 +- website/templates/page.html | 2 +- 23 files changed, 28 insertions(+), 25 deletions(-) diff --git a/scripts/prepare-website.py b/scripts/prepare-website.py index 6d66e47fae..6be6abb79f 100644 --- a/scripts/prepare-website.py +++ b/scripts/prepare-website.py @@ -42,8 +42,8 @@ def prepare_sitemap(site): print(f"Prepared sitemap.xml ({len(sitemap)} indexable pages).") -def prepare_sharing_image(site): - """Rasterize the maintained SVG for clients that need a PNG preview.""" +def prepare_images(site): + """Render social previews and the conventional browser icon from their sources.""" try: import cairosvg except (ImportError, OSError) as error: @@ -59,6 +59,9 @@ def prepare_sharing_image(site): with Image.open(BytesIO(png)) as image: return image.convert("RGBA") + favicon = render(site / "assets/favicon.svg", 192) + favicon.save(site / "favicon.ico", sizes=[(n, n) for n in (16, 32, 48, 64, 192)]) + with Image.open(artwork / "rea-social-preview.png") as original: default = ImageOps.fit(original.convert("RGB"), (1200, 630), method=Image.Resampling.LANCZOS) default.save(site / "assets/social-card.png", optimize=True) @@ -148,7 +151,7 @@ def prepare_assets(site): stylesheet.write_text(cssmin(stylesheet.read_text(encoding="utf-8")), encoding="utf-8") prepare_search_images(site) prepare_redirects(site) - prepare_sharing_image(site) + prepare_images(site) prepare_sitemap(site) prepare_notes_example(site) prepare_discovery(Path(__file__).resolve().parent.parent, site) diff --git a/website/public/blog/index.html b/website/public/blog/index.html index 8fafe9a447..0cc9e1aca1 100644 --- a/website/public/blog/index.html +++ b/website/public/blog/index.html @@ -120,7 +120,7 @@ content="Blue REA lettering beside disassembly, hex data and an agent workflow." /> - +
diff --git a/website/public/blog/reverse-engineering-models/index.html b/website/public/blog/reverse-engineering-models/index.html index dec0878ee5..3ad05609eb 100644 --- a/website/public/blog/reverse-engineering-models/index.html +++ b/website/public/blog/reverse-engineering-models/index.html @@ -120,7 +120,7 @@ content="Blue REA lettering beside disassembly, hex data and an agent workflow." /> - + diff --git a/website/public/blog/touhou-reconstruction/index.html b/website/public/blog/touhou-reconstruction/index.html index f43584bc2b..cfd2ed95b7 100644 --- a/website/public/blog/touhou-reconstruction/index.html +++ b/website/public/blog/touhou-reconstruction/index.html @@ -120,7 +120,7 @@ content="Reverse Engineering’s Industrial Revolution — REA" /> - + diff --git a/website/public/contributors/index.html b/website/public/contributors/index.html index 36ad8b558e..2a4eda5ec3 100644 --- a/website/public/contributors/index.html +++ b/website/public/contributors/index.html @@ -120,7 +120,7 @@ content="Blue REA lettering beside disassembly, hex data and an agent workflow." /> - + diff --git a/website/public/examples/dino-lab/index.html b/website/public/examples/dino-lab/index.html index 3bc8cc4593..d7dbe05ef3 100644 --- a/website/public/examples/dino-lab/index.html +++ b/website/public/examples/dino-lab/index.html @@ -120,7 +120,7 @@ content="Blue REA lettering beside disassembly, hex data and an agent workflow." /> - + diff --git a/website/public/examples/notes-web/index.html b/website/public/examples/notes-web/index.html index 92980ef551..9ace63d42b 100644 --- a/website/public/examples/notes-web/index.html +++ b/website/public/examples/notes-web/index.html @@ -9,7 +9,7 @@ content="A small Notes app for the REA browser and network analysis guide." />