fix: read the platform guides on first use

model.guides read and checked _registry.yml and _guides.yml at import,
from the repository: a pack build died on a registry entry without a guide
before parsing its options, and a site run on another platforms folder
took the repository's guides. The guides now load on first use, keyed on
siteinputs.current().platforms, behind accessor functions.
This commit is contained in:
Abdessamad Derraz committed 2026-11-23 21:02:46 +01:00
1 parent 9f987adb8c
commit e8b3cef5d5
31 files changed
+290 -204

No files matched your search

+1 -1
View File
@@ -270,7 +270,7 @@ class EverySurfaceSaysWhy(unittest.TestCase):
with contextlib.chdir(REPO_ROOT):
block = guidepage.pack_buttons("knulli")
guide = guidepage._guide_download(
"knulli", "KNULLI", guides.GUIDES["knulli"], None, "## Download")
"knulli", "KNULLI", guides.platform_guides()["knulli"], None, "## Download")
self.assertIn(line, block)
self.assertIn(guidepage.NO_ZIP_FAQ, block)
self.assertIn(line, "\n".join(guide))