docs: prevent legacy badge generator overwriting verified download counter

This commit is contained in:
rUv committed 2026-11-16 14:41:16 -05:00
1 parent aee6532fc9
commit 4592b726fd
1 file changed
+2 -2
+2 -2
View File
@@ -1,11 +1,11 @@
"""Regenerate the five README badges. Downloads use data/npm-downloads.latest.json; clone count preserves its existing snapshot."""
"""Regenerate legacy README badges only. Downloads and Claude directory are generated by generate_promo.py from data/readme-download-badge.json."""
from pathlib import Path
from html import escape
import json
P=Path(__file__).parent
stats=json.loads((P.parents[3]/"data/npm-downloads.latest.json").read_text())
headline=f"{stats['total']/1e6:.2f}M / 12mo"
items=[('ruvector','RuVector','AGENTIC DB',215,'#27eaff','M-7 -5L0 0L7 -5M0 0V8M-7 -5V5L0 8L7 5V-5M-7 -5L0 -9L7 -5'),('downloads','Ecosystem',headline,262,'#ffe338','M0 -9V4M-5 -1L0 4L5 -1M-8 5V9H8V5'),('clones','Git clones','106k / 14d',217,'#ff3b9e','M-5 -7V6Q-5 9 0 9Q5 9 5 4V-2M-8 -7H-2M2 -5L5 -2L8 -5'),('claude','Claude Code','PLUGIN',214,'#ffe338','M0 -9V9M-9 0H9M-6 -6L6 6M-6 6L6 -6'),('codex','Codex','PLUGIN',170,'#27eaff','M-4 -6L-10 0L-4 6M4 -6L10 0L4 6')]
items=[('ruvector','RuVector','AGENTIC DB',215,'#27eaff','M-7 -5L0 0L7 -5M0 0V8M-7 -5V5L0 8L7 5V-5M-7 -5L0 -9L7 -5'),('clones','Git clones','106k / 14d',217,'#ff3b9e','M-5 -7V6Q-5 9 0 9Q5 9 5 4V-2M-8 -7H-2M2 -5L5 -2L8 -5'),('claude','Claude Code','PLUGIN',214,'#ffe338','M0 -9V9M-9 0H9M-6 -6L6 6M-6 6L6 -6'),('codex','Codex','PLUGIN',170,'#27eaff','M-4 -6L-10 0L-4 6M4 -6L10 0L4 6')]
for name,label,value,w,color,icon in items:
if name != 'ruvector': w=220
split=109 if name=='ruvector' else 124