Bug #65249
closed
dot -Tsvg doc/dev/peering_graph.generated.dot > doc/dev/peering_graph.generated.svg
The above command as of today (19 Apr 2024) generates an SVG image that is 5036x1375px.
size="7,7" in peering_graph_generated.dot causes the peering_graph_generated.svg file to look the (wrong) way that caused me to raise this tracker bug. Replacing "7,7" with "1080,1080" causes the image to render correctly locally.
- Pull request ID set to 56996
- Status changed from In Progress to Resolved
I used these instructions to build an SVG file of the peering graph:
$ git clone https://github.com/ceph/ceph.git
$ cd ceph
$ cat src/osd/PeeringState.h src/osd/PeeringState.cc | doc/scripts/gen_state_diagram.py > doc/dev/peering_graph.generated.dot
$ sed -i 's/7,7/1080,1080/' doc/dev/peering_graph.generated.dot
$ dot -Tsvg doc/dev/peering_graph.generated.dot > doc/dev/peering_graph.generated.svg
Then I replaced the ".. graphviz" directive with an ".. image" directive that took the generated file as an argument.
I'll pay the cost of keeping this image manually updated.
Also available in: Atom
PDF