fix: pack readme reads the guides of its run

model.guides took its platforms folder from the site's inputs, so a pack built with --platforms-dir printed the manual and install commands of the repository's guides. The loaders now take the folder (or the install address) explicitly; sitegen.guidedata binds them to the site's inputs, the pack README to the run's platforms folder, the release notes and the site validation to the folder they were given.
This commit is contained in:
Abdessamad Derraz committed 2026-11-23 23:07:45 +01:00
1 parent 2559dfba79
commit dedbde7917
41 files changed
+258 -170

No files matched your search

+2 -2
View File
@@ -419,7 +419,7 @@ def _check_get_pages(
"""
sys.path.insert(0, str(Path(__file__).resolve().parent))
from model import releaserecord
from model.guides import install_sh
from model.guides import install_base, install_sh
from model.registry import list_registered_platforms, list_release_pack_platforms
if not (platforms_dir / "_registry.yml").is_file():
@@ -444,7 +444,7 @@ def _check_get_pages(
packs = [a for a in assets if "_BIOS_Pack" in a]
if packs:
issues.append(f"{rel}: links a pack for a setup without one: {packs[0]}")
if f"{install_sh()} | sh" not in (site / rel).read_text(encoding="utf-8"):
if f"{install_sh(install_base(platforms_dir))} | sh" not in (site / rel).read_text(encoding="utf-8"):
issues.append(f"{rel}: gives no install command")
return issues