Skip to content

chore: drop the asset scripts and their source paths - #46

Merged
banteg merged 1 commit into
mainfrom
chore/drop-asset-scripts
Oct 30, 2026
Merged

banteg merged 1 commit into
mainfrom
chore/drop-asset-scripts

Conversation

@banteg

@banteg banteg commented Oct 30, 2026

Copy link
Copy Markdown
Member

Removes scripts/: import-comics.mjs, encode-assets.mjs and encode-audio.mjs. They encoded the comic pages, gallery artwork and soundtrack once, from masters on one machine, so they live on in git history. The README now says so and points to scripts/ at 455bd69, instead of listing local paths to the masters.

content/comics.json stays, because the site reads each page's size and widths from it. It loses the source field each page carried, with values like 2024-04-17 fix bigbadabook/yFu_01 Full 04172024.pdf p1. Nothing read that field, but because the reader and comics list are React islands, Astro serialized it into every comic page's HTML. Issue 1's page carried 27 such paths.

A build diffed against main differs only in the comic pages. Once the removed source entries and the prop-derived astro-island uids are ignored, they're byte-identical. Each reader page is about 2.5 KB smaller. Lint and astro check pass.

the comic, artwork and audio encoders only ran once against masters on
one machine, so they live on in git history. comics.json keeps the page
sizes the site uses but loses each page's source path, which the reader
pages were also shipping in their html
@github-actions

Copy link
Copy Markdown

Deploy preview for y-fu ready!

Project:y-fu
Status: ✅  Deploy successful!
Preview URL:https://y-pe6bhgn8j-yearn.vercel.app
Latest Commit:2ecef66

Deployed with vercel-action

@banteg
banteg merged commit 9a57b76 into main Oct 30, 2026
3 checks passed
@banteg
banteg deleted the chore/drop-asset-scripts branch October 30, 2026 11:18

This branch was successfully deployed

1 active deployment
preview — 2ecef663 Deployed Oct 30, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant