parent
5194199d25
commit
20e5b7dac4
5 changed files with 34 additions and 22 deletions
apps/gen-docs
12
apps/gen-docs/getConfigMeta.nix
Normal file
12
apps/gen-docs/getConfigMeta.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
configs: let
|
||||
inherit (builtins) mapAttrs replaceStrings;
|
||||
|
||||
trimNewlines = s: replaceStrings ["\n"] [" "] s;
|
||||
in {
|
||||
attrs =
|
||||
mapAttrs (_: v: {
|
||||
roleDesc = trimNewlines (v.config.meta.roleDescription or "");
|
||||
hwDesc = trimNewlines (v.config.meta.hardwareDescription or "");
|
||||
})
|
||||
configs;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue