summaryrefslogtreecommitdiff
path: root/docs/typ
diff options
context:
space:
mode:
Diffstat (limited to 'docs/typ')
-rw-r--r--docs/typ/style.typ6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/typ/style.typ b/docs/typ/style.typ
index bf005c63..1b172dc8 100644
--- a/docs/typ/style.typ
+++ b/docs/typ/style.typ
@@ -188,7 +188,8 @@
/// Every builtin of either build, written by `zig build builtins-json`
/// from the registry and the Help rows (core/builtins_json.zig), a file per
/// build: name, leader, also (Help's other shortcuts), arg, scope, setting,
-/// choices, doc, and for a shipped addon's word its addon first. Merged here, each with `platforms`: "both", "tui" (the
+/// choices, doc (its summary), text (its whole documentation, a line a
+/// paragraph), and for a shipped addon's word its addon first. Merged here, each with `platforms`: "both", "tui" (the
/// terminal only) or "gui" (the window only).
#let builtin-data = {
let tui = json("builtins-tui.json")
@@ -426,7 +427,8 @@
#if "addon" in b [#emph[the #raw(b.addon) addon's] · ]
#if keys.len() > 0 [#keys.join([, ]) · ]
#if b.choices != none [#raw(b.choices.replace(", ", "|")) · ] else if b.arg [takes an argument · ]
- #prose(b.doc)
+ // its whole documentation (`text`), a paragraph a line, as Help shows it
+ #b.text.split("\n").map(prose).join(parbreak())
]
/// The glossary: everyday words first, then the groups, then internals,