main
Peder Bergebakken Sundt 2023-06-24 15:04:50 +02:00
parent c2306e1510
commit 3a1efcb8ea
3 changed files with 23 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
__pycache__/
.sass-cache/
/pvv

View File

@ -6,7 +6,10 @@ def j2_environment_params(): return dict(
trim_blocks = True,
lstrip_blocks = True,
keep_trailing_newline = True,
extensions = ("jinja2.ext.do", "jinja2.ext.loopcontrols"),
extensions = (
"jinja2.ext.do",
"jinja2.ext.loopcontrols"
),
)
def j2_environment(env): return (env.globals.update(

16
push.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
function verbose {
echo + "$@"
"$@"
}
for style in pvv/styles/*.xml; do
verbose ./api.py set-style $(basename "$style" | cut -d. -f1) "$style"
done
exit
for card in pvv/cards/*.xml; do
verbose ./api.py set-card $(basename "$card" | cut -d. -f1) "$card"
done