Skip to content

Commit 4523fa4

Browse files
committed
Set maximum sizes for digraphs
Between 1.5.6 and 1.6.5 of sphinx, the digraphs stopped being scaled to fit. Add a maximum size to them to fix this. Signed-off-by: Rob Herring <[email protected]>
1 parent 2d21895 commit 4523fa4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

source/devicetree-basics.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ with properties and values inside each node.
4747

4848
rankdir = LR;
4949
ranksep = equally;
50+
size = "6,8"
5051
node [ shape="Mrecord"; width="3.5"; fontname = Courier; ];
5152

5253
"/" [ label = "\N |
@@ -153,6 +154,7 @@ identified by a forward slash (/).
153154

154155
rankdir = LR;
155156
ranksep = equally;
157+
size = "6,8"
156158
node [ shape="Mrecord"; width="2.5"; fontname = Courier; ];
157159

158160
"/":e -> "cpus":w
@@ -883,6 +885,7 @@ sits in the logical interrupt tree.
883885

884886
rankdir = LR
885887
ranksep = "1.5"
888+
size = "6,8"
886889
edge [ dir="none" ]
887890
node [ shape="Mrecord" width="2.5" ]
888891

source/flattened-format.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ will resemble the diagram in :numref:`figure_device_tree_structure`
2424

2525
rankdir = LR
2626
ranksep = "1.5"
27+
size = "6,8"
2728
edge [ dir="none" ]
2829
node [ shape="Mrecord" width="2.5" ]
2930

0 commit comments

Comments
 (0)