feat(docs): link module definition path to repository
This commit is contained in:
parent
69c741e87a
commit
d566e9e937
1 changed files with 15 additions and 0 deletions
|
|
@ -79,6 +79,21 @@ stdenvNoCC.mkDerivation {
|
||||||
moduleOptionsDoc =
|
moduleOptionsDoc =
|
||||||
(nixosOptionsDoc {
|
(nixosOptionsDoc {
|
||||||
options = lib.removeAttrs modulesEval.options [ "_module" ];
|
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;
|
}).optionsCommonMark;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue