Skip to content

Commit 73d0789

Browse files
committed
feat(social): the card takes a licence, because redis-broker is ISC
Every other entry is GPL-3.0 and stays the default. The broker image is infrastructure you run rather than a library you build against, so its licence differs and the card should not say otherwise.
1 parent 1389ce6 commit 73d0789

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/gen-social-preview.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const CARDS = [
8787
// The image that carries both of the two above. It is pulled rather than
8888
// installed, so the command line is a `docker run` — the only entry here whose
8989
// command is not npm, and the point of the card is that it is one pull.
90-
{ repo: "redis-broker", name: "redis-broker", tagline: "Redis that announces itself", tagline2: "both discovery modules, chosen at runtime", cmd: "docker run ghcr.io/imqueue/redis-broker:7.4" },
90+
{ repo: "redis-broker", name: "redis-broker", tagline: "Redis that announces itself", tagline2: "both discovery modules, chosen at runtime", cmd: "docker run ghcr.io/imqueue/redis-broker:7.4", licence: "ISC" },
9191
];
9292

9393
// Fit the package name: shrink font so it never collides with the right edge.
@@ -98,7 +98,9 @@ function nameSize(name) {
9898
return 62; // "redis-broker-unicaster"
9999
}
100100

101-
function card({ name, tagline, tagline2, cmd, tag }) {
101+
// `licence` overrides the GPL-3.0 default: redis-broker is ISC, because the
102+
// broker layer is infrastructure you run rather than a library you build against.
103+
function card({ name, tagline, tagline2, cmd, tag, licence }) {
102104
const ns = nameSize(name);
103105
// One-line tagline sits at y=372 with the command at 486; a second tagline
104106
// line tightens the two together and pushes the command down.
@@ -139,7 +141,7 @@ function card({ name, tagline, tagline2, cmd, tag }) {
139141
140142
${actionLine}
141143
142-
<text x="100" y="590" font-family="${MONO}" font-weight="700" font-size="28" fill="#7f8f89">open source · GPL-3.0</text>
144+
<text x="100" y="590" font-family="${MONO}" font-weight="700" font-size="28" fill="#7f8f89">open source · ${licence || "GPL-3.0"}</text>
143145
<text x="1180" y="590" text-anchor="end" font-family="${MONO}" font-weight="700" font-size="28" fill="#7f8f89">imqueue.org</text>
144146
</svg>`;
145147
}

0 commit comments

Comments
 (0)