Live data from Hacker News

Documentation as Code for Cloud Using PlantUML

blog.dornea.nu

31–35 of 35 posts

Re: Documentation as Code for Cloud Using PlantUML

#32
post #24

I use PlantUML to create quick network diagrams. It's the only solution I found which allows tailoring a diagram if it renders poorly. For example, if access switches are to be on the left, and trunk switches on the right, PlantUML is the only solution I found which adequately allows the user to add such constraints, via: S1 --E-- S2

Hey, what style of diagram are you using for this? Deployment diagram? Do you have link to an example?

Layout hints in legacy activity diagrams, from memory:

https://crashedmind.github.io/PlantUMLHitchhikersGuide/layou...

Can take compass coordinates from memory, in shorthand.

In Python, I pull a network topology from an API, then convert it to PlantUML, then edit a few arrows/lines so to point the right way, the entire topology adjusts accordingly, and generally I arrive at a useable diagram very quickly.

Way quicker than Visio, and nothing else seems to be able to do this (e.g. graphviz doesn't allow this).

Re: Documentation as Code for Cloud Using PlantUML

#35

One of the coolest things about plantuml is the generated PNG actually contains the source code for the image as metadata. If someone gives you an image, they don't also need to send you the source because you can extract it using the plantuml CLI.

This is indeed awesome! Thanks for letting us know.
Post reply on HN