HiveGrid Marketing: Hub mit Strategie, Redaktionsplan, Dashboard, Produktionsvorgaben und Webinar
Stand 16.10.2026. Enthält das Marketing-Dashboard, die Daten in daten/, die Produktionsvorgaben, Reels und das Webinar mit Skript, Sprechzettel und Präsentation (HTML, PowerPoint, PDF). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
686ee36b4f
490 files changed
+53846
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Macht aus Praesentation.html eine einzige Datei, die man verschicken kann.
|
||||
|
||||
Bilder aus bilder/ und screenshots/ kommen als data:-URI in die Datei. Die
|
||||
Schrift Mona Sans lädt weiter von Google Fonts, ohne Internet greift Arial.
|
||||
|
||||
Aufruf: python3 einzeldatei.py <quelle.html> <ziel.html>
|
||||
"""
|
||||
|
||||
import base64
|
||||
import mimetypes
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
quelle, ziel = Path(sys.argv[1]), Path(sys.argv[2])
|
||||
html = quelle.read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def einbetten(m):
|
||||
pfad = quelle.parent / m.group(1)
|
||||
if not pfad.exists():
|
||||
return m.group(0)
|
||||
art = mimetypes.guess_type(pfad.name)[0] or "image/png"
|
||||
daten = base64.b64encode(pfad.read_bytes()).decode("ascii")
|
||||
return f'src="data:{art};base64,{daten}"'
|
||||
|
||||
|
||||
html = re.sub(r'src="((?:bilder|screenshots)/[^"]+)"', einbetten, html)
|
||||
ziel.write_text(html, encoding="utf-8")
|
||||
print(f"{ziel.name}: {ziel.stat().st_size / 1024 / 1024:.1f} MB")
|
||||
Reference in new issue
Block a user