1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 18:01:16 +02:00

nix --help: Display help using lowdown instead of man

Fixes #4476.
Fixes #5231.
This commit is contained in:
Eelco Dolstra 2021-09-13 14:41:28 +02:00
parent 14205debb2
commit 49a932fb18
8 changed files with 89 additions and 25 deletions

View file

@ -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; }