Annotations are generated by cmd/annotate-card/main.go as native SVG elements. The pipeline:
- Demo server serves a plain card at
/card (template: demo_single_card.html)
url2svg captures it as /tmp/godocs-card.svg
cmd/annotate-card wraps the captured SVG in a larger SVG with label rects, text, and dashed leader lines
- Output:
docs/annotated-card.svg
To update annotations, edit the annotations slice in cmd/annotate-card/main.go, then run task demo:card:svg.
Label style
Pale yellow background (fill="#fffde7"), gold border (stroke="#f5c518"), bold 11px text.
Leader lines
Dashed lines: stroke="#f5c518" stroke-width="1" stroke-dasharray="4,3". Each runs from label edge to target element centre on the card.