Skip to content

Commit

Permalink
Use grid of cards for team gallery (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored Mar 12, 2024
1 parent c313a1e commit f6680ba
Show file tree
Hide file tree
Showing 19 changed files with 939 additions and 999 deletions.
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,20 @@ prepare:
git submodule update --init
python gen_config.py

TEAMS_DIR = static/gallery
# All translations share the <team>.toml files in the en translation
TEAMS_DIR = content/en/teams
TEAMS = emeritus-maintainers maintainers docs-team triage-team survey-team web-team
TEAMS_QUERY = python themes/scientific-python-hugo-theme/tools/team_query.py

$(TEAMS_DIR):
mkdir -p $(TEAMS_DIR)

$(TEAMS_DIR)/%.md: $(TEAMS_DIR)
$(TEAMS_QUERY) --org numpy --team "$*" > $(TEAMS_DIR)/$*.html
$(TEAMS_DIR)/%.toml:
$(TEAMS_QUERY) --org numpy --team "$*" > $(TEAMS_DIR)/$*.toml

teams-clean: prepare
for team in $(TEAMS); do \
rm -f $(TEAMS_DIR)/$${team}.html ;\
rm -f $(TEAMS_DIR)/$${team}.toml ;\
done

teams: | teams-clean $(patsubst %,$(TEAMS_DIR)/%.md,$(TEAMS)) ## generates numpy.org team gallery pages
teams: | teams-clean $(patsubst %,$(TEAMS_DIR)/%.toml,$(TEAMS)) ## generates numpy.org team gallery pages

serve: prepare ## serve the website
hugo $(BASEURLARG) --printI18nWarnings server -D
Expand Down
24 changes: 0 additions & 24 deletions content/en/teams.md

This file was deleted.

69 changes: 69 additions & 0 deletions content/en/teams/docs-team.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/4336207?u=564d623a8c9d710c3520841b83458b0bf1eae010&v=4"'
alt = 'Avatar of Rohit Goswami'
{{< /image >}}
Rohit Goswami'''
link = 'https://github.com/HaoZeke'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/43481325?u=8c0c0adbf3f2efd2cce72951d3554064c7bbfce3&v=4"'
alt = 'Avatar of Inessa Pawson'
{{< /image >}}
Inessa Pawson'''
link = 'https://github.com/InessaPawson'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/46167686?u=b5ca05a767012822d06b8bc16e3cd5ca0d1cafe9&v=4"'
alt = 'Avatar of Mars Lee'
{{< /image >}}
Mars Lee'''
link = 'https://github.com/MarsBarLee'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/823911?u=1dd52e6dcca6a7a35b6644935cdd33a6e166a596&v=4"'
alt = 'Avatar of Matti Picus'
{{< /image >}}
Matti Picus'''
link = 'https://github.com/mattip'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/3949932?u=aacac68df60d2cf64c17c7e5aa17adf8b738aa7b&v=4"'
alt = 'Avatar of Melissa Weber Mendonça'
{{< /image >}}
Melissa Weber Mendonça'''
link = 'https://github.com/melissawm'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/60316606?u=229ba03253068b0a4f206b0be08f7a9e76c832f1&v=4"'
alt = 'Avatar of Mukulika'
{{< /image >}}
Mukulika'''
link = 'https://github.com/Mukulikaa'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/1268991?u=974707b96081a9705f3a239c0773320f353ee02f&v=4"'
alt = 'Avatar of Ross Barnowski'
{{< /image >}}
Ross Barnowski'''
link = 'https://github.com/rossbar'
89 changes: 89 additions & 0 deletions content/en/teams/emeritus-maintainers.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/9040124?v=4"'
alt = 'Avatar of Allan Haldane'
{{< /image >}}
Allan Haldane'''
link = 'https://github.com/ahaldane'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/20568?v=4"'
alt = 'Avatar of Ondřej Čertík'
{{< /image >}}
Ondřej Čertík'''
link = 'https://github.com/certik'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/25111?v=4"'
alt = 'Avatar of David Cournapeau'
{{< /image >}}
David Cournapeau'''
link = 'https://github.com/cournape'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/3343990?v=4"'
alt = 'Avatar of Jaime'
{{< /image >}}
Jaime'''
link = 'https://github.com/jaimefrio'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/123428?v=4"'
alt = 'Avatar of Jarrod Millman'
{{< /image >}}
Jarrod Millman'''
link = 'https://github.com/jarrodmillman'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/542663?v=4"'
alt = 'Avatar of Julian Taylor'
{{< /image >}}
Julian Taylor'''
link = 'https://github.com/juliantaylor'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/399551?u=d4a592a0763568448a8eaa06b680ee9584a8c6e0&v=4"'
alt = 'Avatar of Mark Wiebe'
{{< /image >}}
Mark Wiebe'''
link = 'https://github.com/mwiebe'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/609896?u=935a2bf5f98be8c08d87eaac095f1f3bc3332490&v=4"'
alt = 'Avatar of Nathaniel J. Smith'
{{< /image >}}
Nathaniel J. Smith'''
link = 'https://github.com/njsmith'

[[item]]
type = 'card'
classcard = 'text-center'
body = '''{{< image >}}
src = 'https://avatars.githubusercontent.com/u/254880?v=4"'
alt = 'Avatar of Travis E. Oliphant'
{{< /image >}}
Travis E. Oliphant'''
link = 'https://github.com/teoliphant'
36 changes: 36 additions & 0 deletions content/en/teams/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: NumPy Teams
sidebar: false
---

We are an international team on a mission to support scientific and research
communities worldwide by building quality, open-source software.
[Join us]({{< relref "/contribute" >}})!

### Maintainers

{{< grid1 file="maintainers.toml" columns="2 3 4 5" />}}

### Docs team

{{< grid1 file="docs-team.toml" columns="2 3 4 5" />}}

### Web team

{{< grid1 file="web-team.toml" columns="2 3 4 5" />}}

### Triage team

{{< grid1 file="triage-team.toml" columns="2 3 4 5" />}}

### Survey team

{{< grid1 file="survey-team.toml" columns="2 3 4 5" />}}

### Emeritus maintainers

{{< grid1 file="emeritus-maintainers.toml" columns="2 3 4 5" />}}

# Governance

For the list of the Steering Council members, please see [here](https://numpy.org/about/).
Loading

0 comments on commit f6680ba

Please sign in to comment.