rose-pine-nix/dev/option-doc.nix
seth 5b5648c10e
chore(modules): factor out option doc generation (#152)
* chore(modules): factor out option doc generation

* ci: only validate sources on pushes to main
2024-04-29 16:21:14 -04:00

19 lines
329 B
Nix

{ lib
, nixosOptionsDoc
,
}: { version
, modules
,
}:
let
eval = lib.evalModules {
modules = modules ++ [{ _module.check = false; }];
};
doc = nixosOptionsDoc {
options = lib.filterAttrs (n: _: n != "_module") eval.options;
documentType = "none";
revision = version;
};
in
doc.optionsCommonMark