feat(gen-docs): clean up presentation of output
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
d2c7ee7e25
commit
b32fbc08bd
3 changed files with 5 additions and 4 deletions
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
writeShellApplication,
|
||||
jq,
|
||||
pandoc,
|
||||
...
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "gen-docs";
|
||||
runtimeInputs = [pandoc];
|
||||
runtimeInputs = [jq pandoc];
|
||||
text = builtins.readFile ./script.sh;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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$
|
||||
|
|
Loading…
Reference in a new issue