import pathlib,sys p=pathlib.Path(sys.argv[1]);p.mkdir(parents=True,exist_ok=True) files={ 'index.html':'''Workspace preview proof

Workspace preview

HTML document loaded

Relative CSS loaded

JavaScript pending

Relative image loadedOpen next workspace page
''', 'style.css':'''body{margin:0;background:#10202c;color:#e5f4f6;font:20px system-ui}main{padding:32px}h1{font-size:32px;margin:0 0 22px}.css{color:#64e5ad}iframe{display:block;width:100%;height:80px;border:1px solid #426474;margin:22px 0}a{color:#94d5ff}''', 'script.js':'''document.getElementById('script').textContent='Relative JavaScript loaded';''', 'badge.svg':'''Relative image loaded''', 'frame.html':'''Relative iframe loaded''', 'next.html':'''Next workspace page

New tab link works

Second workspace HTML document loaded

''' } for name,body in files.items():(p/name).write_text(body)