From 15d570f749304fb148cbcb7cd07d90890405ce2c Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 9 Dec 2023 16:59:33 +0000 Subject: [PATCH] ignore devices/families when extracting docs --- doc/hardware.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/hardware.nix b/doc/hardware.nix index e3ef138..e3733e9 100644 --- a/doc/hardware.nix +++ b/doc/hardware.nix @@ -1,9 +1,10 @@ with import {} ; let - devices = builtins.readDir ../devices; - inherit (builtins) stringLength; - texts = lib.mapAttrsToList (n: t: + inherit (builtins) stringLength readDir filter; + devices = filter (n: n != "families") + (lib.mapAttrsToList (n: t: n) (readDir ../devices)); + texts = map (n: let d = import ../devices/${n}/default.nix; d' = { description = "${n}\n${substring 0 (stringLength n) "********************************"}\n";