Skip to content

Commit

Permalink
Don't include store docs in every manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 29, 2024
1 parent f671903 commit baff34d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions doc/manual/generate-manpage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ let

maybeProse =
# FIXME: this is a horrible hack to keep `nix help-stores` working.
# the correct answer to this is to remove that command and replace it
# by statically generated manpages or the output of something like `nix
# store info <store type>`.
let
help-stores = ''
${index}
Expand All @@ -121,7 +118,7 @@ let
};
in
optionalString (details ? doc) (
if match "@store-types@" details.doc != [ ]
if match ".*@store-types@.*" details.doc != null
then help-stores
else details.doc
);
Expand Down

0 comments on commit baff34d

Please sign in to comment.