mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
Rename newOptionAttrSetToDocList -> optionAttrSetToDocList
This commit is contained in:
parent
82ad8c5ce0
commit
04690da3bd
2 changed files with 7 additions and 6 deletions
|
@ -266,8 +266,7 @@ rec {
|
|||
|
||||
# Generate documentation template from the list of option declaration like
|
||||
# the set generated with filterOptionSets.
|
||||
optionAttrSetToDocList = ignore: newOptionAttrSetToDocList;
|
||||
newOptionAttrSetToDocList = attrs:
|
||||
optionAttrSetToDocList = attrs:
|
||||
let options = collect isOption attrs; in
|
||||
fold (opt: rest:
|
||||
let
|
||||
|
@ -285,7 +284,7 @@ rec {
|
|||
|
||||
subOptions =
|
||||
if opt ? options then
|
||||
newOptionAttrSetToDocList opt.options
|
||||
optionAttrSetToDocList opt.options
|
||||
else
|
||||
[];
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue