Skip to content

Crawl images and other HTML linked resources as well#103

Open
dramalho wants to merge 2 commits intobenpickles:mainfrom
dramalho:crawl-images-as-well
Open

Crawl images and other HTML linked resources as well#103
dramalho wants to merge 2 commits intobenpickles:mainfrom
dramalho:crawl-images-as-well

Conversation

@dramalho
Copy link

@dramalho dramalho commented Jan 4, 2024

A small follow up to #102 where I was trying to figure out the best strategy to include ActiveStorage attachments into the static build.

TL;DR; I first tried to generate and copy the attachment files via a rake task but there are - to the best of my present knowledge - quite a few hoops to jump through to get the right final URL so that it matches what the markup expects, so much so that I think it's extremely error prone. The other option I explored was for parklife to merely collect more URLs and - maybe - get and save those files, which I ended up doing in Utils#scan_for_links

The code is simple enough but I'm unsure what scenarios exist that might hamper this approach, so I though I would open a PR just the same as that makes discussion easier .. maybe :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant