Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "Build URL" for compendium #260

Merged
merged 1 commit into from
May 5, 2017

Conversation

sedrakk
Copy link
Contributor

@sedrakk sedrakk commented May 4, 2017

Hi everyone,

I noticed that the link to PDF version of compendium is not working and I updated it.

Basically, the link I added is something we call "Build URL" - each time it's visited, latexonline.cc will fetch all TeX files from the repository (if they were updated) and create the PDF. You won’t need to re-generate PDF each time its sources are updated. And if there are no updates, the service will return cached version.

We recently updated latexonline.cc to be more convenient for the users and I thought your repository is a good example where the service will be useful.

Let me know what you think.

@ErikBjare
Copy link
Member

That's pretty neat, and thanks for disclosing your affiliation!

We're actually using Travis for continuous integration so we're generating the PDF every commit anyway and plan to have it automatically uploaded somewhere on every successful build. This might be a good solution in the meantime however. What do you think @bjornregnell?

@bjornregnell
Copy link
Member

Cool! Works like a charm!

I wonder: it seems as if it re-compiles even if the files in the repo hasn't changed, so the pdf is not cached if I understand it correctly?

As the repo has grown big due to too many binaries changing on commits, I have just recently moved the changing pdf:s to the release section (after rewriting the repo history to kill the binaries):
https://github.com/lunduniversity/introprog/releases

I will also scp them via a script to our university web fileadmin server and will cache them there as well for redundancy. But for snapshots latexonline seems like a very good solution!

And, many thanx @sedrakk for spotting the broken link to the pdf in the README!

BTW: A progress bar or something indicating that the compilation is progressing would be cool!

@bjornregnell bjornregnell merged commit a227bd3 into lunduniversity:master May 5, 2017
@aslushnikov
Copy link

I wonder: it seems as if it re-compiles even if the files in the repo hasn't changed, so the pdf is not cached if I understand it correctly?

@bjornregnell we do cache pdf, relying on git SHA of the master branch. So if you change anything in your git history, we'll recompile. We also purge cache if the pdf is not accessed during 24 hours just to save on space.

If it doesn't work like this - it's a bug! Please, let us know :)

BTW: A progress bar or something indicating that the compilation is progressing would be cool!

Good call, filed this as aslushnikov/latex-online#29

@bjornregnell
Copy link
Member

If it doesn't work like this - it's a bug
No, it really seems to work, but I was confused by the message on the web page that said "compiling...".
I think that if there is already a pfd cached then the web page should say something like "Opening cached pdf..." so that the user does not think that the compilation is on-going when it's not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants