feat(docs): control whether to link modules definition to git repository
This commit is contained in:
parent
d566e9e937
commit
d1d6468e19
1 changed files with 6 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
"^docs/.*"
|
"^docs/.*"
|
||||||
],
|
],
|
||||||
|
linkToRepo ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
|
|
@ -90,7 +91,11 @@ stdenvNoCC.mkDerivation {
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = relPath file;
|
name = relPath file;
|
||||||
url = "https://git.shellgod.icu/Sk7Str1p3/nixos/src/branch/main/${relPath file}";
|
url =
|
||||||
|
if linkToRepo then
|
||||||
|
"https://git.shellgod.icu/Sk7Str1p3/nixos/src/branch/main/${relPath file}"
|
||||||
|
else
|
||||||
|
"file://${decl}";
|
||||||
}
|
}
|
||||||
) opt.declarations;
|
) opt.declarations;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue