misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux
Rust bittorrent-clientdebriddownload-acceleratordownload-managerdownloadmanagereguifile-downloadergallery-dlidmidm-alternativeinternet-download-managerm3u8-downloadermagnetplaylist-downloaderreal-debridrusttorrent-clientvideo-downloaderyoutube-downloaderyt-dlp
Thank the people who make MDM possible: a hall of fame on the site, the README and the release notes (#299)
Ahmed Nefzaoui0bdf76e7c910
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.ymlindex 3b4274b7..a0e60ca9 100644--- a/.github/workflows/pages.yml+++ b/.github/workflows/pages.yml@@ -1,7 +1,8 @@# Builds misterdownloadmanager.com (tools/website/build.py: website/, docs/, CHANGELOG.md and the# language list, then every page again in each language of i18n/site/, tools/website/sitei18n.py)# and publishes it with GitHub Pages, on every push to main that touches them, and-# once a day so the repository's star, fork and issue counts on the site stay current.+# once a day so the repository's star, fork and issue counts and its contributors (the home page,+# /contributors.html, the News page; tools/contributors.py) on the site stay current.name: Websiteon:@@ -15,6 +16,7 @@ on:- "i18n/languages.tsv"- "i18n/site/**"- "tools/website/**"+ - "tools/contributors.py"- ".github/workflows/pages.yml"schedule:- cron: "17 4 * * *"diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 89f2631f..39bfdd7b 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -265,6 +265,8 @@ jobs:permissions:contents: write # the releaseactions: write # rebuilding the website+ issues: read # the release notes' Thanks to (tools/contributors.py)+ pull-requests: readif: >-always() && startsWith(github.ref, 'refs/tags/') && needs.windows.result == 'success' &&needs.extension.result == 'success'@@ -319,15 +321,26 @@ jobs:"the first? Give them a go and tell us how it went in an " +"[issue](https://github.com/${{ github.repository }}/issues).`n`n"}+ # Last, "Thanks to": everyone who opened a pull request or an issue, or commented, on+ # GitHub since the previous release (by version) was published, with their avatars and+ # @-mentions (tools/contributors.py thanks; the maintainer, Claude and bots aren't+ # counted). Nobody, or GitHub not answering, leaves it out; it never stops the release.+ $thanks = ""+ try {+ $thanks = (python3 tools/contributors.py thanks "${{ github.ref_name }}" | Out-String).Trim()+ } catch {+ Write-Warning "The contributors couldn't be listed: $_"+ }+ if ($thanks) { $thanks = "`n`n" + $thanks }$all = (Get-ChildItem dist -File).FullNameif ($m.Success -and $m.Groups[1].Value.Trim()) {# Links into the repository (docs/x.md) would resolve against the release's page:# point them at the tagged files.$notes = $m.Groups[1].Value.Trim() -replace '\]\((?![a-z]+:|#)([^)\s]+)\)', '](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/$1)'- Set-Content -Encoding utf8 notes.md ($invite + $notes)+ Set-Content -Encoding utf8 notes.md ($invite + $notes + $thanks)gh release create "${{ github.ref_name }}" --latest --title $title --notes-file notes.md $all} else {- Set-Content -Encoding utf8 notes.md $invite+ Set-Content -Encoding utf8 notes.md ($invite + $thanks.Trim())gh release create "${{ github.ref_name }}" --latest --title $title --notes-file notes.md --generate-notes $all}# The website links to the latest published release: rebuild it now that the files arediff --git a/.impeccable/design.json b/.impeccable/design.jsonindex 952a92b0..1225abca 100644--- a/.impeccable/design.json+++ b/.impeccable/design.json@@ -708,6 +708,14 @@"description": "The board's slim sticky header: brand, links, language, the green Download.","html": "<header class=\"ds-top\"><b class=\"ds-brand\">Mister Download Manager</b><nav class=\"ds-nav\"><a href=\"#\" aria-current=\"page\">Features</a><a href=\"#\">Download</a><a href=\"#\">Help</a><a href=\"#\">Benchmark</a></nav><a class=\"ds-langs\" href=\"#\">English</a><a class=\"ds-top-dl\" href=\"#\">Download</a></header>","css": ".ds-top { display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 24px; background: var(--board, #1f63d6); color: var(--on-board, #ffffff); border-bottom: 1px solid var(--board-edge, #3b78e0); font-family: Archivo, 'Segoe UI', system-ui, sans-serif; } .ds-brand { font-size: 18px; font-weight: 800; font-stretch: 80%; } .ds-nav { display: flex; gap: 4px; } .ds-nav a, .ds-langs { padding: 8px 10px; border-radius: 6px; color: inherit; font-size: 15px; font-weight: 600; text-decoration: none; } .ds-nav a:hover, .ds-langs:hover { background: color-mix(in srgb, currentColor 12%, transparent); } .ds-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; } .ds-langs { margin-inline-start: auto; border-radius: 8px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 55%, transparent); } .ds-top-dl { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--go, #57cc5a); color: var(--go-ink, #08200b); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 1.5px rgba(4,32,10,.55); } .ds-top-dl:hover { background: var(--go-hover, #47b94a); } .ds-top a:focus-visible { outline: 3px solid var(--link, #0d58c9); outline-offset: 2px; }"+ },+ {+ "name": "The Crew",+ "kind": "avatar-row",+ "refersTo": "pile",+ "description": "Contributors' round photos linked to GitHub: an overlapping row on the hero's board with +N to /contributors.html; a ruled roster on that page; a row under each release on the News page.",+ "html": "<ul class=\"ds-pile\"><li><span class=\"ds-face\"></span></li><li><span class=\"ds-face\"></span></li><li><span class=\"ds-face\"></span></li><li><span class=\"ds-face ds-more\">+11</span></li></ul>",+ "css": ".ds-pile { display: flex; margin: 0; padding: 16px; list-style: none; background: var(--board, #1f63d6); } .ds-pile li + li { margin-inline-start: -8px; } .ds-face { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2, #f0f3f7); box-shadow: 0 0 0 2.5px var(--on-board, #ffffff); } .ds-more { background: var(--on-board, #ffffff); color: var(--board, #1f63d6); font: 800 15px/1 Archivo, 'Segoe UI', system-ui, sans-serif; }"}],"narrative": {diff --git a/.impeccable/surfaces/website-index-html.md b/.impeccable/surfaces/website-index-html.mdindex 06f9b2c1..eb148b53 100644--- a/.impeccable/surfaces/website-index-html.md+++ b/.impeccable/surfaces/website-index-html.md@@ -46,8 +46,10 @@ a contact shadow and a long soft one (no 3D turn, no pointer movement: the ownerthe window's grid cell so the section clears it. It carries the sender block (logo,name), the headline set large, the subline, the green Download action, macOS and Linux with theiricons, the fields (postage free; delivery time; for Windows 10 and 11; version and size) and the-barcode. A slim header above. Mobile: the window full width, the card below overlapping its lower-edge with a gentler tilt, the caption under it.+barcode. Under the window's caption, beside the label, on the board: "Made possible by these+amazing humans" and a row of the contributors' round photos with "+N" (the owner's choice,+2026-11-08: a "liked by" line). A slim header above. Mobile: the window full width, the card below overlapping its lower+edge with a gentler tilt, the caption under it, then the contributors' row.FORM: grounded candidate 5 of 7 (courier waybill and parcel label); seed:d1b9f806aa0c2dc4.Signature interaction: the tracking race, two shipments scanned event by event to the realdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 266be6ea..e51a4550 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -475,6 +475,11 @@ choose. And Linux, checked on a real desktop with every change.can't do yet; the home page lists them all, by group. The Themes page shows every built-in themein its light and dark side, and how to make your own theme file, try it without building MDM,and share it, with a prompt to give an AI assistant. What isn't in a release yet says so.+- **Made possible by these amazing humans**: the home page's first view thanks everyone who sent+ a pull request, opened an issue or joined a conversation on GitHub, with their round photos; the new+ [Contributors](https://misterdownloadmanager.com/contributors.html) page shows what each one did;+ each release, on the News page and in its notes on GitHub, ends with the people who helped since+ the one before; and the README thanks everyone too.### Changeddiff --git a/DESIGN.md b/DESIGN.mdindex ad03c03b..1cbd9b3b 100644--- a/DESIGN.md+++ b/DESIGN.md@@ -334,6 +334,12 @@ A feature page's first view repeats the home's memorable moment at a smaller sca### Theme TilesPaper tiles two to a row, each its screenshot (light or dark: the switch above the grid chooses, the site's theme by default) over a 1.5px ink rule, then the name and its feel. Rows share their heights (subgrid). The last tile is empty: no paper, a 2px dashed outline on the board, a dashed plus, "Make your own theme". The three make-your-own steps are numbered at poster scale (900, width 68%), because their order is the instruction.+### The Crew (contributors)+The people who make MDM possible, from GitHub's public record (`tools/contributors.py`): round photos that link to each GitHub profile, with the login in an ink tag over the photo on hover and focus (kept inside the row by `main.js`). Real photos only, and no counts or claims beyond what GitHub shows.+- **In the hero (the owner's choice: a "liked by" line):** on the board under the window's caption, beside the label (after the label and the caption under 980px). The title "Made possible by these amazing humans" in board text, 800 weight at width 78%; then one row of 44px photos that overlap by 8px, each ringed 2.5px in on-board so it reads on the blue board and the navy depot; then "+N", an on-board disc in board-coloured figures, which opens `/contributors.html`. The row shows 7, 11 or 15 photos by width (`PILE_TIERS`). Hover lifts a photo 3px; reduced motion keeps it still.+- **On `/contributors.html`:** one labelled sheet per group (pull requests, issues, comments), its people in a ruled roster of 1px hairlines: a 48px photo ringed 1.5px in ink, the login at 750 weight, the counts in ink-2 with their numbers in tabular ink.+- **At the end of each release on the News page:** "Thanks to", then 40px photos ringed in ink, row under row, and a fine line naming the release before.+## Do's and Don'ts### Do:diff --git a/README.md b/README.mdindex 1c4c5b6b..c9c6e969 100644--- a/README.md+++ b/README.md@@ -432,6 +432,43 @@ Bug reports and ideas are welcome in[Issues](https://github.com/anefzaoui/misterdownloadmanager/issues/new/choose): **Help → Report a problem**in the app fills in your version and system. Pull requests are accepted under the same licence: start with [CONTRIBUTING.md](CONTRIBUTING.md).+## Made possible by these amazing humans++Everyone who sent a pull request, opened an issue or joined a conversation here: thank you. People+with pull requests first, then issues, then comments; [the website](https://misterdownloadmanager.com/contributors.html)+shows what each one did.++<!-- contributors:start (python tools/contributors.py readme) -->+<p>+<a href="https://github.com/AzureKnigh7" title="AzureKnigh7"><img src="art/contributors/azureknigh7.png" width="48" height="48" alt="AzureKnigh7"></a>+<a href="https://github.com/specailm5" title="specailm5"><img src="art/contributors/specailm5.png" width="48" height="48" alt="specailm5"></a>+<a href="https://github.com/osunday" title="osunday"><img src="art/contributors/osunday.png" width="48" height="48" alt="osunday"></a>+<a href="https://github.com/SwiftyPop" title="SwiftyPop"><img src="art/contributors/swiftypop.png" width="48" height="48" alt="SwiftyPop"></a>+<a href="https://github.com/mfat" title="mfat"><img src="art/contributors/mfat.png" width="48" height="48" alt="mfat"></a>+<a href="https://github.com/shreeramncity" title="shreeramncity"><img src="art/contributors/shreeramncity.png" width="48" height="48" alt="shreeramncity"></a>+<a href="https://github.com/AwesomeIronman" title="AwesomeIronman"><img src="art/contributors/awesomeironman.png" width="48" height="48" alt="AwesomeIronman"></a>+<a href="https://github.com/praveenkumar2K06" title="praveenkumar2K06"><img src="art/contributors/praveenkumar2k06.png" width="48" height="48" alt="praveenkumar2K06"></a>+<a href="https://github.com/Twig6943" title="Twig6943"><img src="art/contributors/twig6943.png" width="48" height="48" alt="Twig6943"></a>+<a href="https://github.com/ADIxxDEV" title="ADIxxDEV"><img src="art/contributors/adixxdev.png" width="48" height="48" alt="ADIxxDEV"></a>+<a href="https://github.com/crse" title="crse"><img src="art/contributors/crse.png" width="48" height="48" alt="crse"></a>+<a href="https://github.com/dhrubo11" title="dhrubo11"><img src="art/contributors/dhrubo11.png" width="48" height="48" alt="dhrubo11"></a>+<a href="https://github.com/Drigva" title="Drigva"><img src="art/contributors/drigva.png" width="48" height="48" alt="Drigva"></a>+<a href="https://github.com/EnderDobra" title="EnderDobra"><img src="art/contributors/enderdobra.png" width="48" height="48" alt="EnderDobra"></a>+<a href="https://github.com/farjanatech" title="farjanatech"><img src="art/contributors/farjanatech.png" width="48" height="48" alt="farjanatech"></a>+<a href="https://github.com/gowzee" title="gowzee"><img src="art/contributors/gowzee.png" width="48" height="48" alt="gowzee"></a>+<a href="https://github.com/husnainahmedrana" title="husnainahmedrana"><img src="art/contributors/husnainahmedrana.png" width="48" height="48" alt="husnainahmedrana"></a>+<a href="https://github.com/justnxhom" title="justnxhom"><img src="art/contributors/justnxhom.png" width="48" height="48" alt="justnxhom"></a>+<a href="https://github.com/Maldo-0750" title="Maldo-0750"><img src="art/contributors/maldo-0750.png" width="48" height="48" alt="Maldo-0750"></a>+<a href="https://github.com/sadatdaniel" title="sadatdaniel"><img src="art/contributors/sadatdaniel.png" width="48" height="48" alt="sadatdaniel"></a>+<a href="https://github.com/SHURmanizer" title="SHURmanizer"><img src="art/contributors/shurmanizer.png" width="48" height="48" alt="SHURmanizer"></a>+<a href="https://github.com/Uyaii" title="Uyaii"><img src="art/contributors/uyaii.png" width="48" height="48" alt="Uyaii"></a>+<a href="https://github.com/Volcanify" title="Volcanify"><img src="art/contributors/volcanify.png" width="48" height="48" alt="Volcanify"></a>+<a href="https://github.com/Zekidt" title="Zekidt"><img src="art/contributors/zekidt.png" width="48" height="48" alt="Zekidt"></a>+<a href="https://github.com/Stark-0505" title="Stark-0505"><img src="art/contributors/stark-0505.png" width="48" height="48" alt="Stark-0505"></a>+<a href="https://github.com/dr-strange15" title="dr-strange15"><img src="art/contributors/dr-strange15.png" width="48" height="48" alt="dr-strange15"></a>+</p>+<!-- contributors:end -->+## ⭐ Star historyIf MDM saves you time, a star is the quickest way to say so, and it helps the next person finddiff --git a/ROADMAP.md b/ROADMAP.mdindex a4a209ba..dea8d495 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -387,6 +387,10 @@ Everything below ships together, in version 0.5.0.[Themes](https://misterdownloadmanager.com/themes.html) page with every built-in theme, light anddark, and how to make, try and share your own([#260](https://github.com/anefzaoui/misterdownloadmanager/issues/260))+- ✅ Thanks to the people who make MDM possible: everyone who sent a pull request, opened an issue+ or commented on GitHub, as round photos in the home page's first view and the README, on a+ [Contributors](https://misterdownloadmanager.com/contributors.html) page with what each one did,+ at the end of each release on the News page, and in each release's notes on GitHub- ✅ Themes ([#45](https://github.com/anefzaoui/misterdownloadmanager/issues/45)): today's look stays the default. Every colour, size and spacing nowcomes from the chosen theme (the classic look pixel for pixel the same); **View → Theme** withClassic, Native (follows the system's accent and contrast on Windows, Linux and macOS) and Highdiff --git a/art/contributors/adixxdev.png b/art/contributors/adixxdev.pngnew file mode 100644index 00000000..297b154dBinary files /dev/null and b/art/contributors/adixxdev.png differdiff --git a/art/contributors/awesomeironman.png b/art/contributors/awesomeironman.pngnew file mode 100644index 00000000..55820b6aBinary files /dev/null and b/art/contributors/awesomeironman.png differdiff --git a/art/contributors/azureknigh7.png b/art/contributors/azureknigh7.pngnew file mode 100644index 00000000..871f1fe4Binary files /dev/null and b/art/contributors/azureknigh7.png differdiff --git a/art/contributors/crse.png b/art/contributors/crse.pngnew file mode 100644index 00000000..2e9e8817Binary files /dev/null and b/art/contributors/crse.png differdiff --git a/art/contributors/dhrubo11.png b/art/contributors/dhrubo11.pngnew file mode 100644index 00000000..caa4498aBinary files /dev/null and b/art/contributors/dhrubo11.png differdiff --git a/art/contributors/dr-strange15.png b/art/contributors/dr-strange15.pngnew file mode 100644index 00000000..10bd74dcBinary files /dev/null and b/art/contributors/dr-strange15.png differdiff --git a/art/contributors/drigva.png b/art/contributors/drigva.pngnew file mode 100644index 00000000..7ec1c957Binary files /dev/null and b/art/contributors/drigva.png differdiff --git a/art/contributors/enderdobra.png b/art/contributors/enderdobra.pngnew file mode 100644index 00000000..7a3dcc4dBinary files /dev/null and b/art/contributors/enderdobra.png differdiff --git a/art/contributors/farjanatech.png b/art/contributors/farjanatech.pngnew file mode 100644index 00000000..a3f45bf0Binary files /dev/null and b/art/contributors/farjanatech.png differdiff --git a/art/contributors/gowzee.png b/art/contributors/gowzee.pngnew file mode 100644index 00000000..b6ee33b0Binary files /dev/null and b/art/contributors/gowzee.png differdiff --git a/art/contributors/husnainahmedrana.png b/art/contributors/husnainahmedrana.pngnew file mode 100644index 00000000..f5122d63Binary files /dev/null and b/art/contributors/husnainahmedrana.png differdiff --git a/art/contributors/justnxhom.png b/art/contributors/justnxhom.pngnew file mode 100644index 00000000..ac2d9ac1Binary files /dev/null and b/art/contributors/justnxhom.png differdiff --git a/art/contributors/maldo-0750.png b/art/contributors/maldo-0750.pngnew file mode 100644index 00000000..3081d441Binary files /dev/null and b/art/contributors/maldo-0750.png differdiff --git a/art/contributors/mfat.png b/art/contributors/mfat.pngnew file mode 100644index 00000000..0d3b0530Binary files /dev/null and b/art/contributors/mfat.png differdiff --git a/art/contributors/osunday.png b/art/contributors/osunday.pngnew file mode 100644index 00000000..5ff0fb27Binary files /dev/null and b/art/contributors/osunday.png differdiff --git a/art/contributors/praveenkumar2k06.png b/art/contributors/praveenkumar2k06.pngnew file mode 100644index 00000000..519550ffBinary files /dev/null and b/art/contributors/praveenkumar2k06.png differdiff --git a/art/contributors/sadatdaniel.png b/art/contributors/sadatdaniel.pngnew file mode 100644index 00000000..319d9c80Binary files /dev/null and b/art/contributors/sadatdaniel.png differdiff --git a/art/contributors/shreeramncity.png b/art/contributors/shreeramncity.pngnew file mode 100644index 00000000..85edecffBinary files /dev/null and b/art/contributors/shreeramncity.png differdiff --git a/art/contributors/shurmanizer.png b/art/contributors/shurmanizer.pngnew file mode 100644index 00000000..bf5bba86Binary files /dev/null and b/art/contributors/shurmanizer.png differdiff --git a/art/contributors/specailm5.png b/art/contributors/specailm5.pngnew file mode 100644index 00000000..be4923cfBinary files /dev/null and b/art/contributors/specailm5.png differdiff --git a/art/contributors/stark-0505.png b/art/contributors/stark-0505.pngnew file mode 100644index 00000000..8f649888Binary files /dev/null and b/art/contributors/stark-0505.png differdiff --git a/art/contributors/swiftypop.png b/art/contributors/swiftypop.pngnew file mode 100644index 00000000..05911b9cBinary files /dev/null and b/art/contributors/swiftypop.png differdiff --git a/art/contributors/twig6943.png b/art/contributors/twig6943.pngnew file mode 100644index 00000000..9843f77bBinary files /dev/null and b/art/contributors/twig6943.png differdiff --git a/art/contributors/uyaii.png b/art/contributors/uyaii.pngnew file mode 100644index 00000000..11bab1a6Binary files /dev/null and b/art/contributors/uyaii.png differdiff --git a/art/contributors/volcanify.png b/art/contributors/volcanify.pngnew file mode 100644index 00000000..5515dc4cBinary files /dev/null and b/art/contributors/volcanify.png differdiff --git a/art/contributors/zekidt.png b/art/contributors/zekidt.pngnew file mode 100644index 00000000..315a7d0fBinary files /dev/null and b/art/contributors/zekidt.png differdiff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex b2604c99..128d00b1 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -191,6 +191,15 @@ instance off the screen, crops and annotates it from the window's accessibilitylossless WebP; `make.py check` (CI) keeps the list, the pages and the files in step. Thepublished ones are taken on GitHub's Windows runner (`docs-shots.yml`).+## Contributors++`tools/contributors.py` reads who opened pull requests and issues, and who commented, from+GitHub's public API (the maintainer, Claude and bots left out) for every place that thanks them:+the website's home page, `/contributors.html` and each release on the News page (`build.py`, on+every build), each release's notes (`release.yml`, the people active since the release before)+and the README (`python tools/contributors.py readme` at each release's preparation: its round+photos are committed in `art/contributors/`, since GitHub can't round a picture in a README).+## Tests and benchmarks`cargo test` runs unit tests and end-to-end downloads against `mdm-labserver` with injecteddiff --git a/tools/contributors.py b/tools/contributors.pynew file mode 100644index 00000000..b5a76aaf--- /dev/null+++ b/tools/contributors.py@@ -0,0 +1,333 @@+#!/usr/bin/env python3+"""The people who make MDM possible, from GitHub's public record: everyone who opened a pull+request (merged or not) or an issue, or commented on one. One module for every place that thanks+them: the website (tools/website/build.py: the home page, /contributors.html, each release on the+News page), the README (`readme` below) and each release's notes on GitHub (`thanks`, run by+.github/workflows/release.yml).++Who counts, and in what order (the maintainer's decision, 2026-11-08):+- Not counted: the maintainer (MAINTAINER), Claude (any account whose login contains "claude" or+ "anthropic"), bots (a login ending in "[bot]", an account of type Bot, dependabot,+ github-actions) and deleted accounts ("ghost").+- People with pull requests first, then those who opened issues, then those who commented; each+ person once, in their highest group. Within a group, by how much they did (pull requests, then+ issues, then comments), then by login.+- A release thanks everyone active between the previous release's publication and its own: a+ pull request or an issue opened, or a comment written, in that window.++Only public GitHub data is read and shown: the login, the avatar, the profile's address and the+counts. Nothing from commits (no names, no emails), nothing from anywhere else.++GitHub's REST API: issues (pull requests included), issue comments (pull requests' conversations+included) and pull request review comments, page by page. With GITHUB_TOKEN (or GH_TOKEN) set,+5,000 requests an hour; without, 60, enough for a build or two. A rate limit or a network error+gives None, never half a list: the caller goes on without the people and says so.++ python tools/contributors.py list [--since ISO] [--until ISO] # the table, for a look+ python tools/contributors.py thanks vX.Y.Z # release notes' "Thanks to" section (Markdown)+ python tools/contributors.py readme # refresh the README's block and its avatars+"""+from __future__ import annotations++import argparse+import datetime+import io+import json+import os+import re+import sys+import time+import urllib.error+import urllib.parse+import urllib.request+from pathlib import Path++ROOT = Path(__file__).resolve().parents[1]+REPO = "anefzaoui/misterdownloadmanager"+MAINTAINER = "anefzaoui"+API = "https://api.github.com"+# The README's round avatars (`readme`), committed: GitHub can't round an image in a README.+README_AVATARS = ROOT / "art" / "contributors"+README_SIZE = 96 # pixels; shown at 48+# The order of the groups, highest first, and what each counts.+GROUPS = ("pr", "issue", "comment")+++def log(msg: str) -> None:+ print(f"contributors: {msg}", file=sys.stderr)+++# ---- GitHub ---------------------------------------------------------------------------------------++def _token() -> str:+ return os.environ.get("GITHUB_TOKEN") or os.environ.get("GH_TOKEN") or ""+++def _get(url: str) -> tuple[object, dict]:+ """One GET of the API, as (JSON, headers). Waits out a short secondary rate limit (up to a+ minute, three times) and GitHub's own passing errors; raises on anything else."""+ headers = {"Accept": "application/vnd.github+json", "User-Agent": "misterdownloadmanager-contributors",+ "X-GitHub-Api-Version": "2022-11-28"}+ if _token():+ headers["Authorization"] = f"Bearer {_token()}"+ for attempt in range(4):+ try:+ with urllib.request.urlopen(urllib.request.Request(url, headers=headers), timeout=20) as r:+ return json.load(r), dict(r.headers)+ except urllib.error.HTTPError as e:+ wait = e.headers.get("Retry-After")+ if e.code in (403, 429) and e.headers.get("X-RateLimit-Remaining") == "0":+ reset = e.headers.get("X-RateLimit-Reset")+ when = datetime.datetime.fromtimestamp(int(reset), datetime.timezone.utc).strftime("%H:%M UTC") if reset else "later"+ raise RuntimeError(f"GitHub's rate limit is used up until {when}"+ f"{'' if _token() else ' (set GITHUB_TOKEN for more)'}") from e+ if e.code in (403, 429) and wait and wait.isdigit() and int(wait) <= 60 and attempt < 3:+ time.sleep(int(wait))+ continue+ # A passing hiccup on GitHub's side (502, 503, 504): try again shortly.+ if e.code in (500, 502, 503, 504) and attempt < 3:+ time.sleep(2 * (attempt + 1))+ continue+ raise+ raise RuntimeError("GitHub kept asking to wait")+++def _pages(path: str, params: dict | None = None) -> list:+ """Every item of a listed endpoint, following its Link: rel="next" pages."""+ q = {"per_page": "100", **(params or {})}+ url = f"{API}/{path}?{urllib.parse.urlencode(q)}"+ items: list = []+ while url:+ data, headers = _get(url)+ if not isinstance(data, list):+ raise RuntimeError(f"{path}: not a list")+ items.extend(data)+ m = re.search(r'<([^>]+)>;\s*rel="next"', headers.get("Link", "") or headers.get("link", ""))+ url = m.group(1) if m else ""+ return items+++def excluded(user: dict | None) -> bool:+ """The maintainer, Claude, bots and deleted accounts: not in the thanks."""+ if not user or not user.get("login"):+ return True+ login = user["login"].lower()+ return (login == MAINTAINER.lower() or "claude" in login or "anthropic" in login+ or login.endswith("[bot]") or user.get("type") == "Bot"+ or login in ("dependabot", "github-actions", "ghost"))+++_ACTIVITY: dict[str, list[dict] | None] = {}+++def activity(repo: str = REPO, since: str = "") -> list[dict] | None:+ """Everything the counted people did: one {login, avatar, kind, at} per pull request, issue+ and comment ("pr", "issue", "comment"), at its creation time (ISO, UTC). `since` (ISO) leaves+ out what hasn't changed since then (GitHub's own filter, by update time; the caller still+ filters by creation). None when GitHub can't be read. Kept for the run: one read per build."""+ key = f"{repo}@{since}"+ if key in _ACTIVITY:+ return _ACTIVITY[key]+ p = {"since": since} if since else {}+ try:+ issues = _pages(f"repos/{repo}/issues", {"state": "all", **p})+ comments = _pages(f"repos/{repo}/issues/comments", p)+ reviews = _pages(f"repos/{repo}/pulls/comments", p)+ except Exception as e: # noqa: BLE001 — every caller goes on without the people+ log(f"GitHub couldn't be read ({e}); going on without the contributors")+ _ACTIVITY[key] = None+ return None+ out = []+ for i in issues:+ out.append((i.get("user"), "pr" if "pull_request" in i else "issue", i.get("created_at", "")))+ for c in comments + reviews:+ out.append((c.get("user"), "comment", c.get("created_at", "")))+ events = [{"login": u["login"], "avatar": u.get("avatar_url", ""), "kind": kind, "at": at}+ for u, kind, at in out if not excluded(u)]+ _ACTIVITY[key] = events+ return events+++def releases(repo: str = REPO) -> list[dict] | None:+ """The published releases, oldest first: {tag, version, at} (drafts left out). None when+ GitHub can't be read."""+ try:+ rel = _pages(f"repos/{repo}/releases")+ except Exception as e: # noqa: BLE001+ log(f"the releases couldn't be read ({e})")+ return None+ out = [{"tag": r["tag_name"], "version": r["tag_name"].lstrip("v"), "at": r["published_at"]}+ for r in rel if not r.get("draft") and r.get("published_at")]+ return sorted(out, key=lambda r: r["at"])+++def vparts(v: str) -> tuple[int, ...]:+ return tuple(int(x) for x in re.findall(r"\d+", v)[:3])+++def window(rels: list[dict], tag: str) -> tuple[str, str]:+ """A release's window, (since, until) in ISO: from the publication of the release before it+ (by version) to its own; until is now when it isn't published yet (the release workflow,+ just before it publishes). The first release's window starts at the beginning."""+ v = vparts(tag.lstrip("v"))+ own = next((r for r in rels if vparts(r["version"]) == v), None)+ before = [r for r in rels if vparts(r["version"]) < v]+ since = max((r["at"] for r in before), default="")+ until = own["at"] if own else datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")+ return since, until+++# ---- Counting -------------------------------------------------------------------------------------++def tally(events: list[dict], since: str = "", until: str = "") -> list[dict]:+ """The people, ranked: {login, avatar, profile, prs, issues, comments, group}, for what they+ did after `since` and up to `until` (ISO; either may be empty)."""+ people: dict[str, dict] = {}+ for e in events:+ if (since and e["at"] <= since) or (until and e["at"] > until):+ continue+ p = people.setdefault(e["login"].lower(), {+ "login": e["login"], "avatar": e["avatar"], "profile": f"https://github.com/{e['login']}",+ "prs": 0, "issues": 0, "comments": 0})+ p[{"pr": "prs", "issue": "issues", "comment": "comments"}[e["kind"]]] += 1+ for p in people.values():+ p["group"] = "pr" if p["prs"] else "issue" if p["issues"] else "comment"+ # (pull requests, issues, comments) highest first puts the groups in order by itself.+ return sorted(people.values(), key=lambda p: (-p["prs"], -p["issues"], -p["comments"], p["login"].lower()))+++def avatar(url: str, size: int) -> str:+ """The avatar's address at `size` pixels (GitHub's own image service)."""+ if not url:+ return ""+ return url + ("&" if "?" in url else "?") + f"s={size}"+++def everyone() -> list[dict] | None:+ ev = activity()+ return None if ev is None else tally(ev)+++def for_release(tag: str, rels: list[dict] | None = None) -> list[dict] | None:+ """The people a release thanks (see window())."""+ rels = releases() if rels is None else rels+ if rels is None:+ return None+ since, until = window(rels, tag)+ ev = activity()+ return None if ev is None else tally(ev, since, until)+++# ---- Release notes --------------------------------------------------------------------------------++def thanks_markdown(people: list[dict]) -> str:+ """The release notes' closing section: each person's avatar linked to their profile, then+ their @-mentions (which notify them: wanted, it's a thank-you)."""+ if not people:+ return ""+ faces = " ".join(f'<a href="{p["profile"]}"><img src="{avatar(p["avatar"], 64)}" width="32" height="32" '+ f'alt="@{p["login"]}"></a>' for p in people)+ names = ", ".join(f"@{p['login']}" for p in people)+ return f"## Thanks to\n\nThe people who made this release possible with a pull request, an issue or a comment:\n\n{faces}\n\n{names}\n"+++# ---- README ---------------------------------------------------------------------------------------++README_START = "<!-- contributors:start (python tools/contributors.py readme) -->"+README_END = "<!-- contributors:end -->"+++def readme_block(people: list[dict]) -> str:+ """Each person's round avatar (committed under art/contributors/, made by `readme`), linked to+ their profile, their login as its alternative text and tooltip."""+ rel = README_AVATARS.relative_to(ROOT).as_posix()+ faces = "\n".join(+ f'<a href="{p["profile"]}" title="{p["login"]}"><img src="{rel}/{p["login"].lower()}.png" '+ f'width="48" height="48" alt="{p["login"]}"></a>' for p in people)+ return f"{README_START}\n<p>\n{faces}\n</p>\n{README_END}"+++def round_png(data: bytes, size: int) -> bytes:+ """An avatar cut to a circle (transparent outside, antialiased edge), as PNG."""+ from PIL import Image, ImageDraw # only for the README refresh: pip install pillow++ im = Image.open(io.BytesIO(data)).convert("RGBA").resize((size, size), Image.LANCZOS)+ big = size * 4+ mask = Image.new("L", (big, big), 0)+ ImageDraw.Draw(mask).ellipse((0, 0, big - 1, big - 1), fill=255)+ im.putalpha(mask.resize((size, size), Image.LANCZOS))+ # 256 colours with their transparency: a third of the size, no visible difference at 48 px.+ im = im.quantize(256, method=Image.Quantize.FASTOCTREE)+ out = io.BytesIO()+ im.save(out, "PNG", optimize=True)+ return out.getvalue()+++def refresh_readme() -> int:+ people = everyone()+ if people is None:+ return 1+ README_AVATARS.mkdir(parents=True, exist_ok=True)+ keep = set()+ for p in people:+ name = f"{p['login'].lower()}.png"+ keep.add(name)+ req = urllib.request.Request(avatar(p["avatar"], README_SIZE), headers={"User-Agent": "misterdownloadmanager-contributors"})+ with urllib.request.urlopen(req, timeout=20) as r:+ png = round_png(r.read(), README_SIZE)+ target = README_AVATARS / name+ if not target.is_file() or target.read_bytes() != png:+ target.write_bytes(png)+ for old in README_AVATARS.glob("*.png"):+ if old.name not in keep:+ old.unlink()+ readme = ROOT / "README.md"+ text = readme.read_text("utf-8")+ block = readme_block(people)+ pattern = re.compile(re.escape(README_START) + r".*?" + re.escape(README_END), re.S)+ if not pattern.search(text):+ log("README.md has no contributors block (README_START ... README_END)")+ return 1+ readme.write_text(pattern.sub(lambda _: block, text), "utf-8", newline="\n")+ print(f"{len(people)} contributors in README.md, avatars in {README_AVATARS.relative_to(ROOT).as_posix()}/")+ return 0+++# ---- Command line ---------------------------------------------------------------------------------++def main() -> int:+ ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])+ sub = ap.add_subparsers(dest="cmd", required=True)+ ls = sub.add_parser("list", help="the people and their counts")+ ls.add_argument("--since", default="")+ ls.add_argument("--until", default="")+ ls.add_argument("--json", action="store_true")+ th = sub.add_parser("thanks", help="the release notes' Thanks to section for a tag")+ th.add_argument("tag")+ sub.add_parser("readme", help="refresh README.md's contributors and their avatars")+ a = ap.parse_args()+ if a.cmd == "readme":+ return refresh_readme()+ if a.cmd == "thanks":+ # Never fails the release: no people (or no GitHub) is simply no section.+ people = for_release(a.tag)+ sys.stdout.write(thanks_markdown(people or []))+ return 0+ ev = activity()+ if ev is None:+ return 1+ people = tally(ev, a.since, a.until)+ if a.json:+ print(json.dumps(people, indent=1))+ return 0+ for g in GROUPS:+ group = [p for p in people if p["group"] == g]+ print(f"{g}: {len(group)}")+ for p in group:+ print(f" {p['login']:<28} prs {p['prs']:>3} issues {p['issues']:>3} comments {p['comments']:>4}")+ print(f"total: {len(people)}")+ return 0+++if __name__ == "__main__":+ sys.exit(main())diff --git a/tools/website/build.py b/tools/website/build.pyindex a1d5e778..881ed410 100644--- a/tools/website/build.py+++ b/tools/website/build.py@@ -33,7 +33,9 @@ from pathlib import Pathimport markdownsys.path.insert(0, str(Path(__file__).resolve().parent))+sys.path.insert(0, str(Path(__file__).resolve().parents[1]))import barcode # noqa: E402+import contributors # noqa: E402 (tools/contributors.py: the people the site thanks)import sitei18n # noqa: E402ROOT = Path(__file__).resolve().parents[2]@@ -200,6 +202,64 @@ def repo_stats() -> dict[str, str]:STATS: dict[str, str] = {}+# The people who made MDM possible (tools/contributors.py), read once per build: everyone, and the+# releases for each one's own. None when GitHub can't be read: the home page then leaves its+# section out, /contributors.html says so, and the News page thanks nobody (with a warning).+CREW: list[dict] | None = None+CREW_RELEASES: list[dict] | None = None+++def load_crew() -> None:+ global CREW, CREW_RELEASES+ CREW = contributors.everyone()+ CREW_RELEASES = contributors.releases() if CREW is not None else None+ if CREW is None:+ print("warning: the contributors couldn't be read from GitHub; the site is built without "+ "them (set GITHUB_TOKEN if the rate limit ran out)", file=sys.stderr)+++def face(p: dict, size: int) -> str:+ """One contributor's round photo, linked to their GitHub profile; the login is the link's+ name, shown over the photo on hover and focus (never translated)."""+ return (f'<li translate="no"><a class="face" href="{esc(p["profile"])}"><img src="{esc(contributors.avatar(p["avatar"], size * 2))}" '+ f'width="{size}" height="{size}" alt="" loading="lazy" decoding="async">'+ f'<span class="face-name">{esc(p["login"])}</span></a></li>')+++def faces(people: list[dict], size: int = 56) -> str:+ """Round photos of `people` (a release on the News page), row under row."""+ return f'<ul class="faces" style="--face: {size}px" role="list">{"".join(face(p, size) for p in people)}</ul>'+++def people_count(n: int) -> str:+ """"26 people", the number kept out of the text to translate (one text for every count)."""+ return f'<span translate="no">{n}</span> {"person" if n == 1 else "people"}'+++# How many photos the home page's row shows, by the screen's width (styles.css .pile, the same+# breakpoints): (from this width up, photos). The rest are "+N", which opens /contributors.html.+PILE_TIERS = [(0, 7), (561, 11), (1200, 15)]+++def crew_pile() -> str:+ """The home page's thanks, on the board beside the hero's label (under the window; after the+ label on a phone): "Made possible by these amazing humans", a row of round photos, overlapping,+ and "+N" for the ones the row has no room for."""+ if not CREW:+ return ""+ n = len(CREW)+ shown = max(cap for _, cap in PILE_TIERS)+ # "+N" for each width where the row is full: its count there, and only there.+ more = "".join(f'<span class="pile-n pile-n-{cap}">+{n - cap}</span>' for _, cap in PILE_TIERS if n > cap)+ more_li = (f'<li class="pile-more"><a href="/contributors.html"><span translate="no" dir="ltr">{more}</span> '+ f'<span class="sr-only">Everyone who helped</span></a></li>' if more else "")+ full = " ".join(f"pile-full-{cap}" for _, cap in PILE_TIERS if n > cap)+ return f"""<div class="parcel-crew">+ <p class="crew-title" id="crew-title">Made possible by these amazing humans</p>+ <ul class="faces pile {full}" style="--face: 44px" role="list" aria-labelledby="crew-title">{"".join(face(p, 44) for p in CREW[:shown])}{more_li}</ul>+ <p class="crew-fine">{people_count(n)} who sent a pull request, reported a problem or joined a conversation on GitHub. <a href="/contributors.html">Meet them all</a></p>+ </div>"""+def esc(s: str) -> str:return html.escape(s, quote=True)@@ -474,6 +534,7 @@ def footer() -> str:<li><a href="{REPO}/releases">Releases</a></li><li><a href="/news.html">What's new</a></li><li><a href="/contributing.html">Contributing</a></li>+ <li><a href="/contributors.html">Contributors</a></li><li><a href="/news.xml">News feed</a></li></ul></div>@@ -957,6 +1018,26 @@ def build_faq() -> None:# ---- News: CHANGELOG.md -------------------------------------------------------------------------+def release_thanks(ver: str) -> str:+ """A release's closing thanks: everyone active on GitHub between the release before it and+ this one (tools/contributors.py window()), as round photos. Empty for a release GitHub doesn't+ list, or one nobody but the maintainer worked on."""+ if CREW is None or not CREW_RELEASES:+ return ""+ rel = next((r for r in CREW_RELEASES if contributors.vparts(r["version"]) == contributors.vparts(ver)), None)+ people = contributors.for_release(rel["tag"], CREW_RELEASES) if rel else None+ if not people:+ return ""+ before = [r["version"] for r in CREW_RELEASES if contributors.vparts(r["version"]) < contributors.vparts(ver)]+ since = (f'<p class="fine">Everyone who sent a pull request, opened an issue or commented on GitHub '+ f'since version <span translate="no">{esc(max(before, key=contributors.vparts))}</span>.</p>' if before else "")+ return f"""<div class="release-thanks">+ <h3>Thanks to</h3>+ {faces(people, 40)}+ {since}+ </div>"""++def build_news() -> None:text = (ROOT / "CHANGELOG.md").read_text("utf-8")releases = []@@ -976,6 +1057,7 @@ def build_news() -> None:<h2>What's new in version {esc(ver)} {when}</h2>{md(body)}<p><a href="{REPO}/releases/tag/v{esc(ver)}">Release page and files on GitHub</a></p>+ {release_thanks(ver)}</section>""")write("/news.html", f"What's new — {NAME} version history",f"Every {NAME} release and what it changed, newest first: new features, fixes and downloads.",@@ -1010,6 +1092,55 @@ def build_news() -> None:(OUT / "news.xml").write_text(feed, "utf-8", newline="\n")+# ---- Contributors: tools/contributors.py ----------------------------------------------------------++def build_contributors() -> None:+ """/contributors.html: everyone the home page thanks, in their groups, with what they did."""+ path = "/contributors.html"+ trail = [("Home", "/"), ("Contributors", path)]+ groups = [("pr", "Pull requests"), ("issue", "Issues"), ("comment", "Comments")]+ words = {"prs": ("pull request", "pull requests"), "issues": ("issue", "issues"), "comments": ("comment", "comments")}+ sheets = []+ for key, name in groups:+ people = [p for p in CREW or [] if p["group"] == key]+ if not people:+ continue+ rows = []+ for p in people:+ counts = "".join(+ f'<li><b translate="no">{p[k]}</b> {w[0] if p[k] == 1 else w[1]}</li>'+ for k, w in words.items() if p[k])+ # The login in a block of its own marked translate="no": an inline one alone in its+ # block would still go to the translators (sitei18n unwraps a lone element).+ # The photo links there too, for the pointer only (the login is the link to tab to).+ rows.append(f'<li><a class="roster-pic" href="{esc(p["profile"])}" tabindex="-1" aria-hidden="true"><img src="{esc(contributors.avatar(p["avatar"], 96))}" '+ f'width="48" height="48" alt="" loading="lazy" decoding="async"></a>'+ f'<p class="roster-who" translate="no"><a href="{esc(p["profile"])}">{esc(p["login"])}</a></p>'+ f'<ul class="roster-counts" role="list">{counts}</ul></li>')+ sheets.append(f"""<section class="sheet sheet-labelled roster-sheet" aria-labelledby="crew-{key}">+ <h2 class="sheet-band" id="crew-{key}"><b>{name}</b><span>{people_count(len(people))}</span></h2>+ <ul class="roster" role="list">{"".join(rows)}</ul>+ </section>""")+ if CREW is None:+ body = f"""<div class="page-body prose">+ <p>The list couldn't be read from GitHub when this page was built. Everyone is on GitHub meanwhile, in the project's <a href="{REPO}/pulls?q=is%3Apr">pull requests</a> and <a href="{REPO}/issues?q=is%3Aissue">issues</a>.</p>+ </div>"""+ else:+ body = "\n ".join(sheets)+ lede = ("Made possible by these amazing humans: everyone who sent a pull request, opened an issue or "+ "joined a conversation on GitHub. Thank you, every one of you.")+ fine = (f"From GitHub's public record, <time datetime=\"{TODAY}\" translate=\"no\">{TODAY}</time>: people with pull requests "+ "first, then those who opened issues, then those who commented, each once. The maintainer and "+ "automated accounts aren't counted.")+ write(path, f"Contributors — {NAME}",+ f"The people who made {NAME} possible: everyone who sent a pull request, opened an issue or joined a conversation on GitHub.",+ f"""{page_head("Contributors", lede, trail, fine)}+ <div class="wrap crew-page">+ {body}+ <p class="crew-join"><a class="btn btn-line" href="/contributing.html">Join them: the contributing guide</a></p>+ </div>""", jsonld=[crumbs_ld(trail)], priority="0.5")++# ---- Languages: i18n/languages.tsv ---------------------------------------------------------------def build_languages() -> None:@@ -1140,6 +1271,7 @@ def fill(text: str) -> str:if "<!--@features-->" in text:text = text.replace("<!--@features-->", manifest(feature_list()))text = coming_marks(text.replace("<!--@coming-->", coming_banner()))+ text = text.replace("<!--@crew-->", crew_pile())text = text.replace("<!--@fields-->", waybill_fields()).replace("<!--@barcode-->", barcode.svg(f"MDM {VERSION}"))return (text.replace("{{VERSION}}", VERSION).replace("{{REPO}}", REPO).replace("{{SITE}}", SITE).replace("{{SPONSORS}}", SPONSORS).replace("{{SOFTWARE_LD}}", json.dumps(SOFTWARE_LD, ensure_ascii=False, separators=(",", ":"))))@@ -1573,6 +1705,7 @@ def finish(available: dict[str, list[str]]) -> None:def main() -> None:STATS.update(repo_stats())+ load_crew()copy_static()build_templated("index.html", "/", "home", "1.0")build_templated("download.html", "/download.html", "download", "0.9")@@ -1584,6 +1717,7 @@ def main() -> None:build_news()build_languages()build_repo_pages()+ build_contributors()build_content_pages()build_features()build_themes()diff --git a/website/index.html b/website/index.htmlindex 1867d02d..2a94fcd3 100644--- a/website/index.html+++ b/website/index.html@@ -60,6 +60,10 @@<!--@fields--><div class="wb-code"><!--@barcode--><span translate="no">MDM {{VERSION}}</span></div></div>++ <!-- The crew: the people on GitHub who made it possible, on the board beside the label+ (build.py crew_pile, tools/contributors.py); left out when GitHub can't be read. -->+ <!--@crew--></div></section>diff --git a/website/main.js b/website/main.jsindex ddf68fb7..4202c5a0 100644--- a/website/main.js+++ b/website/main.js@@ -16,6 +16,23 @@for (var i = 0; i < els.length; i++) fn(els[i]);}+ // ---- The crew's names ------------------------------------------------------------------------+ // A contributor's login shows over their photo on hover and focus (styles.css .face-name); at+ // the start or end of a row it slides back inside the list rather than run out of the sheet.+ function nudge(e) {+ var face = e.target && e.target.closest ? e.target.closest(".face") : null;+ var name = face && face.querySelector(".face-name");+ var list = face && face.closest(".faces");+ if (!name || !list) return;+ name.style.setProperty("--nudge", "0px");+ var r = name.getBoundingClientRect();+ var box = list.getBoundingClientRect();+ var shift = r.left < box.left ? box.left - r.left : r.right > box.right ? box.right - r.right : 0;+ name.style.setProperty("--nudge", shift + "px");+ }+ document.addEventListener("pointerover", nudge);+ document.addEventListener("focusin", nudge);+// ---- Your language ---------------------------------------------------------------------------// An English page offers its copy in the visitor's language once (the first language the// browser asks for, unless that is English), in that language's words (the language menu'sdiff --git a/website/styles.css b/website/styles.cssindex 4ca98c73..170e17dd 100644--- a/website/styles.css+++ b/website/styles.css@@ -291,8 +291,11 @@ main > .sec:last-child { padding-bottom: var(--gap-section); }.parcel { padding: clamp(24px, 4vw, 48px) 0 0; }/* The window and its label share one cell, so the section is as tall as whichever reaches lowerand nothing after it can run into the label. */-.parcel-inner { display: grid; grid-template-columns: minmax(0, 1fr); }-.parcel-window, .parcel .waybill { grid-area: 1 / 1; }+.parcel-inner { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }+/* The label spans the window's row and the crew's under it (.parcel-crew), the room it needs+ beyond them going to the crew's row. */+.parcel-window { grid-area: 1 / 1; }+.parcel .waybill { grid-area: 1 / 1 / 3 / 2; }.parcel-window { width: min(84%, 1080px); margin: 0; margin-inline-start: auto; }.parcel-window img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-lift); }.parcel-window figcaption { margin-top: 14px; font-size: 13.5px; color: var(--on-board-2); text-align: end; }@@ -517,6 +520,81 @@ tbody th { font-weight: 650; }.sender-list a:hover b { text-decoration: underline; }.sender-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; padding-top: 18px; border-top: 1.5px solid var(--ink); }+/* ---- The crew: the people who made it possible (build.py crew_pile, faces, /contributors.html) - */++/* Round photos on label stock, each ringed in ink like a stamp's rule; the login shows in an ink+ tag over the photo on hover and focus (main.js keeps it inside the list's width). */+.faces { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }+.faces li { margin: 0; }+.face { position: relative; display: block; width: var(--face); height: var(--face); border-radius: 50%; color: var(--ink); text-decoration: none; }+.face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--paper-2); box-shadow: 0 0 0 1.5px var(--ink); transition: box-shadow .15s ease; }+.face:hover img { box-shadow: 0 0 0 3px var(--ink); }+.face:focus-visible { border-radius: 50%; }+.face-name {+ position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 3; transform: translateX(calc(-50% + var(--nudge, 0px)));+ padding: 4px 9px 5px; border-radius: 4px; background: var(--ink); color: var(--paper);+ font-size: 13.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; pointer-events: none;+ opacity: 0; transition: opacity .12s ease;+}+.face:is(:hover, :focus-visible) .face-name { opacity: 1; }+@media (prefers-reduced-motion: reduce) { .face img, .face-name { transition: none; } }+/* The home page: "Made possible by these amazing humans" on the board beside the hero's label, in+ the board's empty space under the window (the owner's choice: a "liked by" line). Board text;+ the photos overlap in one row, each ringed in the board's text colour so it reads on the blue+ board and the navy depot; "+N" for the rest opens /contributors.html. How many the row shows+ follows the width (build.py PILE_TIERS: 7, 11 from 561px, 15 from 1200px). */+.parcel-crew { grid-area: 2 / 1; align-self: start; min-width: 0; margin-top: 28px; margin-inline-start: calc(max(340px, 35.6% + 2px) + clamp(40px, 5vw, 72px)); color: var(--on-board); }+[dir="rtl"] .parcel-crew { margin-inline-start: calc(max(340px, 31.2% + 2px) + clamp(40px, 5vw, 72px)); }+.crew-title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; font-stretch: 78%; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }+.pile { flex-wrap: nowrap; gap: 0; margin-top: 16px; }+.pile > li + li { margin-inline-start: -8px; }+.pile .face { transition: transform .15s cubic-bezier(.16, 1, .3, 1); }+.pile .face img { background: var(--board-deep); box-shadow: 0 0 0 2.5px var(--on-board); }+.pile .face:is(:hover, :focus-visible) { z-index: 2; transform: translateY(-3px); }+.pile .face:hover img { box-shadow: 0 0 0 2.5px var(--on-board); }+.pile-more a {+ position: relative; display: grid; place-items: center; width: var(--face); height: var(--face); border-radius: 50%;+ background: var(--on-board); color: var(--board); box-shadow: 0 0 0 2.5px var(--on-board);+ font-size: 15px; font-weight: 800; font-stretch: 86%; font-variant-numeric: tabular-nums; text-decoration: none;+}+.pile-more a:hover { background: var(--on-board-2); box-shadow: 0 0 0 2.5px var(--on-board-2); }+.pile-more a:focus-visible { border-radius: 50%; }+.pile-more, .pile-n { display: none; }+@media (max-width: 560px) {+ .pile > li:not(.pile-more):nth-child(n+8) { display: none; }+ .pile-full-7 .pile-more { display: block; }+ .pile-n-7 { display: inline; }+}+@media (min-width: 561px) and (max-width: 1199px) {+ .pile > li:not(.pile-more):nth-child(n+12) { display: none; }+ .pile-full-11 .pile-more { display: block; }+ .pile-n-11 { display: inline; }+}+@media (min-width: 1200px) {+ .pile-full-15 .pile-more { display: block; }+ .pile-n-15 { display: inline; }+}+.crew-fine { max-width: 54ch; margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--on-board-2); }+.crew-fine a { color: var(--on-board); font-weight: 650; }+@media (prefers-reduced-motion: reduce) { .pile .face { transition: none; } .pile .face:is(:hover, :focus-visible) { transform: none; } }++/* /contributors.html: one labelled sheet per group, its people in a ruled roster. */+.crew-page { display: grid; gap: clamp(20px, 3vw, 32px); margin-bottom: var(--gap-section); }+.roster-sheet h2.sheet-band { line-height: 1.15; letter-spacing: 0; text-wrap: initial; }+.roster-sheet h2.sheet-band span { font-weight: 400; font-stretch: 100%; }+.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin: 0 -1px -1px 0; padding: 0; list-style: none; }+.roster > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px clamp(16px, 2.4vw, 22px); border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }+.roster-pic { grid-row: span 2; display: block; width: 48px; height: 48px; border-radius: 50%; }+.roster-pic img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--paper-2); box-shadow: 0 0 0 1.5px var(--ink); transition: box-shadow .15s ease; }+.roster > li:has(a:hover) .roster-pic img { box-shadow: 0 0 0 3px var(--ink); }+.roster-who { min-width: 0; margin: -4px; padding: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16.5px; font-weight: 750; line-height: 1.3; }+.roster-who a { color: var(--ink); text-decoration: none; }+.roster-who a:hover { text-decoration: underline; text-underline-offset: 3px; }+@media (prefers-reduced-motion: reduce) { .roster-pic img { transition: none; } }+.roster-counts { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; color: var(--ink-2); }+.roster-counts b { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }+.crew-join { margin: 0; }+.questions h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 28px; }.qa { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sheet); overflow: hidden; }.qa details + details { border-top: 1px solid var(--line); }@@ -663,6 +741,15 @@ tbody th { font-weight: 650; }.release + .release { margin-top: 2.6em; padding-top: 2em; border-top: 1.5px dashed var(--line); }.release h2 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }.release time { font-size: 15px; font-weight: 600; font-stretch: 100%; color: var(--ink-3); font-variant-numeric: tabular-nums; }+/* Each release ends with its people: the ones active on GitHub since the release before. */+.release-thanks { margin-top: 1.6em; padding-top: 1.1em; border-top: 1.5px solid var(--ink); }+.prose .release-thanks h3 { margin: 0 0 14px; font-size: 17px; font-stretch: 86%; }+.prose .release-thanks .faces { gap: 10px; padding: 0; }+.prose .release-thanks .faces li { max-width: none; margin: 0; }+.prose .release-thanks .face { text-decoration: none; }+.prose .release-thanks .face img { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); }+.prose .release-thanks .face:hover img { box-shadow: 0 0 0 3px var(--ink); }+.prose .release-thanks .fine { margin-top: 12px; }.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 20px; padding: 0 !important; list-style: none; }.lang-grid li { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 10px 0; border-top: 1px solid var(--line); }.lang-grid img { width: 28px; height: 21px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }@@ -808,6 +895,8 @@ html.lb-on { overflow: hidden; }/* The desktop's right-to-left width (max 340px) would hold it wider than a phone (#169). */[dir="rtl"] .parcel .waybill { transform: rotate(1.2deg); width: min(100%, 520px); }.parcel-window figcaption { text-align: start; }+ /* The crew after the label and the window's caption. */+ .parcel-crew, [dir="rtl"] .parcel-crew { order: 4; margin: 36px 0 0; }.tour { grid-template-columns: 1fr; }.customs-inner, .facts-inner, .sender-inner, .closing-inner { grid-template-columns: 1fr; }.parcel-window figcaption { max-width: none; }