create static docs site with module options

This commit is contained in:
Bryton Hall 2022-08-28 15:22:43 -04:00 committed by GitHub
parent e3127e8c14
commit e75b801a31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 448 additions and 19 deletions

View file

@ -126,11 +126,12 @@ with lib; let
};
indexOf = lst: value:
head (filter (v: v != -1) (imap0 (i: v:
if v == value
then i
else -1)
lst));
head (filter (v: v != -1) (imap0
(i: v:
if v == value
then i
else -1)
lst));
compareVersions = ver1: ver2: let
getVersion = substring 1 10;
@ -302,7 +303,7 @@ in {
type = types.submodule {
imports =
[
(./generated + ''/v'' + cfg.version + ".nix")
./generated/v${cfg.version}.nix
apiOptions
]
++ customResourceOptions;