mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-28 10:13:56 +00:00
Move generated tex file to doc to correct location (#14191)
This commit is contained in:
@@ -271,6 +271,9 @@ proc buildPdfDoc*(nimArgs, destPath: string) =
|
||||
const pdflatexcmd = "pdflatex -interaction=nonstopmode "
|
||||
for d in items(pdf):
|
||||
exec(findNim().quoteShell() & " rst2tex $# $#" % [nimArgs, d])
|
||||
let tex = splitFile(d).name & ".tex"
|
||||
removeFile("doc" / tex)
|
||||
moveFile(tex, "doc" / tex)
|
||||
# call LaTeX twice to get cross references right:
|
||||
exec(pdflatexcmd & changeFileExt(d, "tex"))
|
||||
exec(pdflatexcmd & changeFileExt(d, "tex"))
|
||||
|
||||
Reference in New Issue
Block a user