docs(aio): add missing mentors for collaborators (#29142)

Also improve the presentation of the org chart

PR Close #29142
This commit is contained in:
Alex Eagle 2019-04-10 16:06:22 -07:00 committed by Igor Minar
parent 77aff0b7bb
commit f98093a30d
3 changed files with 16 additions and 7 deletions

View File

@ -276,7 +276,8 @@
"twitter": "deborahkurata", "twitter": "deborahkurata",
"website": "http://blogs.msmvps.com/deborahk/", "website": "http://blogs.msmvps.com/deborahk/",
"bio": "Deborah is a software developer, author, and Google Developer Expert. She is author of several Pluralsight courses including: 'Angular 2: Getting Started' and Angular Routing", "bio": "Deborah is a software developer, author, and Google Developer Expert. She is author of several Pluralsight courses including: 'Angular 2: Getting Started' and Angular Routing",
"groups": ["Collaborators", "GDE"] "groups": ["Collaborators", "GDE"],
"mentor": "kara"
}, },
"alyssa": { "alyssa": {
"name": "Alyssa Nicoll", "name": "Alyssa Nicoll",
@ -341,7 +342,8 @@
"twitter": "ManfredSteyer", "twitter": "ManfredSteyer",
"website": "https://www.softwarearchitekt.at", "website": "https://www.softwarearchitekt.at",
"bio": "Trainer and Consultant with focus on Angular. Writes for O'Reilly, the German Java Magazine and Heise. Regularly speaks at conferences.", "bio": "Trainer and Consultant with focus on Angular. Writes for O'Reilly, the German Java Magazine and Heise. Regularly speaks at conferences.",
"groups": ["GDE"] "mentor": "mgechev",
"groups": ["GDE", "Collaborators"]
}, },
"maximsalnikov": { "maximsalnikov": {
"name": "Maxim Salnikov", "name": "Maxim Salnikov",
@ -773,7 +775,7 @@
}, },
"globegitter": { "globegitter": {
"name": "Markus Padourek", "name": "Markus Padourek",
"groups": ["Collaborator"], "groups": ["Collaborators"],
"mentor": "gregmagolan", "mentor": "gregmagolan",
"picture": "globegitter.jpg" "picture": "globegitter.jpg"
} }

View File

@ -2,6 +2,7 @@
( (
cd $(dirname $0) cd $(dirname $0)
echo "digraph {" echo "digraph {"
echo "rankdir=RL; splines=ortho; node [shape=box];"
jq -f org_chart.jq --raw-output < ../../content/marketing/contributors.json jq -f org_chart.jq --raw-output < ../../content/marketing/contributors.json
echo "}" echo "}"
) | dot -Tpng > org.png ) | dot -Tpng > org.png

View File

@ -1,11 +1,17 @@
# Produces a GraphViz Dot file from the data in the contributors.json file. # Produces a GraphViz Dot file from the data in the contributors.json file.
# Documentation for this syntax at https://stedolan.github.io/jq/manual # Documentation for this syntax at https://stedolan.github.io/jq/manual
to_entries to_entries
| map(select((.value.groups | index("Angular")) or (.value.groups | index("Collaborators")))) | map(select(
| map(.value |= {name: .name, lead: (.lead // .mentor // "")}) (.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( | map(
"\(.key|tojson) [ label = \(.value.name|tojson) ] ", "\(.key|tojson) [ label=\(.value.name|tojson) fillcolor=\(.value.fillcolor|tojson) style=filled ] ",
"\(.key|tojson) -> \(.value.lead|tojson)" (if .value.lead != "" then "\(.key|tojson) -> \(.value.lead|tojson)" else "" end)
) )
[] []