aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-13 14:41:28 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-09-13 14:45:21 +0200
commit49a932fb18add471feefc469fb45fc44313bd5c6 (patch)
tree716a8abc8682f190b22d1b2fecb4ed45bb87ae55 /doc
parent14205debb244b925d685e3645c4deef937fa78ec (diff)
nix --help: Display help using lowdown instead of man
Fixes #4476. Fixes #5231.
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/generate-manpage.nix2
-rw-r--r--doc/manual/local.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual/generate-manpage.nix b/doc/manual/generate-manpage.nix
index 964b57086..4fc9abea1 100644
--- a/doc/manual/generate-manpage.nix
+++ b/doc/manual/generate-manpage.nix
@@ -89,7 +89,7 @@ let
in
let
- manpages = processCommand { filename = "nix"; command = "nix"; def = command; };
+ manpages = processCommand { filename = "nix"; command = "nix"; def = builtins.fromJSON command; };
summary = concatStrings (map (manpage: " - [${manpage.command}](command-ref/new-cli/${manpage.name})\n") manpages);
in
(listToAttrs manpages) // { "SUMMARY.md" = summary; }
diff --git a/doc/manual/local.mk b/doc/manual/local.mk
index 930afa44f..5e61b2671 100644
--- a/doc/manual/local.mk
+++ b/doc/manual/local.mk
@@ -44,7 +44,7 @@ $(d)/src/SUMMARY.md: $(d)/src/SUMMARY.md.in $(d)/src/command-ref/new-cli
$(d)/src/command-ref/new-cli: $(d)/nix.json $(d)/generate-manpage.nix $(bindir)/nix
@rm -rf $@
- $(trace-gen) $(nix-eval) --write-to $@ --expr 'import doc/manual/generate-manpage.nix (builtins.fromJSON (builtins.readFile $<))'
+ $(trace-gen) $(nix-eval) --write-to $@ --expr 'import doc/manual/generate-manpage.nix (builtins.readFile $<)'
$(d)/src/command-ref/conf-file.md: $(d)/conf-file.json $(d)/generate-options.nix $(d)/src/command-ref/conf-file-prefix.md $(bindir)/nix
@cat doc/manual/src/command-ref/conf-file-prefix.md > $@.tmp