Open gquintana opened 3 years ago
You can use imagesoutdir
but the path used in the HTML is controlled by imagesdir
. The imagesoutdir
attribute tells Asciidoctor Kroki where to write the file. The imagesdir
attribute tells the processor what to put in the HTML.
Is that what you are looking for?
I'm adding the documentation label since this is an undocumented feature 😅
Thanks for pointing out the imagesoutdir
attribute.
Given a document containing both handmade images and Kroki generated images. I'd like to be able to place images in different folders (the Kroki output directory can be Git ignored, can be pruned, can be a subfolder of the main imagesdir).
When I set imagesoutdir=kroki
and imagesdir=main
, images are fetched in the kroki directory (good start), but the HTML references them in the main directory, so they are 404 not found.
As far as I know it's not supported by Asciidoctor. If you want to use this configuration then I think you will need to manually copy images to the imagesdir
directory.
You should ask on https://asciidoctor.zulipchat.com/ maybe someone will have a better idea...
(sorry for the laaaaate reply!)
When
kroki-fetch-diagram
is enabled, the diagram is fetched in the current dir. I'd like to be able to select the target directory, for exampleimages/kroki
, containing downloadeddiag-<hash>.svg
files. In short, I'd like to havekroki-fetch-dir
orkroki-images-dir
which would be the default target folder and would override the defaultimagesdir
when set.