Simplify usage of custom justfile targets
This commit is contained in:
parent
7ae5406548
commit
2b450e1b51
7 changed files with 53 additions and 31 deletions
18
justfile
18
justfile
|
|
@ -40,8 +40,8 @@ devserver-global:
|
|||
pelican -lr content -o output -s "{{CONFFILE}}" {{PELICANOPTS}} -b 0.0.0.0
|
||||
|
||||
# generate using production settings
|
||||
publish number:
|
||||
just format {{number}}
|
||||
publish:
|
||||
just format
|
||||
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
|
||||
|
||||
|
|
@ -50,15 +50,15 @@ ssh:
|
|||
ssh craftletter@ssh-craftletter.alwaysdata.net
|
||||
|
||||
# Create the skeleton for a new issue of the newsletter, and reference it into the home page
|
||||
new number:
|
||||
PYTHONPATH=PWD venv/bin/python ./scripts/create_newsletter.py --number={{number}}
|
||||
new:
|
||||
PYTHONPATH=PWD venv/bin/python ./scripts/create_newsletter.py
|
||||
|
||||
# generate HTML email
|
||||
mail number:
|
||||
just format {{number}}
|
||||
PYTHONPATH=PWD venv/bin/python ./scripts/prepare_email.py --number={{number}}
|
||||
mail:
|
||||
just format
|
||||
PYTHONPATH=PWD venv/bin/python ./scripts/prepare_email.py
|
||||
|
||||
# Format the content of a given newsletter
|
||||
format number:
|
||||
PYTHONPATH=PWD venv/bin/python ./scripts/format.py --number={{number}}
|
||||
format:
|
||||
PYTHONPATH=PWD venv/bin/python ./scripts/format.py
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue