Closed Krafting closed 3 months ago
I didn't know there is such possibility, does bookstack actually support changing domain/url of instance?
Anyway fix for that should be easy, I made a branch skip-broken-images
with fix and pull request.
Could you test it? If it works I will merge to main and add proper release with tag.
Anyway fix for that should be easy, I made a branch
skip-broken-images
with fix and pull request. Could you test it? If it works I will merge to main and add proper release with tag.
I'll be able to test it on Monday, I'll be back to you when I test it! Thank your for the quick fix!
Also, I don't think bookstack allow changing the domain/url, or at least it doesn't update images in docs.
Good morning!
I've just tested it with the option and it seems to work very well, also tried it without the option and it kept the old behaviour (no regression it seems!)
Thank you again for the fast patch!
Hey again!
I just tested the --images options, and it seems to work great, but, we have a lot of docs, and a few docs have broken images in them, which mean the script just give up once it find one. And I don't know how to track them properly to fix them...
It might be a good idead for an option to skip broken images, here are the logs :
I redacted the IP and Port, but I think you get the idea. The image was uploaded using the old IP of the server, therefore is now broken, as the IP is not reachable. I could fix the image in all the docs (and I'll try too) but in the meantime having the export to only export working images would be cool.
I hope it was clear enough for you !
Thank you for your time and work on this project !