Closed simonw closed 10 months ago
Changes to the content of a TIL should generate a new screenshot of that TIL.
But, right now, even the tiniest tweak to the base or entry templates (including changes that wouldn't visibly affect the shots at all) triggers a 450+ screenshot generation process.
Easiest fix: instead of incorporating the hash of the HTML templates themselves, switch to a SCREENSHOT_VERSION
constant. I can then manually change that any time I want to trigger a full re-render.
I could set the first version of that to the current hash, to avoid recalculating all 450 existing shots when I deploy this change.
Since those hashes are added in sequence, the constant would need to be a list in order to capture the current state.
If I got this right, the deploy should not recreate any screenshots.
Yes that worked:
Originally posted by @simonw in https://github.com/simonw/til/issues/81#issuecomment-1685012429