Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdbooks integration #76

Open
brandonphelps opened this issue Aug 3, 2022 · 2 comments
Open

mdbooks integration #76

brandonphelps opened this issue Aug 3, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@brandonphelps
Copy link

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

src/chapter1.md
src/diagram1.md
book/
book.toml

if i run the docker container with the following.

docker run -it -v $(pwd):/data rlespinasse/drawio-export --output book src/diagram1.md

I was expecting the output to be in the book folder, however the results end up in.

src/book/

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.

@rlespinasse rlespinasse added the enhancement New feature or request label Aug 4, 2022
@rlespinasse
Copy link
Owner

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.

@brandonphelps
Copy link
Author

Okay sounds good, thanks for following up.

I'll take a look at that issue and see if I can add that in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants