lix/doc/manual/generate-builtins.nix

17 lines
355 B
Nix
Raw Normal View History

2020-09-16 12:55:24 +00:00
with builtins;
with import ./utils.nix;
builtins:
concatStrings (map
(name:
let builtin = builtins.${name}; in
"<dt id=\"${name}\"><a href=\"#${name}\"><code>${name} "
+ concatStringsSep " " (map (s: "<var>${s}</var>") builtin.args)
+ "</code></a></dt>"
+ "<dd>\n\n"
+ builtin.doc
+ "\n\n</dd>"
2020-09-16 12:55:24 +00:00
)
(attrNames builtins))