diff --git a/blog/2025-02-01-welcome/index.md b/blog/2025-02-01-welcome/index.md deleted file mode 100644 index 6cfcb15..0000000 --- a/blog/2025-02-01-welcome/index.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -slug: welcome -title: Welcome -authors: [michael] -tags: [documentation] ---- - -Content to be added. - - diff --git a/blog/2026-01-06-welcome/index.md b/blog/2026-01-06-welcome/index.md new file mode 100644 index 0000000..84e67c5 --- /dev/null +++ b/blog/2026-01-06-welcome/index.md @@ -0,0 +1,16 @@ +--- +slug: newpage +title: New MPUSP Github page released +authors: [michael] +tags: [announcements] +--- + +The bioinformatics platform of the MPUSP has a **new Github page**! + +The page is hosted on our institutional Github account, and provides basic information about our projects, members, and activities. +The page is regularly updated by fetching the latest stats from Github automatically, and presenting overview figures. +We will also try to make regular announcements about new tools, publications and other activities. + +If you like to get in touch with us, please write to bioinformatics@mpusp.mpg.de. + + diff --git a/blog/tags.yml b/blog/tags.yml index 8b41aaa..be24d5e 100644 --- a/blog/tags.yml +++ b/blog/tags.yml @@ -1,4 +1,4 @@ -documentation: - label: documentation - permalink: /documentation - description: Documentation of workflows +announcements: + label: announcements + permalink: /announcements + description: Announcements and updates about MPUSP diff --git a/docusaurus.config.js b/docusaurus.config.js index 6765b49..14ce680 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -118,7 +118,7 @@ const config = { }, { label: "MPUSP Home Page", - href: "https://mpusp.mpg.de", + href: "https://www.mpusp.mpg.de", }, ], }, diff --git a/src/components/Members/index.jsx b/src/components/Members/index.jsx index 38d1b4e..11835af 100644 --- a/src/components/Members/index.jsx +++ b/src/components/Members/index.jsx @@ -4,7 +4,7 @@ import styles from "./styles.module.css"; import statsJson from "@site/static/data/member_stats.json"; const statsKeys = [ - { label: "Public repos", key: "public_repos", symbol: " 📦" }, + { label: "MPUSP repos", key: "mpusp_repos", symbol: " 📦" }, { label: "Followers", key: "followers", symbol: " 👥" }, { label: "Starred", key: "starred", symbol: " ⭐" }, { label: "Watched", key: "watched", symbol: " 👁️" }, diff --git a/src/scripts/generate_page.py b/src/scripts/generate_page.py index a1afac8..d939c35 100644 --- a/src/scripts/generate_page.py +++ b/src/scripts/generate_page.py @@ -131,7 +131,9 @@ def get_config_readme(repo_name): if repo.get_releases().totalCount > 0 else None ), - "contributors": repo.get_contributors().totalCount, + "contributors": [ + i.login for i in repo.get_contributors() if not i.login.endswith("[bot]") + ], "deployments": get_total_deployments(repo), "downloads": sum( asset.download_count @@ -165,11 +167,7 @@ def get_config_readme(repo_name): ), "topics": repo.get_topics(), "readme": get_config_readme(repo.full_name), - "authors": [ - i.login - for i in repo.get_contributors() - if not i.login.endswith("[bot]") - ], + "authors": repos[repo.name]["contributors"], "bg_value": round( int(hashlib.md5(repo.name.encode()).hexdigest()[:6], 16) % 360 @@ -179,7 +177,13 @@ def get_config_readme(repo_name): } ) +# add count of repos a member contributed to +for member in members: + member["mpusp_repos"] = sum( + 1 for repo in repos.values() if member["github_name"] in repo["contributors"] + ) +# logging logger.info("collected stats for %s repositories", len(repos)) # create summary data for org