generated docs with another tool
This commit is contained in:
21
docs.nix
21
docs.nix
@@ -20,8 +20,27 @@
|
||||
)
|
||||
];
|
||||
};
|
||||
|
||||
replaceNixPathWithRelative =
|
||||
p:
|
||||
let
|
||||
match = builtins.match "^/nix/store/[^/]+/(.*)$" p;
|
||||
in
|
||||
if match != null then
|
||||
"https://gitlab.com/quirinecker/dotfiles-modules/" + builtins.elemAt match 0
|
||||
else
|
||||
p;
|
||||
|
||||
transformOptions =
|
||||
o:
|
||||
let
|
||||
declarations = o.declarations;
|
||||
mappedDeclarations = builtins.map (d: replaceNixPathWithRelative d) declarations;
|
||||
in
|
||||
o // { declarations = mappedDeclarations; };
|
||||
in
|
||||
pkgs.nixosOptionsDoc {
|
||||
inherit (eval) options;
|
||||
options = eval.options;
|
||||
transformOptions = o: transformOptions o;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user