feat(docs): link module definition path to repository

This commit is contained in:
Sk7Str1p3 2026-07-26 19:28:38 +00:00
parent 69c741e87a
commit d566e9e937
Signed by: Sk7Str1p3
SSH key fingerprint: SHA256:GcXqjfo0IHK280c6aH9o5SmcOWyqMS8gjfOtDQ3gr/Q

View file

@ -79,6 +79,21 @@ stdenvNoCC.mkDerivation {
moduleOptionsDoc =
(nixosOptionsDoc {
options = lib.removeAttrs modulesEval.options [ "_module" ];
transformOptions =
opt:
opt
// {
declarations = map (
decl:
let
file = toString decl;
in
{
name = relPath file;
url = "https://git.shellgod.icu/Sk7Str1p3/nixos/src/branch/main/${relPath file}";
}
) opt.declarations;
};
}).optionsCommonMark;
in
{