Closed johanphilips closed 3 years ago
Yes, and the PDF has to be rebuilt with the added doi in the Frontmatter prior to publishing it on zenodo. It's a bit of an overkill, but one option would be to rebuild it with docker and the docker file that @vsoch has in her repository. What do you think?
that would work, but if we want to make it a one step process, I will have to call docker run from within python for that :-p
Do you have a link for that repo? Got it, the openbases repo :-)
@Chilipp Could you point me to the script that you currently use to build those pdfs? Is the latex template in the ci folder?
hey @johanphilips, I don't have a particular script for this. We use it within the github workflow, but when I want to build a PDF locally, I usually do it like this:
docker build -t rseng/pdf-generator https://github.com/rseng/pdf-generator.git
cp _events/talks/event-001.md ci/
docker run --env-file ci/env.txt -v `pwd`:/github/workspace --rm -it rseng/pdf-generator
then you'll have a file named ci/talks/event-001.pdf
that you can copy to the downloads
folder
ok great, will give that a try. was almost there, by looking at the workflow action but couldn't get the docker run command going such that it finds the event md, logo and template. What's in your env.txt, is it the one from the website and are you executing it with relative path to sorse.github.io repo ?
yikes, that's a large image with ubuntu and texlive !
What's in your env.txt, is it the one from the website and are you executing it with relative path to sorse.github.io repo ?
hey! yes, sorry. all these commands are ran from the root of the sorse.github.io repository. Here is the file: https://github.com/SORSE/sorse.github.io/blob/master/ci/env.txt
yikes, that's a large image with ubuntu and texlive !
indeed :sweat_smile:
That worked out of the box! Thanks! event-000.pdf
Currently the original .md is added, should be changed to generated PDF