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

Fix diagram generation path without breaking other image paths #178

Open
mako4 opened this issue Jun 28, 2018 · 0 comments
Open

Fix diagram generation path without breaking other image paths #178

mako4 opened this issue Jun 28, 2018 · 0 comments

Comments

@mako4
Copy link

mako4 commented Jun 28, 2018

I have a bunch of static images (screenshots) that I keep in various folders (usually in subfolders of the adoc file that uses them). I can include them with a normal image: macro using their relative path, and this works perfectly fine.

For asciidoctor-diagram to work, I followed the instructions with setting an imagesdir and then adding this imagesdir to keep_files. This works, but breaks all other images, as asciidoctor adds the imagesdir to all my previously working image macro links. I can circumvent this by setting only an imagesoutdir, the diagram png will be created, but then the path in the rendered page is not pointing to the actual location of the diagram png.

Is there any way to fix this just for generated images, without affecting all images? Like having a separate diagramdir attribute to control where asciidoctor-diagrams is putting the generated files?

Thank you for your help.

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

No branches or pull requests

1 participant