JuliaBooks / Books.jl

Create books with Julia
https://huijzer.xyz/Books.jl/
Other
270 stars 18 forks source link

Add patch for Tectonic archive.org URL #234

Closed rikhuijzer closed 3 years ago

rikhuijzer commented 3 years ago

This should make CI a lot less flaky. For details, see

rikhuijzer commented 3 years ago

Nope. Doesn't work.

note: downloading index https://juliabooks.github.io/TectonicRedirect/tectonic-default.index.gz

Tectonic tries to also download "tectonic-default.index.gz" and this file contains many relative links.

EDIT: It does work. Tectonic expects a HTTP redirect (300-308 status code) and not a HTML redirect.

rikhuijzer commented 3 years ago

Awesome. It works. From the logs for c9cf1af:

Wrote _build/books.tex (for debugging purposes)
error: unexpected HTTP response code 307 Temporary Redirect for URL https://archive.org/services/purl/net/pkgwpub/tectonic-default
Error producing PDF.
note: reading from standard input; outputs will appear under the base name "texput"
note: connecting to https://archive.org/services/purl/net/pkgwpub/tectonic-default

PDF generation failed. Patching the archive.org URL and trying again
Wrote _build/books.tex (for debugging purposes)
warning: texput.tex:1396: Overfull \hbox (6.3249pt too wide) in paragraph at lines 1389--1396
warning: texput.tex:1510: Underfull \hbox (badness 10000) in paragraph at lines 1509--1510
warning: texput.tex:1702: Overfull \hbox (0.37933pt too wide) in paragraph at lines 1698--1702
warning: texput.tex:1723: Overfull \hbox (18.17433pt too wide) in paragraph at lines 1721--1723
warning: texput.tex:1510: Underfull \hbox (badness 10000) in paragraph at lines 1509--1510
warning: texput.tex:1702: Overfull \hbox (0.37933pt too wide) in paragraph at lines 1698--1702
warning: texput.tex:1723: Overfull \hbox (18.17433pt too wide) in paragraph at lines 1721--1723
warning: warnings were issued by the TeX engine; use --print and/or --keep-logs for details.
warning: Object @page.1 already defined.
warning: Object @page.2 already defined.
Built _build/books.pdf