docs: swap "url" and "maintainers" in documentation

This commit is contained in:
Gaetan Lepage 2024-03-21 10:17:52 +01:00 committed by Gaétan Lepage
parent a89c8a9a97
commit 2d4ebda245

View file

@ -68,9 +68,9 @@ with lib; let
maintainers = lib.unique (options.config.meta.maintainers."${info.file}" or []); maintainers = lib.unique (options.config.meta.maintainers."${info.file}" or []);
in in
"# ${lib.last path}\n\n" "# ${lib.last path}\n\n"
+ (lib.optionalString (info.url != null) "Url: [${info.url}](${info.url})\n\n")
+ (lib.optionalString (builtins.length maintainers > 0) + (lib.optionalString (builtins.length maintainers > 0)
"Maintainers: ${lib.concatStringsSep ", " (builtins.map (m: m.name) maintainers)}\n\n") "Maintainers: ${lib.concatStringsSep ", " (builtins.map (m: m.name) maintainers)}\n\n")
+ (lib.optionalString (info.url != null) "Url: [${info.url}](${info.url})\n\n")
else null; else null;
}; };