2 A basic documentation generating module.
3 Declares and defines a `docs` option, suitable for making assertions about
4 the extraction "phase" of documentation generation.
16 traceListSeq = l: v: lib.foldl' (a: b: lib.traceSeq b a) v l;
21 options.docs = mkOption {
22 type = types.lazyAttrsOf types.raw;
24 All options to be rendered, without any visibility filtering applied.
30 if length values > 1 then
32 abort "Multiple options with the same name: ${name}"
34 assert length values == 1;
38 (opt: { ${opt.name} = opt; })
39 (lib.optionAttrSetToDocList options)