We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e832ffc commit c369dbaCopy full SHA for c369dba
pkgs/doc.nix
@@ -16,6 +16,23 @@ let
16
})
17
];
18
})) options;
19
+
20
+ transformOptions = opt: opt // {
21
+ declarations = map (decl:
22
+ let
23
+ root = toString ../.;
24
+ declStr = toString decl;
25
+ declPath = lib.removePrefix (toString ../.) decl;
26
+ in
27
+ if lib.hasPrefix root declStr
28
+ # Rewrite links from ../. in the /nix/store to the source on Github
29
+ then {
30
+ name = "microvm.nix${declPath}";
31
+ url = "https://github.com/astro/microvm.nix/tree/main${declPath}";
32
+ }
33
+ else decl
34
+ ) opt.declarations;
35
+ };
36
};
37
38
microvmDoc = makeOptionsDoc ../nixos-modules/microvm/options.nix;
0 commit comments