# Merge the HTML, CSS, and JS into a single self-contained index.html file
import textwrap, os, zipfile
# Load existing content from previous generated files
with open("/mnt/data/neo_web/styles.css", "r", encoding="utf-8") as f:
css_content = f.read()
with open("/mnt/data/neo_web/script.js", "r", encoding="utf-8") as f:
js_content = f.read()
with open("/mnt/data/neo_web/index.html", "r", encoding="utf-8") as f:
html_content = f.read()
# Inject CSS into ")
html_merged = html_merged.replace('',
f"")
# Save as one-file index.html
onefile_path = "/mnt/data/neo_retro_onefile.html"
with open(onefile_path, "w", encoding="utf-8") as f:
f.write(html_merged)
onefile_path