From acc88399fb802310aeda444ab2547fbc384ec958 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Thu, 2 Jan 2025 14:28:54 +0100 Subject: [PATCH 1/2] feat(api): add authors.teams --- api/v2.6/authors.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/v2.6/authors.json b/api/v2.6/authors.json index 363022f05eae..9805889c138f 100644 --- a/api/v2.6/authors.json +++ b/api/v2.6/authors.json @@ -30,6 +30,13 @@ layout: null {% endfor %} ] {% endif %} + {% if author.teams %} + , "teams": [ + {% for team in author.teams %} + "{{team}}"{% unless forloop.last %},{% endunless %} + {% endfor %} + ] + {% endif %} {% if author.previously %} , "previously": [ {% for previous in author.previously %} From f7fc94ad3e5c726d804c88cc51efe902f9efcc4e Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Tue, 7 Jan 2025 11:46:51 +0100 Subject: [PATCH 2/2] feat(api): add teams.json --- api/v2.6/teams.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 api/v2.6/teams.json diff --git a/api/v2.6/teams.json b/api/v2.6/teams.json new file mode 100644 index 000000000000..fa5d5c330a47 --- /dev/null +++ b/api/v2.6/teams.json @@ -0,0 +1,19 @@ +--- +layout: null +--- + +{ "links": + { "self": "{{ site.url }}/teams" } +, "data": + [ + {% for team in site.teams %} + { "id" : "{{ team.id | remove: '/team/' }}" + , "type" : "team" + , "name" : "{{ team.name }}" + , "mission" : "{{ team.mission | strip_newlines }}" + , "incubator" : "{{ team.incubator }}" + } + {% unless forloop.last %},{% endunless %} + {% endfor %} + ] +}