#!/usr/bin/env python3 """ Generate CCG26 Sponsorship Package in multiple formats: - Slide deck as PDF (via HTML + weasyprint) — matches slides.jeffemmett.com - Document-style HTML + PDF The slide deck matches the online deck at slides.jeffemmett.com/ccg26-sponsorship """ import os import shutil from pathlib import Path from weasyprint import HTML from pdf2image import convert_from_path # Output directory OUTPUT_DIR = Path("/home/jeffe/Github/crypto-commons-gather.ing-website") IMAGE_DIR = OUTPUT_DIR / "public" / "images" SLIDES_DIR = OUTPUT_DIR / "public" / "slides" PUBLIC_DIR = OUTPUT_DIR / "public" def create_slide_deck(): """Create a 12-slide PDF deck matching the online version.""" img = lambda name: (IMAGE_DIR / name).as_uri() deck_html = f"""