-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
enable hyperlinks in C4 elements and fix samples #72
enable hyperlinks in C4 elements and fix samples #72
Conversation
I usually accomplish the same thing by writing
Your addition is more user friendly, though. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
CAn we reopen the MR |
@SebastienAndreo We're still calibrating the stale bot. At your request, I have re-opened this MR and marked it so the bot won't auto-close it again, so the other maintainers have some more time to take a look at your contribution. |
what would it take to move this PR forward? |
@FastNinja What needs to happen is that the commits are rebased (to resolve the code conflicts) and a review needs to take place. Currently 2 reviewers are required so, not counting myself, at least one other maintainer needs to find time for a review. |
Hi, Because adding links to entities is simple enough and doesn't require it to pass through the create System/Container/Component function, I think overcomplicating the functions should be avoided.
Personally I use this to create links: |
Both suggestions (by @anorm and @adrianvlupu) seem easy enough and would not require any code changes:
@SebastienAndreo As choosing which features to add/implement is just as important as deciding what not to, we might have to consider closing this MR without merging its proposed changes into the codebase... Either way, we should make sure we add a section to the documentation about how to add links. As most active contributors/maintainers, can we get your opinions on whether this should be included or not? 👍 / 👎
|
I tested @adrianvlupu 's solution and it works fine in my context also. |
@Potherca, @adrianvlupu, @RicardoNiepel, @aheil: the link pattern works with elements and even Rel() calls can be modelled with links like below:
We could add it like the $tags="..." extension: In all my samples I set the $tags as "keyword argument" that it can be used if required and if not required it can be ignored in the calls (without any empty default arguments)
If we want a cleaner model we should add it as "keyword argument". |
Personally, I don't see any reason not to allow clickable hyperlinks. If I understood this right, it works for SVG export anyway. Actually, that's something I always wanted to add to my EIP extension as well. |
@aheil: I checked it on the plantuml server. If you check the png preview then the html-img control supports the png itself which is calculated via .../png/.... url and plantuml can calculate the corresponding map via e.g. changed url to .../map/... and then you can combine both results in a html page like below I found a description of the required command line argument |
…ts (except relations) are updated
…emDb..., SystemQueue... are updated
…ips are updated, Readme.md extended
…- image with links is added as svg
…- add missing args in docu
I am closing this in favor of #135. |
…- image with links is added as svg (fix merge in extended)
I implemented the possibility to embed hyperlink in the C4 elements. This feature makes your svg elements clickable and navigable.
I also corrected some incompatible changes in the plantuml engine.