-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
[Feature request] diagram options support #334
Comments
The main question is what naming convention should we use?
|
I personally don’t really like the first option, I prefer the second. Would it be possible to have something like
? |
That's another option. We could workaround this "issue" by using an escape character That's basically why I'm not a big fan of this solution because we are introducing our own syntax within an AsciiDoc attribute (and as a result, we will need a micro-parser).
The first option aligns with Asciidoctor Diagram: https://docs.asciidoctor.org/diagram-extension/latest/#diagram-attributes
It could work but it's really verbose. |
Yes, I agree with you.
I found the fact that we’ll had to either hardcode the list of possible arguments or to pass all the arguments including non diagram options not ideal. But if this is already done this way in Asciidoctor Diagram, maybe we should also go this way. Also, it seems that only the
I may find the first option is the best in the end ;-) |
That's a good idea, it might indeed be easier to reverse the logic and filter built-in attributes 👍🏻
Perfect 👌🏻 |
@ggrossetie I can see that you solved the problem of specifying Do you have an example of how I should specify
diagram.dsl
|
@sixtysecrun Are you using the latest version of Asciidoctor Kroki? Please use the community chat to ask question: https://kroki.zulipchat.com/ |
I am using the latest version of Asciidoc Visual Code extension.
I will. Thank you! |
The Asciidoctor VS Code extension does not use the latest version that's probably why it's not working: https://github.com/asciidoctor/asciidoctor-vscode/blob/58adc632e6b9dfefd844efa66dd63ebdf9d1d78b/package.json#L658 Please open a new issue to request a version bump on |
Currently used version does not allow to pass diagram options to kroki. asciidoctor/asciidoctor-kroki#334
Currently used version does not allow to pass diagram options to kroki. asciidoctor/asciidoctor-kroki#334 Resolves asciidoctor#783
Currently used version does not allow to pass diagram options to kroki. asciidoctor/asciidoctor-kroki#334 Resolves #783
Hey @ggrossetie, I realize I’ve never thanked you for this feature, so thanks a lot, it works like a charm! |
Hello,
As discussed in #333, currently diagram options (https://docs.kroki.io/kroki/setup/diagram-options/) aren’t supported. A use case this support would help with is to be able to specify the view of a Structurizr diagram to render (currently, the rendered view is random).
The text was updated successfully, but these errors were encountered: