ignore devices/families when extracting docs

pull/2/head
Daniel Barlow 2023-12-09 16:59:33 +00:00
parent aff312bbbe
commit 15d570f749
1 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
with import <nixpkgs> {} ;
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";