create a wwwdev.sh entry point for helping live web design/development (#92)

* create a wwwdev.sh entry point for developing the web part

* rename script

* fix README

* add a note

* don't depend on deltachat python package

* avoid bailing out on jinja2 errors, and provide file-url for instant clickability

* in webdev mode make page auto-refresh every 3 seconds
This commit is contained in:
holger krekel
2023-12-08 14:32:40 +01:00
committed by GitHub
parent 32360061b4
commit 7cb8f90340
18 changed files with 206 additions and 90 deletions
+2 -2
View File
@@ -49,10 +49,10 @@ def gen_qr(maildomain, url):
size = width = 384
qr_padding = 6
text_height = font_size * num_lines
height = size + text_height + qr_padding * 2
height = size + text_height
image = Image.new("RGBA", (width, height), "white")
qr_final_size = width - (qr_padding * 2)
qr_final_size = width
if num_lines:
draw = ImageDraw.Draw(image)