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,
|
writeShellApplication,
|
||||||
|
jq,
|
||||||
pandoc,
|
pandoc,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "gen-docs";
|
name = "gen-docs";
|
||||||
runtimeInputs = [pandoc];
|
runtimeInputs = [jq pandoc];
|
||||||
text = builtins.readFile ./script.sh;
|
text = builtins.readFile ./script.sh;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
packageMetaFunc=$(cat << EOF
|
packageMetaFunc=$(cat << EOF
|
||||||
(x: {
|
(x: {
|
||||||
attrs = builtins.mapAttrs (_: v: {
|
attrs = builtins.mapAttrs (_: v: {
|
||||||
desc = v.meta.description or "";
|
desc = builtins.replaceStrings ["\n"] [""] (v.meta.description or "");
|
||||||
homepage = v.meta.homepage or "";
|
homepage = v.meta.homepage or "";
|
||||||
}) x.\${builtins.currentSystem};
|
}) (builtins.removeAttrs x.\${builtins.currentSystem} ["default"]);
|
||||||
})
|
})
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,5 +7,5 @@ This directory contains every derivations for devShells exposed by this flake.
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ---- | ----------- |
|
| ---- | ----------- |
|
||||||
$for(attrs/pairs)$
|
$for(attrs/pairs)$
|
||||||
| $it.key$ | $it.value.desc$ |
|
| $it.key$ | $it.value.desc/nowrap$ |
|
||||||
$endfor$
|
$endfor$
|
||||||
|
|
Loading…
Reference in a new issue