Open brandonphelps opened 1 year ago
Currently, it's not possible without a post-script on your side. rlespinasse/drawio-exporter#28 will enable us to do this kind of export directly.
Okay sounds good, thanks for following up.
I'll take a look at that issue and see if I can add that in.
Hi,
I'm interested in using these docker images to provide support for exporting drawio diagrams into svg format so they can be embedded into mdbooks.
However I'm stumbling into issues using the docker image. I believe part of my issue is coming from how the output directory flag is being used for specifying the output directory. with the directory structure of
if i run the docker container with the following.
I was expecting the output to be in the book folder, however the results end up in.
For the export process I'd like put the output into output directory that a mdbook user would expect.
Looking at the drawio-export rust utility, https://github.com/rlespinasse/drawio-exporter/blob/927228c390fb0e9a3957ae65ebbcd988f3d9fa7a/src/drawio_exporter/ops/exporter.rs#L95 shows that the output folder options passed to the drawio-exporter is joined to the path of where directory containing diagram.
So I'm curious on any thoughts on either supporting a direct way to specify the output directory or other suggestions that I'm missing.
Additionally thanks for creating this tool, this will be very helpful.