commit 7bb1b98be24f4191d697b94670d9fd226bfda400 parent 7ee0e15d9502341bbda89b73e80abd13df510980 Author: Drew DeVault <sir@cmpwn.com> Date: Tue, 20 Apr 2021 13:07:41 -0400 haredoc: handle empty directories better Diffstat:
M | cmd/haredoc/html.ha | | | 7 | +++++++ |
A | crypto/README | | | 3 | +++ |
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha @@ -53,6 +53,13 @@ fn emit_html(ctx: *context) (void | error) = { fmt::println("</ul>")?; }; + if (len(decls.types) == 0 + && len(decls.errors) == 0 + && len(decls.globals) == 0 + && len(decls.funcs) == 0) { + return; + }; + fmt::println("<h3>Index</h3>")?; if (len(decls.types) != 0) { fmt::println("<h4>Types</h4>")?; diff --git a/crypto/README b/crypto/README @@ -0,0 +1,3 @@ +crypto provides implementations of various cryptography-related standards. + +Hare's cryptography implementation has not been audited.