diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml
index ceebceed..9c1b80df 100644
--- a/.github/workflows/demo.yml
+++ b/.github/workflows/demo.yml
@@ -66,52 +66,43 @@ jobs:
done
} > demo/README.md
- # Per-theme page groups singletons at top, then compares last-year
- # vs all-time variants side-by-side so the reader can eyeball the
- # evolution of each metric without scrolling.
+ # Per-theme page mirrors the author profile README table layout at
+ # tiennm99/tiennm99 — singletons stacked two-per-row, streak spans
+ # the full width, then the four last-year/all-time pairs sit in
+ # consecutive rows under a shared header.
for theme in $themes; do
dir="demo/$theme"
[ -d "$dir" ] || continue
out="$dir/README.md"
- pair() {
- local heading="$1" left="$2" right="$3"
- [ -f "$dir/$left.svg" ] && [ -f "$dir/$right.svg" ] || return
- printf '### %s\n\n' "$heading"
- printf '
| Last year | All time |
|---|
\n'
- printf ' | \n' "$left" "$left"
- printf ' | \n' "$right" "$right"
- printf '
\n\n'
+ cell() {
+ local name="$1"
+ printf ' | ' "$name" "$name"
}
- single() {
- local heading="$1" name="$2"
- [ -f "$dir/$name.svg" ] || return
- printf '### %s\n\n\n\n' "$heading" "$name" "$name"
+ row_pair() {
+ printf ''
+ cell "$1"
+ cell "$2"
+ printf '
\n'
+ }
+ row_span() {
+ printf ' |
\n' "$1" "$1"
}
{
printf '# ghstats — %s\n\n' "$theme"
printf '[← back to index](../README.md)\n\n'
- printf 'Rendered for [`%s`](https://github.com/%s). 15 SVGs below, ' "$OWNER" "$OWNER"
- printf 'grouped so the last-year / all-time pairs sit next to each other.\n\n'
- printf '## At-a-glance\n\n'
- single "Profile" profile-details
- single "Stats" stats
- single "Streak" streak
-
- printf '## Repos\n\n'
- single "Top starred" top-starred-repos
- single "Repos per language" repos-per-language
-
- printf '## Contributions — time series\n\n'
- single "Calendar heatmap (last year)" contributions-heatmap
- single "By year (all time)" contributions-by-year
- pair "Monthly shape" contributions contributions-all-time
-
- printf '## When you commit\n\n'
- pair "By hour of day" productive-time productive-time-all-time
- pair "By day of week" productive-weekday productive-weekday-all-time
-
- printf '## What you commit in\n\n'
- pair "Byte-weighted language share" most-commit-language most-commit-language-all-time
+ printf 'Rendered for [`%s`](https://github.com/%s). 15 SVGs laid out to ' "$OWNER" "$OWNER"
+ printf 'match the author profile README table.\n\n'
+ printf '\n\n
\n'
+ row_pair profile-details stats
+ row_pair repos-per-language top-starred-repos
+ row_pair contributions-by-year contributions-heatmap
+ row_span streak
+ printf '| Last year | All time |
\n'
+ row_pair most-commit-language most-commit-language-all-time
+ row_pair contributions contributions-all-time
+ row_pair productive-weekday productive-weekday-all-time
+ row_pair productive-time productive-time-all-time
+ printf '
\n\n
\n'
} > "$out"
done
diff --git a/demo/dracula/README.md b/demo/dracula/README.md
index 6ebb918a..4fac0190 100644
--- a/demo/dracula/README.md
+++ b/demo/dracula/README.md
@@ -2,71 +2,20 @@
[← back to index](../README.md)
-Rendered for [`tiennm99`](https://github.com/tiennm99). 15 SVGs below, grouped so the last-year / all-time pairs sit next to each other.
+Rendered for [`tiennm99`](https://github.com/tiennm99). 15 SVGs laid out to match the author profile README table.
-## At-a-glance
+