mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
docs: treat internal options as invisible
`internal` options are intended to be implicitly not `visible`. This is already handled correctly by the nixos tooling, but our custom tooling did not correctly handle the edge case. This lead to strange cases where an internal option is not included in the docs, but its sub-options were still visible.
This commit is contained in:
parent
e5974b316d
commit
60e88b870c
1 changed files with 2 additions and 2 deletions
|
@ -41,9 +41,9 @@ let
|
|||
isVisible =
|
||||
opts:
|
||||
if lib.isOption opts then
|
||||
opts.visible or true
|
||||
opts.visible or true && !(opts.internal or false)
|
||||
else if opts.isOption then
|
||||
opts.index.options.visible or true
|
||||
opts.index.options.visible or true && !(opts.index.options.internal or false)
|
||||
else
|
||||
let
|
||||
filterFunc = lib.filterAttrs (_: v: if lib.isAttrs v then isVisible v else true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue