site(org): LithosAnanke's version from kernel/Makefile at build, not v2.1.0 by hand (#191)

The .org's at-a-glance figures said v2.1.0; the version is
4.0.0-alpha.5. build.py reads LITHOS_VERSION (Captain Bob: "From
kernel/Makefile at build"). The rebuilt page: only that 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:51:05 +00:00
parent 3633e051a8
commit 552d76595d
3 changed files with 15 additions and 2 deletions
+13 -1
View File
@@ -148,13 +148,25 @@ def post_count():
sys.exit("build: no count in v4/system/POST_FLOOR")
def lithos_version():
"""LithosAnanke's version, as the kernel is built: kernel/Makefile's LITHOS_VERSION (Captain Bob, 2026-11-21:
"From kernel/Makefile at build")."""
import re as _re
here = os.path.dirname(os.path.abspath(__file__))
for line in open(os.path.join(here, "..", "..", "kernel", "Makefile")):
m = _re.match(r"LITHOS_VERSION\s*\??=\s*(\S+)", line)
if m:
return "v" + m.group(1)
sys.exit("build: no LITHOS_VERSION in kernel/Makefile")
def code(s):
return '<code style="color: #EEF2F7; background: #0A1222; padding: 1px 6px; border-radius: 3px">%s</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"),
glance = [(lithos_version(), "LithosAnanke, the UEFI microkernel"), ("v4", "StarForth, the F18 engine"),
("3 ISAs", "amd64 &#183; aarch64 &#183; 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; '