-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Structurizr: How to generate keys / legends? #1686
Comments
Did you find the answer to this? I haven't been able to find a way to generate diagram legends. |
Hey @simonbrowndotje, is there something we need to do to support legends/keys? |
If supported by the exporter, you just need to output it; see https://github.com/structurizr/cli/blob/master/src/main/java/com/structurizr/cli/export/ExportCommand.java#L148 for an example. |
Kroki outputs a single image, is it possible to embed/include the legend definition in the diagram (and then convert it to an image)? Something like: plantumlCommand.convert(diagram.getDefinition() + "\\n\\n" + diagram.getLegend().getDefinition(), fileFormat, new JsonObject()); |
Is there a way to generate the keys / legends associated with a Structurizr view?
It seems that if you're using the Structurizr CLI to export the plantUML views, the legends are generated as separate files, as e.g.
structurizr-systemContext-key.puml
for the key for the systemContext view.However, providing systemContext-key to Kroki doesn't generate the legend.
The text was updated successfully, but these errors were encountered: