Skip to content

Commit 0fe3318

Browse files
committed
Dynamically load contributors
1 parent c8e9287 commit 0fe3318

2 files changed

Lines changed: 31 additions & 270 deletions

File tree

content/people/_index.md

Lines changed: 1 addition & 252 deletions
Original file line numberDiff line numberDiff line change
@@ -327,258 +327,7 @@ preface = "For people participating in and interacting with the consortium, ther
327327

328328
[contributors]
329329
name = "Contributors"
330-
text = "All this work makes sense only in the context of the larger community of contributors and users of <span class=\"backticked\">scverse</span> projects. Open-source <span class=\"backticked\">scverse</span> projects are open to contributions, and over 150 people have contributed to <span class=\"backticked\">scverse</span> packages."
331-
332-
[[contributors.members]]
333-
name = "Adam Gayoso"
334-
url = "https://github.com/adamgayoso"
335-
img = "https://avatars.githubusercontent.com/u/10859440?v=4"
336-
337-
338-
[[contributors.members]]
339-
name = "Alex Wolf"
340-
url = "https://github.com/falexwolf"
341-
img = "https://avatars.githubusercontent.com/u/16916678?v=4"
342-
343-
344-
[[contributors.members]]
345-
name = "Alma Andersson"
346-
url = "https://github.com/almaan"
347-
img = "https://avatars.githubusercontent.com/u/8884097?v=4"
348-
349-
350-
[[contributors.members]]
351-
name = "Anna Schaar"
352-
url = "https://github.com/AnnaChristina"
353-
img = "https://avatars.githubusercontent.com/u/44966624?v=4"
354-
355-
356-
[[contributors.members]]
357-
name = "Brian Hie"
358-
url = "https://github.com/brianhie"
359-
img = "https://avatars.githubusercontent.com/u/6365340?v=4"
360-
361-
362-
[[contributors.members]]
363-
name = "Can Ergen"
364-
url = "https://github.com/cane11"
365-
img = "https://avatars.githubusercontent.com/u/9596415?v=4"
366-
367-
368-
[[contributors.members]]
369-
name = "Carlos Talavera-López"
370-
url = "https://github.com/cartal"
371-
img = "https://avatars.githubusercontent.com/u/3297906?v=4"
372-
373-
374-
[[contributors.members]]
375-
name = "Danila Bredikhin"
376-
url = "https://github.com/gtca"
377-
img = "https://avatars.githubusercontent.com/u/32863903?v=4"
378-
379-
380-
[[contributors.members]]
381-
name = "David S. Fischer"
382-
url = "https://github.com/davidsebfischer"
383-
img = "https://avatars.githubusercontent.com/u/11200205?v=4"
384-
385-
386-
[[contributors.members]]
387-
name = "Davide Cittaro"
388-
url = "https://github.com/dawe"
389-
img = "https://avatars.githubusercontent.com/u/121868?v=4"
390-
391-
392-
[[contributors.members]]
393-
name = "Giovanni Palla"
394-
url = "https://github.com/giovp"
395-
img = "https://avatars.githubusercontent.com/u/25887487?v=4"
396-
397-
398-
[[contributors.members]]
399-
name = "Gregor Sturm"
400-
url = "https://github.com/grst"
401-
img = "https://avatars.githubusercontent.com/u/7051479?v=4"
402-
403-
404-
[[contributors.members]]
405-
name = "Gökçen Eraslan"
406-
url = "https://github.com/gokceneraslan"
407-
img = "https://avatars.githubusercontent.com/u/1140359?v=4"
408-
409-
410-
[[contributors.members]]
411-
name = "Ilia Kats"
412-
url = "https://github.com/ilia-kats"
413-
img = "https://avatars.githubusercontent.com/u/3499574?v=4"
414-
415-
416-
[[contributors.members]]
417-
name = "Isaac Virshup"
418-
url = "https://github.com/ivirshup"
419-
img = "https://avatars.githubusercontent.com/u/8238804?v=4"
420-
421-
422-
[[contributors.members]]
423-
name = "Jan Lause"
424-
url = "https://github.com/jlause"
425-
img = "https://avatars.githubusercontent.com/u/34481813?v=4"
426-
427-
428-
[[contributors.members]]
429-
name = "Jeffrey Regier"
430-
url = "https://github.com/jeff-regier"
431-
img = "https://avatars.githubusercontent.com/u/8953355?v=4"
432-
433-
434-
[[contributors.members]]
435-
name = "Jonathan Manning"
436-
url = "https://github.com/pinin4fjords"
437-
img = "https://avatars.githubusercontent.com/u/5775915?v=4"
438-
439-
440-
[[contributors.members]]
441-
name = "Justin Hong"
442-
url = "https://github.com/jjhong922"
443-
img = "https://avatars.githubusercontent.com/u/14086852?v=4"
444-
445-
446-
[[contributors.members]]
447-
name = "Karin Hrovatin"
448-
url = "https://github.com/Hrovatin"
449-
img = "https://avatars.githubusercontent.com/u/47607471?v=4"
450-
451-
452-
[[contributors.members]]
453-
name = "Kathy Wu"
454-
url = "https://github.com/wukathy"
455-
img = "https://avatars.githubusercontent.com/u/45545133?v=4"
456-
457-
458-
[[contributors.members]]
459-
name = "Kevin Yamauchi"
460-
url = "https://github.com/kevinyamauchi"
461-
img = "https://avatars.githubusercontent.com/u/1120672?v=4"
462-
463-
464-
[[contributors.members]]
465-
name = "Luca Marconato"
466-
url = "https://github.com/LucaMarconato"
467-
img = "https://avatars.githubusercontent.com/u/2664412?v=4"
468-
469-
470-
[[contributors.members]]
471-
name = "Lukas Heumos"
472-
url = "https://github.com/Zethson"
473-
img = "https://avatars.githubusercontent.com/u/21954664?v=4"
474-
475-
476-
[[contributors.members]]
477-
name = "Mohammad Lotfollahi"
478-
url = "https://github.com/M0hammadL"
479-
img = "https://avatars.githubusercontent.com/u/33202701?v=4"
480-
481-
482-
[[contributors.members]]
483-
name = "Malte D. Luecken"
484-
url = "https://github.com/LuckyMD"
485-
img = "https://avatars.githubusercontent.com/u/13019956?v=4"
486-
487-
488-
[[contributors.members]]
489-
name = "Maren Büttner"
490-
url = "https://github.com/mbuttner"
491-
img = "https://avatars.githubusercontent.com/u/24408322?v=4"
492-
493-
494-
[[contributors.members]]
495-
name = "Marius Lange"
496-
url = "https://github.com/Marius1311"
497-
img = "https://avatars.githubusercontent.com/u/24494650?v=4"
498-
499-
500-
[[contributors.members]]
501-
name = "Max Frank"
502-
url = "https://github.com/mffrank"
503-
img = "https://avatars.githubusercontent.com/u/18049979?v=4"
504-
505-
506-
[[contributors.members]]
507-
name = "Michal Klein"
508-
url = "https://github.com/michalk8"
509-
img = "https://avatars.githubusercontent.com/u/46717574?v=4"
510-
511-
512-
[[contributors.members]]
513-
name = "Philipp Angerer"
514-
url = "https://github.com/flying-sheep"
515-
img = "https://avatars.githubusercontent.com/u/291575?v=4"
516-
517-
518-
[[contributors.members]]
519-
name = "Philipp Weiler"
520-
url = "https://github.com/WeilerP"
521-
img = "https://avatars.githubusercontent.com/u/28675704?v=4"
522-
523-
524-
[[contributors.members]]
525-
name = "Pierre Boyeau"
526-
url = "https://github.com/PierreBoyeau"
527-
img = "https://avatars.githubusercontent.com/u/23222597?v=4"
528-
529-
530-
[[contributors.members]]
531-
name = "Romain Lopez"
532-
url = "https://github.com/romain-lopez"
533-
img = "https://avatars.githubusercontent.com/u/21249167?v=4"
534-
535-
536-
[[contributors.members]]
537-
name = "Sergei Rybakov"
538-
url = "https://github.com/Koncopd"
539-
img = "https://avatars.githubusercontent.com/u/3065736?v=4"
540-
541-
542-
[[contributors.members]]
543-
name = "Tal Ashuach"
544-
url = "https://github.com/talashuach"
545-
img = "https://avatars.githubusercontent.com/u/22898826?v=4"
546-
547-
548-
[[contributors.members]]
549-
name = "Tommaso Biancalani"
550-
url = "https://github.com/lewlin"
551-
img = "https://avatars.githubusercontent.com/u/15822760?v=4"
552-
553-
554-
[[contributors.members]]
555-
name = "Valeh Valiollah Pour Amiri"
556-
url = "https://github.com/watiss"
557-
img = "https://avatars.githubusercontent.com/u/4193454?v=4"
558-
559-
560-
[[contributors.members]]
561-
name = "Valentine Svensson"
562-
url = "https://github.com/vals"
563-
img = "https://avatars.githubusercontent.com/u/668803?v=4"
564-
565-
566-
[[contributors.members]]
567-
name = "Vitalii Kleshchevnikov"
568-
url = "https://github.com/vitkl"
569-
img = "https://avatars.githubusercontent.com/u/22567383?v=4"
570-
571-
572-
[[contributors.members]]
573-
name = "Zoe Piran"
574-
url = "https://github.com/zoepiran"
575-
img = "https://avatars.githubusercontent.com/u/43661890?v=4"
576-
577-
578-
[[contributors.members]]
579-
name = "Zoë Steier"
580-
url = "https://github.com/zoesteier"
581-
img = "https://avatars.githubusercontent.com/u/25038766?v=4"
330+
text = "All this work makes sense only in the context of the larger community of contributors and users of <span class=\"backticked\">scverse</span> projects. Open-source <span class=\"backticked\">scverse</span> projects are open to contributions, and all these people have contributed to our community (ranked by number of GitHub contributions)."
582331

583332

584333
+++

layouts/people/list.html

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,36 @@ <h3>{{ .name }}</h3>
7373
{{ .text | safeHTML }}
7474
</p>
7575
{{ end }}
76-
{{ if .members }}
77-
<p></p>
78-
<div class="contributor-list pt-3">
79-
{{ range $person := .members }}
80-
<a href="{{ .url }}">
81-
<img
82-
src="{{ .img }}"
83-
class="border rounded-circle me-1 mb-1"
84-
height="100"
85-
width="100"
86-
title="{{ .name }}"
87-
data-bs-toggle="tooltip"
88-
target="_blank"
89-
alt="{{ .name }}"
90-
/>
91-
</a>
92-
{{ end }}
93-
</div>
76+
<p></p>
77+
{{ $url := "https://scverse.org/stats/contributors.json" }}
78+
{{ $resource := resources.GetRemote $url }}
79+
{{ with $resource }}
80+
{{ $data := . | transform.Unmarshal }}
81+
{{ if $data.contributors }}
82+
<div class="contributor-list pt-3">
83+
{{ range $index, $person := first 49 $data.contributors }}
84+
<a href="{{ .html_url }}" target="_blank">
85+
<img
86+
src="{{ .avatar_url }}"
87+
class="border rounded-circle me-1 mb-1"
88+
height="100"
89+
width="100"
90+
title="{{ .name }}"
91+
data-bs-toggle="tooltip"
92+
alt="{{ .name }}"
93+
/>
94+
</a>
95+
{{ end }}
96+
</div>
97+
<div class="mt-4">
98+
<p><strong>Other contributors:</strong></p>
99+
<p>
100+
{{ range $index, $person := after 49 $data.contributors }}
101+
<a href="{{ .html_url }}" target="_blank">{{ .name }}</a>{{ if lt $index (sub (len (after 49 $data.contributors)) 1) }}, {{ end }}
102+
{{ end }}
103+
</p>
104+
</div>
105+
{{ end }}
94106
{{ end }}
95107
</div>
96108
{{ end }}

0 commit comments

Comments
 (0)