mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
docs: render maintainers with github links
If a maintainer has their github defined, render their name as a link to their github profile.
This commit is contained in:
parent
cc9023fb1d
commit
5c9b98e64d
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ let
|
|||
let
|
||||
info = optionalAttrs (hasAttrByPath path nixvimInfo) (getAttrFromPath path nixvimInfo);
|
||||
maintainers = lib.unique (options.config.meta.maintainers.${info.file} or [ ]);
|
||||
maintainersNames = builtins.map (m: m.name) maintainers;
|
||||
maintainersNames = builtins.map maintToMD maintainers;
|
||||
maintToMD = m: if m ? github then "[${m.name}](https://github.com/${m.github})" else m.name;
|
||||
in
|
||||
# Make sure this path has a valid info attrset
|
||||
if info ? file && info ? description && info ? url then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue