-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtest_ann_0_3.ml
38 lines (37 loc) · 1.09 KB
/
test_ann_0_3.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
let b =
let open PrintBox in
frame
@@ grid_l
[
[ text "subject"; text_with_style Style.bold "announce: printbox 0.3" ];
[
text "explanation";
frame
@@ text
{|PrintBox is a library for rendering nested tables,
trees, and similar structures in monospace text or HTML.|};
];
[
text "github";
text_with_style
Style.(bg_color Blue)
"https://github.com/c-cube/printbox/releases/tag/0.3";
];
[
text "contributors";
vlist_map
(text_with_style Style.(fg_color Green))
[ "Simon"; "Guillaume"; "Matt" ];
];
[
text "dependencies";
tree empty
[
tree (text "mandatory")
[ text "dune"; text "bytes"; text "uutf"; text "uucp" ];
tree (text "optional") [ text "tyxml" ];
];
];
[ text "expected reaction"; text "🎉" ];
]
let () = print_endline @@ PrintBox_text.to_string b