Add QR title block and content blocks

This commit is contained in:
mpabi
2026-07-15 17:07:27 +02:00
parent c66f72f73e
commit 30566840d0
8 changed files with 286 additions and 41 deletions
+7 -1
View File
@@ -81,12 +81,18 @@ def check_render() -> None:
tex = tex_path.read_text(encoding="utf-8")
html = html_path.read_text(encoding="utf-8")
for marker in ("DEMO-01", "IP WO", "INF04"):
for marker in ("DEMO-01", "IP WO", "INF04", "KARTA PRACY"):
if marker not in tex:
raise AssertionError(f"TeX nie zawiera znacznika {marker!r}")
if marker not in html:
raise AssertionError(f"HTML nie zawiera znacznika {marker!r}")
if r"\qrcode[height=" not in tex:
raise AssertionError("TeX nie zawiera kodu QR z tabliczki")
for marker in ('class="title-qr"', 'class="code-subblock"'):
if marker not in html:
raise AssertionError(f"HTML nie zawiera znacznika {marker!r}")
def main() -> int:
check_json_files()