-
-
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
Support for structurizr workspace.json for layout information #1758
Comments
Looking into alternative approaches to render these charts, i learned that none of the available structurizr exporters even support exporting manual layouting, which i guess makes this issue a bit wishfull thinking. |
export-diagrams.js from https://github.com/structurizr/puppeteer I currently have a script that starts docker.io/structurizr/lite, then runs export-diagrams.js against that. Would off course be nicer if it would be integrated with kroki. I see that kroki already uses puppeteer for other use cases, so I guess technically this would be possible. |
Hey, i followed this issue... This was last year one thing i thought, when i came to wardleymapping and kroki... So i began to dig a little bit. It is not very difficult. I am using puppeteer as well as the diagrams.io implemenetation. So, feel free to copy and adjust it to your needs. :) https://github.com/yuzutech/kroki/blob/d97533eec6309c5a393dc4ce00cf2fc542cbcce3/onlinewardleymaps/src/index.js In my case, i removed some stuff in the website of onlinewardleymaps.com to polish the output. So maybe something you need to do aswell. |
I don't have time to code this right now, but something like this might work (dumping here for future self or someone else):
edit: actually, workspace.json contains workspace.dsl, and is what the api expects to get anyway. |
We keep our architecture charts as a separate
workspace.dsl
file in a repository which we render via the mkdocs-kroki-plugin and then just reference it in different locations in our documentation as:The automatic layouting is sometimes not ideal. Its easy enough to manually arange things to look good. Unfortunately it looks like there is no way to also provide the
workspace.json
file, which stores information on manually arranged view.I considered if this a mkdocs-kroki-plugin limitation, but looking at the kroki docs it doesnt look like there is a way to provide more than one file to the render endpoints.
It would be great if it was possible.
The text was updated successfully, but these errors were encountered: