site: POST's count from POST_FLOOR at build, not 538 by hand (#191)

The .com's Downloads and Try It, and the .org's at-a-glance figures,
said 538 power-on checks; POST is 992. The designs say [POST], and both
builds fill it from v4/system/POST_FLOOR (Captain Bob: "From
POST_FLOOR at build"). Rebuilt pages: only the number changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
Claude
2026-11-21 12:50:37 +00:00
parent db0085d926
commit 3633e051a8
8 changed files with 28 additions and 5 deletions
+11
View File
@@ -58,10 +58,21 @@ CONSOLE = '''<div style="background: #050A14; border: 1px solid #34486A; border-
<p style="margin: 12px 0 0; font-size: 13px; color: #A3AEC2">If the console does not connect, every machine is in use: try again in a few minutes.</p>'''
def post_count():
"""POST's count, as acceptance holds it: v4/system/POST_FLOOR's first line (Captain Bob, 2026-11-21:
"From POST_FLOOR at build"), so the page says what every boot passes as POST grows."""
here = os.path.dirname(os.path.abspath(__file__))
for line in open(os.path.join(here, "..", "..", "v4", "system", "POST_FLOOR")):
if line.strip().isdigit():
return line.strip()
sys.exit("build: no count in v4/system/POST_FLOOR")
def body(src, pages):
m = re.search(r"<x-dc>(.*)</x-dc>", src, re.S)
html = re.sub(r"<helmet>.*?</helmet>", "", m.group(1), flags=re.S).strip()
html = html.replace("{{accent}}", ACCENT)
html = html.replace("[POST]", post_count())
# a page not built this time is not linked to: its <a> taken out (the nav, the footers)
for p in RELEASE_PAGES:
if p not in pages: