asciidoctor / asciidoctor-diagram

:left_right_arrow: Asciidoctor diagram extension, with support for AsciiToSVG, BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag), Ditaa, Erd, GraphViz, Mermaid, Msc, PlantUML, Shaape, SvgBob, Syntrax, UMLet, Vega, Vega-Lite and WaveDrom.
http://asciidoctor.org
MIT License
431 stars 106 forks source link

How can I generate images including directory hierarchy? #430

Closed avenue68 closed 9 months ago

avenue68 commented 10 months ago

When I have the same name diagrrams in different directories, the one of the generated images is overwritten because they both are generated right under the target directory. What I want to is copying the directory hierarchy of the source diagrams into the target directory. Is that possible?

pepijnve commented 10 months ago

No, this is currently not possible. You might be able to get this working by manually specifying targets, but I'm not sure if that works correctly at the moment when including multiple path components. The necessary directories might not get created.

I'll have to check if the required information to reproduce the source directory hierarchy is available to extensions or not. That will be a necessary requirement to implement the requested functionality.

avenue68 commented 10 months ago

Okay, I did a work araound like below and it worked.

:imagesDir: a
plantuml::a/diagram.puml[]

:imagesDir: b
plantuml::b/diagram.puml[]

Thanks for providing information.