Skip to content

Commit d232f2f

Browse files
authored
Merge pull request #5 from MPUSP/dev
fix: various smaller fixes
2 parents 2fc5cd4 + 98b7e47 commit d232f2f

6 files changed

Lines changed: 32 additions & 22 deletions

File tree

blog/2025-02-01-welcome/index.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

blog/2026-01-06-welcome/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
slug: newpage
3+
title: New MPUSP Github page released
4+
authors: [michael]
5+
tags: [announcements]
6+
---
7+
8+
The bioinformatics platform of the MPUSP has a **new Github page**!
9+
10+
The page is hosted on our institutional Github account, and provides basic information about our projects, members, and activities.
11+
The page is regularly updated by fetching the latest stats from Github automatically, and presenting overview figures.
12+
We will also try to make regular announcements about new tools, publications and other activities.
13+
14+
If you like to get in touch with us, please write to bioinformatics@mpusp.mpg.de.
15+
16+
<!-- truncate -->

blog/tags.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
documentation:
2-
label: documentation
3-
permalink: /documentation
4-
description: Documentation of workflows
1+
announcements:
2+
label: announcements
3+
permalink: /announcements
4+
description: Announcements and updates about MPUSP

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const config = {
118118
},
119119
{
120120
label: "MPUSP Home Page",
121-
href: "https://mpusp.mpg.de",
121+
href: "https://www.mpusp.mpg.de",
122122
},
123123
],
124124
},

src/components/Members/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styles from "./styles.module.css";
44
import statsJson from "@site/static/data/member_stats.json";
55

66
const statsKeys = [
7-
{ label: "Public repos", key: "public_repos", symbol: " 📦" },
7+
{ label: "MPUSP repos", key: "mpusp_repos", symbol: " 📦" },
88
{ label: "Followers", key: "followers", symbol: " 👥" },
99
{ label: "Starred", key: "starred", symbol: " ⭐" },
1010
{ label: "Watched", key: "watched", symbol: " 👁️" },

src/scripts/generate_page.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ def get_config_readme(repo_name):
131131
if repo.get_releases().totalCount > 0
132132
else None
133133
),
134-
"contributors": repo.get_contributors().totalCount,
134+
"contributors": [
135+
i.login for i in repo.get_contributors() if not i.login.endswith("[bot]")
136+
],
135137
"deployments": get_total_deployments(repo),
136138
"downloads": sum(
137139
asset.download_count
@@ -165,11 +167,7 @@ def get_config_readme(repo_name):
165167
),
166168
"topics": repo.get_topics(),
167169
"readme": get_config_readme(repo.full_name),
168-
"authors": [
169-
i.login
170-
for i in repo.get_contributors()
171-
if not i.login.endswith("[bot]")
172-
],
170+
"authors": repos[repo.name]["contributors"],
173171
"bg_value": round(
174172
int(hashlib.md5(repo.name.encode()).hexdigest()[:6], 16)
175173
% 360
@@ -179,7 +177,13 @@ def get_config_readme(repo_name):
179177
}
180178
)
181179

180+
# add count of repos a member contributed to
181+
for member in members:
182+
member["mpusp_repos"] = sum(
183+
1 for repo in repos.values() if member["github_name"] in repo["contributors"]
184+
)
182185

186+
# logging
183187
logger.info("collected stats for %s repositories", len(repos))
184188

185189
# create summary data for org

0 commit comments

Comments
 (0)