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:
+11
-1
@@ -138,6 +138,16 @@ def a(href, text):
|
||||
return '<a href="%s">%s</a>' % (href, text)
|
||||
|
||||
|
||||
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 code(s):
|
||||
return '<code style="color: #EEF2F7; background: #0A1222; padding: 1px 6px; border-radius: 3px">%s</code>' % s
|
||||
|
||||
@@ -145,7 +155,7 @@ def code(s):
|
||||
def page_main(canvas, url):
|
||||
links_ = [("Home", url("Main"), "Main"), ("Contributors", url("Contributors"), "Contributors")]
|
||||
glance = [("v2.1.0", "LithosAnanke, the UEFI microkernel"), ("v4", "StarForth, the F18 engine"),
|
||||
("3 ISAs", "amd64 · aarch64 · riscv64"), ("538", "POST checks on every boot")]
|
||||
("3 ISAs", "amd64 · aarch64 · riscv64"), (post_count(), "POST checks on every boot")]
|
||||
strip = ('<section aria-label="At a glance" style="border-top: 1px solid #22324D; border-bottom: 1px solid '
|
||||
'#22324D; background: #0E182B">\n<div style="%s; padding: 32px 24px; display: grid; '
|
||||
'grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px">%s</div>\n</section>'
|
||||
|
||||
Reference in New Issue
Block a user