commit 8f5260aa4b37b864e20e44738368cebb2a9b52b8 parent 5ad9984572c510223858b2969aeb4aa77659b958 Author: Drew DeVault <sir@cmpwn.com> Date: Wed, 21 Apr 2021 10:09:18 -0400 haredoc: fix header for stdlib index Diffstat:
M | cmd/haredoc/html.ha | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha @@ -19,7 +19,11 @@ fn emit_html(ctx: *context) (void | error) = { if (ctx.template) head(ctx.ident)?; - fmt::printf("<h2>{} <span class='heading-extra'>", ident); + if (len(ident) == 0) { + fmt::printf("<h2>The Hare standard library <span class='heading-extra'>", ident); + } else { + fmt::printf("<h2>{} <span class='heading-extra'>", ident); + }; for (let i = 0z; i < len(ctx.tags); i += 1) { const mode = switch (ctx.tags[i].mode) { module::tag_mode::INCLUSIVE => '+',