#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Build the standalone SRM_RSK_Dashboard.html from inline source parts.""" import json from pathlib import Path HERE = Path(__file__).resolve().parent ROOT = HERE.parent OUT = ROOT / "SRM_RSK_Dashboard.html" html = (HERE / "template.html").read_text(encoding="utf-8") css = (HERE / "styles.css").read_text(encoding="utf-8") js = "\n".join([ (HERE / "arch_data.js").read_text(encoding="utf-8"), (HERE / "app_core.js").read_text(encoding="utf-8"), (HERE / "app_views.js").read_text(encoding="utf-8"), ]) seed = (HERE / "seed_data.json").read_text(encoding="utf-8") seed_safe = seed.replace("<", "\\u003c").replace(">", "\\u003e").replace("&", "\\u0026") js_safe = js.replace("