"""Render the current GPU notice above the preserved JPEG architecture snapshot."""
from pathlib import Path
root = Path(__file__).resolve().parent
source = (root / 'current-remote-architecture.template.html').read_text()
marker = '__GPU_UPDATE_NOTICE__'
if source.count(marker) != 1:
raise ValueError('Expected one GPU notice placeholder')
(root / 'current-remote-architecture.html').write_text(source.replace(marker, (root / 'gpu-update-notice.fragment.html').read_text()))
생성 코드·템플릿
build_current_architecture.py
design/build_current_architecture.py