Improve tooling

This commit is contained in:
Pascal Le Merrer 2026-02-28 11:23:55 +01:00
parent 458352da97
commit 3165d050a1
3 changed files with 24 additions and 16 deletions

View file

@ -40,7 +40,8 @@ devserver-global:
pelican -lr content -o output -s "{{CONFFILE}}" {{PELICANOPTS}} -b 0.0.0.0
# generate using production settings
publish:
publish number:
just format {{number}}
pelican content -o output -s "{{PUBLISHCONF}}" {{PELICANOPTS}}
rsync -e ssh -av --delete-after /Users/pascal/Documents/craft-letter/output/ craftletter@ssh-craftletter.alwaysdata.net:/home/craftletter/www
@ -53,8 +54,9 @@ new number:
PYTHONPATH=PWD venv/bin/python ./scripts/create_newsletter.py --number={{number}}
# generate HTML email
mail file:
PYTHONPATH=PWD venv/bin/python ./scripts/prepare_email.py {{file}}
mail number:
just format {{number}}
PYTHONPATH=PWD venv/bin/python ./scripts/prepare_email.py --number={{number}}
# Format the content of a given newsletter
format number: