Feat: make dockerfile to test my workflow
This commit is contained in:
@@ -22,4 +22,4 @@ def curstomtex(command: str, options: str):
|
||||
|
||||
|
||||
latexmk = curstomtex("latexmk", "-f")
|
||||
pdflatex = curstomtex("pdflatex", "--inteactions=nonstopmode")
|
||||
pdflatex = curstomtex("pdflatex", "--interaction=nonstopmode")
|
||||
|
@@ -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])
|
||||
|
Reference in New Issue
Block a user