kroki
kroki copied to clipboard
Rendering structurizr graphic with includes fails
Watching the payload of sphinx->kroki and a quick view into the (nice) code (btw) leads me to create this issue
In structurizr dsl it is possible to spread a complex graphic/model into separate file using an include.
.. kroki::
:type: structurizr
:filename: workspace.dsl
:options:
view-key: some-view
with a workspace.dsl
like this
!include some_file.dsl
workspace {
//...
}
Rendering this graphic causes kroki server to fail with
java.lang.RuntimeException: some_file.dsl could not be found
This error message is correct, since the payload of the graphic contains only the workspace.dsl
(not the included file).
By now in my eyes two paths are not worse to investigate further:
- send several files to kroki
- do the code embedding on sphinx-contrib/kroki side and send as one payload object (nothing more magic seams to be done by the
include
statement in structurizr dsl)
Does someone (maybe @hason as author, @pypamart as contributer) has a feeling about one over the other?