Compare commits
7 Commits
csh-issue-
...
pandoc-hac
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bfe31098cb | ||
|
|
a1f9305047 | ||
|
|
c66d76af2d | ||
|
|
b8c82620e5 | ||
|
|
3b905353d0 | ||
|
|
af6a402a87 | ||
|
|
3c639959f4 |
@@ -39,6 +39,8 @@ module.exports = CompileController =
|
|||||||
for file in outputFiles
|
for file in outputFiles
|
||||||
if file.path?.match(/output\.pdf$/)
|
if file.path?.match(/output\.pdf$/)
|
||||||
status = "success"
|
status = "success"
|
||||||
|
if file.path?.match(/output\.html$/)
|
||||||
|
status = "success"
|
||||||
# log an error if any core files are found
|
# log an error if any core files are found
|
||||||
for file in outputFiles
|
for file in outputFiles
|
||||||
if file.path is "core"
|
if file.path is "core"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ module.exports = LatexRunner =
|
|||||||
|
|
||||||
# We want to run latexmk on the tex file which we will automatically
|
# We want to run latexmk on the tex file which we will automatically
|
||||||
# generate from the Rtex/Rmd/md file.
|
# generate from the Rtex/Rmd/md file.
|
||||||
mainFile = mainFile.replace(/\.(Rtex|md|Rmd)$/, ".tex")
|
mainFile = mainFile.replace(/\.(Rtex|md|Rmd)$/, ".md")
|
||||||
|
|
||||||
if compiler == "pdflatex"
|
if compiler == "pdflatex"
|
||||||
command = LatexRunner._pdflatexCommand mainFile
|
command = LatexRunner._pdflatexCommand mainFile
|
||||||
@@ -32,6 +32,12 @@ module.exports = LatexRunner =
|
|||||||
if Settings.clsi?.strace
|
if Settings.clsi?.strace
|
||||||
command = ["strace", "-o", "strace", "-ff"].concat(command)
|
command = ["strace", "-o", "strace", "-ff"].concat(command)
|
||||||
|
|
||||||
|
# ignore the above and make a pandoc command
|
||||||
|
console.log(mainFile)
|
||||||
|
console.log(image)
|
||||||
|
image = "ivotron/pandoc"
|
||||||
|
command = ["-o", "$COMPILE_DIR/output.html", "/compile/" + mainFile]
|
||||||
|
|
||||||
id = "#{project_id}" # record running project under this id
|
id = "#{project_id}" # record running project under this id
|
||||||
|
|
||||||
ProcessTable[id] = CommandRunner.run project_id, command, directory, image, timeout, environment, (error, output) ->
|
ProcessTable[id] = CommandRunner.run project_id, command, directory, image, timeout, environment, (error, output) ->
|
||||||
|
|||||||
Reference in New Issue
Block a user