From 2cc645a91a07458fd23e0aacd6ccdf63cad199b9 Mon Sep 17 00:00:00 2001 From: Guillaume Desforges Date: Wed, 23 Feb 2022 15:06:13 +0100 Subject: [PATCH 1/3] Add html make target --- doc/manual/local.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/manual/local.mk b/doc/manual/local.mk index 6b232a736..c1ce8aaeb 100644 --- a/doc/manual/local.mk +++ b/doc/manual/local.mk @@ -72,6 +72,7 @@ $(d)/builtins.json: $(bindir)/nix @mv $@.tmp $@ # Generate the HTML manual. +html: $(docdir)/manual/index.html install: $(docdir)/manual/index.html # Generate 'nix' manpages. From 6462ee61c7c6ea7a93c01c89bf311fe8f454f35f Mon Sep 17 00:00:00 2001 From: Guillaume Desforges Date: Wed, 23 Feb 2022 15:07:01 +0100 Subject: [PATCH 2/3] Anchor link for builtin functions in HTML doc --- doc/manual/generate-builtins.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/manual/generate-builtins.nix b/doc/manual/generate-builtins.nix index 92c7b1a31..b481beecd 100644 --- a/doc/manual/generate-builtins.nix +++ b/doc/manual/generate-builtins.nix @@ -6,9 +6,9 @@ builtins: concatStrings (map (name: let builtin = builtins.${name}; in - "
${name} " + "
${name} " + concatStringsSep " " (map (s: "${s}") builtin.args) - + "
" + + "" + "
\n\n" + builtin.doc + "\n\n
" From cfbf9ee2ce35b64ced1822c132bd46bd4fd848b2 Mon Sep 17 00:00:00 2001 From: Guillaume Desforges Date: Thu, 24 Feb 2022 13:50:50 +0100 Subject: [PATCH 3/3] Anchor with prefix --- doc/manual/generate-builtins.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/manual/generate-builtins.nix b/doc/manual/generate-builtins.nix index b481beecd..6c8b88da2 100644 --- a/doc/manual/generate-builtins.nix +++ b/doc/manual/generate-builtins.nix @@ -6,7 +6,7 @@ builtins: concatStrings (map (name: let builtin = builtins.${name}; in - "
${name} " + "
${name} " + concatStringsSep " " (map (s: "${s}") builtin.args) + "
" + "
\n\n"