rose-pine-nix/docs/options-doc.nix
seth 1f11b0aeb0
feat!: move docs to website (#170)
* feat!: move docs to website

* feat: flesh out docs site

* docs: add changelog to website

* docs: fix `npins add` command snippet

* docs: remove broken declarations

* ci: remove local docgen

* docs: update site FAQ
2024-05-21 16:57:51 -04:00

33 lines
697 B
Nix

{ lib
, nixosOptionsDoc
,
}: { version
, modules
,
}:
(
nixosOptionsDoc {
options =
builtins.removeAttrs
(
lib.evalModules {
modules = modules ++ [{
options.system.nixos.release = lib.mkOption {
type = lib.types.str;
default = lib.trivial.release;
readOnly = true;
};
config = {
_module.check = false;
};
}];
}
).options [ "_module" "system" ];
transformOptions = opt: builtins.removeAttrs opt [ "declarations" ];
documentType = "none";
revision = version;
}
).optionsCommonMark