naturalcrit / homebrewery

Create authentic looking D&D homebrews using only markdown
https://homebrewery.naturalcrit.com
MIT License
1.04k stars 317 forks source link

[FEATURE, LOCAL]: Offline save #3226

Open lucastucious opened 6 months ago

lucastucious commented 6 months ago

Your idea:

I've been using homebrewery since 3 years now, and sometimes, I go to my old brews to read something or borrow some cleverness form the past.

And everytime, image links are broken.

I understand why you can't host image on server, but can we have an offline backup, that download image from brews and replace links ? Maybe as a zip file ?

Homebrewery is an html file + css and assets. Can we have a way to export a .zip file of all export, like a "save as html" from web browser?

5e-Cleric commented 5 months ago

Question: where do you keep your images? Most if not all image hosting services will clean images from time to time, specially if the account is not used regularly.

Myself i've been using the tool for 2 years and my oldest brews still have every asset.

You are asking to load a local image as a file, which i honestly thought was possible already, i realize it's not.

lucastucious commented 5 months ago

Most of them on imgur, but sometimes I use directly from artstation. And some artists deletes their account or the post.

I'm not asking to load anything locally, I'm asking for a "save this brew locally, aka md+html+downloading every images + replacing links in brew". It's not meant for an backup as reimport-friendly, but more like a snapshot

5e-Cleric commented 4 months ago

So, save a... zip file of txt + images, should cover it.

I have asked why we don't save markdown versions of the brews, can't find the answer right now, but there was general chatter against it, still saving the images might be the biggest problem, i'm not sure we could/should.

calculuschild commented 4 months ago

I have asked why we don't save markdown versions of the brews

The "Download" button does save the markdown version of the brew. Or are you referring to something else?

5e-Cleric commented 4 months ago

I have asked why we don't save markdown versions of the brews

The "Download" button does save the markdown version of the brew. Or are you referring to something else?

No? the download button saves a .txt file, not .md, and it saves the css and metadata with it. I know the text is the used markdown, but it is not a markdown file.

5e-Cleric commented 4 months ago

I am still confused as to where this issue points, we can't use local images in brews, so even if downloaded, changing links would not help, and we won't download the images a user uses for them, specially if they don't have the rights to them.