commit 778ea83c97c103b76f821658d6ae998db864bbb3
parent 1a7501c6fb5155ab14bdd3fecc1679cbcb606e16
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 21 Apr 2021 10:20:10 -0400
haredoc: skip cmd dir, rig up meta-modules
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha
@@ -52,6 +52,7 @@ fn emit_html(ctx: *context) (void | error) = {
fmt::println("<ul class='submodules'>")?;
for (let i = 0z; i < len(ctx.version.subdirs); i += 1) {
let dir = ctx.version.subdirs[i];
+ if (dir == "cmd") continue;
fmt::printf("<li><a href='");
html::escape(os::stdout, dir);
fmt::printf("'>");
diff --git a/scripts/gen-docs b/scripts/gen-docs
@@ -10,7 +10,7 @@ mkdir -p docs/html/
curl https://harelang.org/mascot.jpg > docs/html/mascot.jpg
haredoc -Fhtml > docs/html/index.html
-for mod in $modules
+for mod in $modules compress format encoding math crypto hare
do
path="$(echo $mod | sed -e 's?::?/?g')"
mkdir -p docs/html/$path