mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixos/modules: Expose the internal module in the top-level documentation
This commit is contained in:
parent
1e6a84b7af
commit
3759a77fcd
2 changed files with 11 additions and 6 deletions
|
@ -655,7 +655,7 @@ runTests {
|
|||
modules = [ module ];
|
||||
}).options;
|
||||
|
||||
locs = filter (o: ! o.internal) (optionAttrSetToDocList options);
|
||||
locs = filter (o: ! o.internal) (optionAttrSetToDocList (removeAttrs options [ "_module" ]));
|
||||
in map (o: o.loc) locs;
|
||||
expected = [ [ "foo" ] [ "foo" "<name>" "bar" ] [ "foo" "bar" ] ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue