docs(aio): add missing mentors for collaborators (#29142)
Also improve the presentation of the org chart PR Close #29142
This commit is contained in:
@ -1,11 +1,17 @@
|
||||
# Produces a GraphViz Dot file from the data in the contributors.json file.
|
||||
# Documentation for this syntax at https://stedolan.github.io/jq/manual
|
||||
to_entries
|
||||
| map(select((.value.groups | index("Angular")) or (.value.groups | index("Collaborators"))))
|
||||
| map(.value |= {name: .name, lead: (.lead // .mentor // "")})
|
||||
| map(select(
|
||||
(.value.groups | index("Angular")) or
|
||||
(.value.groups | index("Collaborators"))))
|
||||
| map(.value |= {
|
||||
name: .name,
|
||||
lead: (.lead // .mentor // ""),
|
||||
fillcolor: (if .groups | index("Collaborators") then "aquamarine" else "beige" end),
|
||||
})
|
||||
| map(
|
||||
"\(.key|tojson) [ label = \(.value.name|tojson) ] ",
|
||||
"\(.key|tojson) -> \(.value.lead|tojson)"
|
||||
"\(.key|tojson) [ label=\(.value.name|tojson) fillcolor=\(.value.fillcolor|tojson) style=filled ] ",
|
||||
(if .value.lead != "" then "\(.key|tojson) -> \(.value.lead|tojson)" else "" end)
|
||||
)
|
||||
[]
|
||||
|
||||
|
Reference in New Issue
Block a user