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
445 stars 109 forks source link

How can I generate images including directory hierarchy? #430

Closed avenue68 closed 1 year ago

avenue68 commented 1 year 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 1 year 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 1 year 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.