forked from mirrors/nixpkgs
Manual: Don't show obsolete/deprecated options
This commit is contained in:
parent
29014a47fb
commit
ec0911ce7f
|
@ -276,6 +276,7 @@ rec {
|
|||
declarations = map (x: toString x.source) opt.declarations;
|
||||
#definitions = map (x: toString x.source) opt.definitions;
|
||||
internal = opt.internal or false;
|
||||
visible = opt.visible or true;
|
||||
}
|
||||
// optionalAttrs (opt ? example) { example = scrubOptionValue opt.example; }
|
||||
// optionalAttrs (opt ? default) { default = scrubOptionValue opt.default; }
|
||||
|
|
|
@ -7,7 +7,7 @@ with pkgs.lib;
|
|||
|
||||
let
|
||||
|
||||
options' = filter (x: !x.internal) (optionAttrSetToDocList options);
|
||||
options' = filter (x: x.visible && !x.internal) (optionAttrSetToDocList options);
|
||||
|
||||
optionsXML = builtins.toFile "options.xml" (builtins.unsafeDiscardStringContext (builtins.toXML options'));
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ let
|
|||
options = setFrom (mkOption {
|
||||
description = "${status.name} of <option>${to}</option>.";
|
||||
apply = x: status.msg.use (toOf config);
|
||||
visible = false;
|
||||
});
|
||||
}] ++
|
||||
[{
|
||||
|
|
Loading…
Reference in a new issue