mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-27 20:57:17 +02:00

This looks a lot better (and is also more semantically meaningful). Since this list is generated in a Nix expression, I don't think using HTML here is going to be the thing that puts people off modifying this part of the documentation!
16 lines
315 B
Nix
16 lines
315 B
Nix
with builtins;
|
|
with import ./utils.nix;
|
|
|
|
builtins:
|
|
|
|
concatStrings (map
|
|
(name:
|
|
let builtin = builtins.${name}; in
|
|
"<dt><code>${name} "
|
|
+ concatStringsSep " " (map (s: "<var>${s}</var>") builtin.args)
|
|
+ "</code></dt>"
|
|
+ "<dd>\n\n"
|
|
+ builtin.doc
|
|
+ "\n\n</dd>"
|
|
)
|
|
(attrNames builtins))
|