Anchor link for builtin functions in HTML doc

This commit is contained in:
Guillaume Desforges 2022-02-23 15:07:01 +01:00
parent 2cc645a91a
commit 6462ee61c7

View File

@ -6,9 +6,9 @@ builtins:
concatStrings (map
(name:
let builtin = builtins.${name}; in
"<dt><code>${name} "
"<dt id=\"${name}\"><a href=\"#${name}\"><code>${name} "
+ concatStringsSep " " (map (s: "<var>${s}</var>") builtin.args)
+ "</code></dt>"
+ "</code></a></dt>"
+ "<dd>\n\n"
+ builtin.doc
+ "\n\n</dd>"