feat(gen-docs): clean up presentation of output
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-01-20 11:40:10 -05:00
parent d2c7ee7e25
commit b32fbc08bd
3 changed files with 5 additions and 4 deletions

View file

@ -1,10 +1,11 @@
{
writeShellApplication,
jq,
pandoc,
...
}:
writeShellApplication {
name = "gen-docs";
runtimeInputs = [pandoc];
runtimeInputs = [jq pandoc];
text = builtins.readFile ./script.sh;
}

View file

@ -1,9 +1,9 @@
packageMetaFunc=$(cat << EOF
(x: {
attrs = builtins.mapAttrs (_: v: {
desc = v.meta.description or "";
desc = builtins.replaceStrings ["\n"] [""] (v.meta.description or "");
homepage = v.meta.homepage or "";
}) x.\${builtins.currentSystem};
}) (builtins.removeAttrs x.\${builtins.currentSystem} ["default"]);
})
EOF
)

View file

@ -7,5 +7,5 @@ This directory contains every derivations for devShells exposed by this flake.
| Name | Description |
| ---- | ----------- |
$for(attrs/pairs)$
| $it.key$ | $it.value.desc$ |
| $it.key$ | $it.value.desc/nowrap$ |
$endfor$