docs: refactor wrapper-options docs

This commit is contained in:
Matt Sturgeon 2024-10-21 17:17:15 +01:00
parent 5992a22821
commit 0562e519ec
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
6 changed files with 54 additions and 19 deletions

View file

@ -42,13 +42,6 @@ let
];
};
hmOptions = builtins.removeAttrs (lib.evalModules {
modules = [
../wrappers/modules/hm.nix
{ _module.check = false; } # Ignore missing option declarations
];
}).options [ "_module" ];
options-json =
(pkgs.nixosOptionsDoc {
inherit (evaledModules) options;
@ -83,7 +76,7 @@ in
# Do not check if documentation builds fine on darwin as it fails:
# > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535)
docs = pkgs.callPackage ./mdbook {
inherit evaledModules hmOptions transformOptions;
inherit evaledModules transformOptions;
# TODO: Find how to handle stable when 24.11 lands
search = mkSearch "/nixvim/search/";
};