ignore devices/families when extracting docs
This commit is contained in:
parent
aff312bbbe
commit
15d570f749
1 changed files with 4 additions and 3 deletions
|
@ -1,9 +1,10 @@
|
||||||
with import <nixpkgs> {} ;
|
with import <nixpkgs> {} ;
|
||||||
|
|
||||||
let
|
let
|
||||||
devices = builtins.readDir ../devices;
|
inherit (builtins) stringLength readDir filter;
|
||||||
inherit (builtins) stringLength;
|
devices = filter (n: n != "families")
|
||||||
texts = lib.mapAttrsToList (n: t:
|
(lib.mapAttrsToList (n: t: n) (readDir ../devices));
|
||||||
|
texts = map (n:
|
||||||
let d = import ../devices/${n}/default.nix;
|
let d = import ../devices/${n}/default.nix;
|
||||||
d' = {
|
d' = {
|
||||||
description = "${n}\n${substring 0 (stringLength n) "********************************"}\n";
|
description = "${n}\n${substring 0 (stringLength n) "********************************"}\n";
|
||||||
|
|
Loading…
Reference in a new issue