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:
parent
a990f063ff
commit
0f314f3c25
5 changed files with 36 additions and 3 deletions
6
doc/manual/generate-builtins.jq
Normal file
6
doc/manual/generate-builtins.jq
Normal 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("")
|
Loading…
Add table
Add a link
Reference in a new issue