Feat: make dockerfile to test my workflow

This commit is contained in:
2022-05-09 09:09:38 +02:00
parent b1353bb6c7
commit fae2afa76c
8 changed files with 47 additions and 16 deletions

View File

@@ -22,4 +22,4 @@ def curstomtex(command: str, options: str):
latexmk = curstomtex("latexmk", "-f")
pdflatex = curstomtex("pdflatex", "--inteactions=nonstopmode")
pdflatex = curstomtex("pdflatex", "--interaction=nonstopmode")

View File

@@ -9,13 +9,10 @@ def generate(args, deps, output):
try:
with open(output, "w") as out:
out.write(tpl2tex(template, metas=args))
fed = template.render(args)
out.write(fed)
return Message(0, [f"GENERATE - {deps[0]} to {output}"], [])
except Exception as e:
return Message(0, [], [e])
def tpl2tex(template: Template, metas: dict = {}) -> str:
return template.render(metas)
return Message(1, [], [e])