OceanGlidersCommunity / Oxygen_SOP

Oxygen Standard Operating Procedure (SOP)
https://oceangliderscommunity.github.io/Oxygen_SOP/README.html
Other
6 stars 21 forks source link

Build pdf, make release v1.0.0 for OBPS system #220

Closed soerenthomsen closed 2 years ago

soerenthomsen commented 2 years ago

The plan is now 1) Build a pdf locally 2) Make a GitHub release (zip file) of this repo 3) Submit the pdf + zip file to the OBPS system 4) Link the doi provided by OBPS to the GitHub release

Does it make sense?

_Originally posted by @soerenthomsen in https://github.com/OceanGlidersCommunity/Oxygen_SOP/issues/212#issuecomment-1137067184_

soerenthomsen commented 2 years ago

This issue is just to keep track of the whole pdf creation, GitHub release, submission to OBPS process to help the other SOPs leads (i.e. @patricialg @tomhull @isgiddy, @gkrahmann, @AlicePietri, @AnthonyBosse) to be able do the same. Just tag you here so you can observe :)

soerenthomsen commented 2 years ago

Build jupyter book (html+pdf) locally

Step 1: Downloaded the whole Oxygen_SOP repo to my local machine

Step 2: Installed Jupyter book on my local machine conda install -c conda-forge jupyter-book https://jupyterbook.org/en/stable/start/overview.html?highlight=Install#install-jupyter-book

Step 3: Build book locally jupyter-book build Oxygen_SOP/ --builder pdfhtml

Error message

Screenshot 2022-05-31 at 10 29 09

The problem seems to be related to sphinx / apa style. I might need to install some more packages?!

soerenthomsen commented 2 years ago

installed pip install pyppeteer and pip install pybtex-apa-style

As listen in the requirements.txt file

soerenthomsen commented 2 years ago
Screenshot 2022-05-31 at 15 32 06
soerenthomsen commented 2 years ago

Something happened in the html folder and looks good, but the pdf folder is still empty...

Screenshot 2022-05-31 at 15 33 32
soerenthomsen commented 2 years ago

We decided to build the pdf directly in the repo to avoid these problems. See GitHub Action here

This is already implemented as part of the CI: https://github.com/OceanGlidersCommunity/Oxygen_SOP/blob/f2875f30724ac5d2439dab34f4663185e90db3f1/.github/workflows/build_book.yml#L64-L71

jbusecke commented 2 years ago

Closing this as v1.0.0 has been released.

soerenthomsen commented 2 years ago

Sorry, I had to reopened this as I realised that the pdf has no page numbers :( Hope we can fix this quickly!

OceanGliders_Oxygen_SOP_v1.0.0.pdf

I planed to submit this to OBPS today but we need page numbers. If anyone finds a quick solution let me know @tomhull @jbusecke @isgiddy

Note the pdf build within this action and can be downloaded there.

jbusecke commented 2 years ago

Trying some things in #224

soerenthomsen commented 2 years ago

Thanks a lot. Let me know if I can do anything. I could not find anything in the Jupyter Book documentation.

jbusecke commented 2 years ago

It seems to be under active discussion: https://github.com/executablebooks/jupyter-book/issues/546

But I am not sure that will help us here. I see two options:

jbusecke commented 2 years ago

YISSSS, the latex worked. I actually think it looks a bit cleaner than the html version too.

Can you check if this works?