Center README entry cards

This commit is contained in:
Affaan Mustafa 2026-07-24 16:26:50 -04:00
parent 8512dc6f42
commit 751874fef9
3 changed files with 27 additions and 8 deletions

View file

@ -176,13 +176,19 @@ function main() {
const readme = read('README.md');
const primaryLinks = extractNamedTable(readme, 'ECC primary links');
const guides = extractNamedTable(readme, 'ECC guides');
const centeredPrimaryLinks = readme.match(
/<div align="center">\s*<table[^>]*aria-label="ECC primary links"[^>]*>[\s\S]*?<\/table>\s*<\/div>/
);
assert.ok(centeredPrimaryLinks, 'The three primary-link cards should be centered as one group');
assert.strictEqual((primaryLinks.match(/<td\b/g) || []).length, 3);
assert.ok(primaryLinks.includes('assets/images/community/ecc-tools-mark.svg'));
assertExactHref(primaryLinks, 'https://github.com/apps/ecc-tools');
assertExactHref(primaryLinks, 'https://ecc.tools/pricing');
assertExactHref(primaryLinks, 'https://github.com/sponsors/affaan-m');
assert.ok(primaryLinks.includes('assets/images/community/heart.svg'));
assert.match(primaryLinks, /Fund the open-source project/);
assert.doesNotMatch(primaryLinks, /From \$5\/mo/);
assertExactHref(primaryLinks, 'https://discord.gg/36yGMHGFbR');
assert.ok(primaryLinks.includes('assets/images/community/discord.svg'));
@ -227,6 +233,15 @@ function main() {
/<script|<foreignObject|\son[a-z]+=|(?:href|xlink:href)=/i
);
}],
['sponsor docs match the current public tiers', () => {
const sponsors = read('SPONSORS.md');
assert.match(sponsors, /## Supporters — \$10\/mo/);
assert.match(sponsors, /\| Supporter \| \$10 \|/);
assert.match(sponsors, /\| Business Sponsor \| \$800 \|/);
assert.match(sponsors, /\| Strategic Sponsor \| \$3,700 \|/);
assert.doesNotMatch(sponsors, /Supporters — \$5\/mo|\| Supporter \| \$5 \|/);
}],
['README shows the verified local Kimi via Ito path without claiming managed serving', () => {
const readme = read('README.md');
const localModelPath = extractNamedTable(readme, 'Local Kimi model path');