1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 06:53:54 +02:00

Generate builtins section of the manual

This commit is contained in:
Eelco Dolstra 2020-08-24 14:49:30 +02:00
parent a990f063ff
commit 0f314f3c25
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
5 changed files with 36 additions and 3 deletions

View file

@ -0,0 +1,6 @@
. | to_entries | sort_by(.key) | map(
" - `builtins." + .key + "` "
+ (.value.args | map("*" + . + "*") | join(" "))
+ " \n\n"
+ (.value.doc | split("\n") | map(" " + . + "\n") | join("")) + "\n\n"
) | join("")