diff --git a/docs/mdbook/default.nix b/docs/mdbook/default.nix index d0a58674..1f8cbf45 100644 --- a/docs/mdbook/default.nix +++ b/docs/mdbook/default.nix @@ -37,7 +37,8 @@ let removeWhitespace = builtins.replaceStrings [ " " ] [ "" ]; - getSubOptions = opts: path: removeUnwanted (opts.type.getSubOptions path); + getSubOptions = + opts: path: optionalAttrs (isVisible opts) (removeUnwanted (opts.type.getSubOptions path)); isVisible = opts: