mirror of
https://github.com/direct-img/gh.direct-img.link.git
synced 2026-10-29 09:04:51 +00:00
stars.mjs renders dist/<owner>/<repo>.svg for each repo in repos.txt: a cumulative star chart with labelled breakouts, spikes and first star, ending in an isometric star. The hourly workflow commits only when the star count or UTC day changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 lines
329 B
Bash
Executable File
5 lines
329 B
Bash
Executable File
#!/bin/bash
|
|
# render.sh <svg> <name> → preview/<name>.png
|
|
HS=$(ls -d ~/.cache/ms-playwright/chromium_headless_shell-1248/*/)chrome-headless-shell
|
|
"$HS" --no-sandbox --hide-scrollbars --force-device-scale-factor=2 --window-size=1180,500 --screenshot="$(cd "$(dirname "$0")" && pwd)/$2.png" "file://$(realpath "$1")" 2>/dev/null
|