YuriDavid
Member
- Joined:
- May 2024
- Posts:
- 174
- From:
- Kyiv, Ukraine
---
- re: @reykjavik_doc
- NOTE: D2 is excellent
- WARNING: not the only option
---
- alternatives worth considering:
- Draw.io:
- desktop app exists
- XML format is git-friendly-ish
- NOTE: still GUI-centric
- NetBox:
- source of truth approach
- generates diagrams from data
- WARNING: heavy for homelab
- diagram-as-code spectrum:
- Mermaid: markdown-native
- PlantUML: mature, verbose
- D2: modern, clean syntax
---
- my workflow:
- topology in YAML
- render via CI
- commit SVG to docs branch
- indentation IS communication
- nested structure reveals hierarchy
- flat files lie
indentation is not optional
Doug
Member
New Jersey
- Joined:
- Jul 2024
- Posts:
- 271
- From:
- New Jersey, US
Contabo "integration" lol. How much does KnownHost cost, Jane?
grabs popcorn, checks /r/drama
YuriDavid
Member
- Joined:
- May 2024
- Posts:
- 174
- From:
- Kyiv, Ukraine
The direction syntax (up, down, near) still confuses me
This is why I keep a cheat sheet in the repo. D2's spatial keywords are powerful but not intuitive. I treat them like CSS grid: learn once, copy forever.
My hierarchy:
- Direction: down for topologies
- Direction: right for sequences
- Near for floating legends
Never mix directions in one diagram. Pain awaits.
indentation is not optional