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
Build and deploy tutorials in CI #1487
Comments
Deploying the pdf's should not be too difficult. However, since this issue was opened, most of the tutorials have been rewritten as Jupyter notebooks. These need to be run in pypresso, which takes quite some time and requires some form of pre-processing to remove long or infinite loops and calls to the visualizers. I've been working on a solution to that problem using a more elaborate version of an already available pre-processing script importlib_wrapper.py. |
Once we get the pdf's deployed, we might as well remove them from the source code. They always get outdated. |
Update: to build PDF's, we need texlive installed. I tried
|
I wouldn’t recommend increasing the image size like that. How about installing a minimal texlive 2019 with the needed packages? There is a ppa at https://launchpad.net/~jonathonf/+archive/ubuntu/texlive. |
Cool! With this PPA, the image size only increases by 240 MB (177 MB for # install TeXlive 2019 from a PPA
RUN apt-get update \
&& apt-get install -y --no-install-recommends software-properties-common \
&& add-apt-repository -y ppa:jonathonf/texlive \
&& apt-get update \
&& apt-get install -y --no-install-recommends texlive-latex-recommended texlive-fonts-recommended
RUN useradd -m espresso
USER 1000
# install extra LaTeX packages locally
RUN tlmgr init-usertree \
&& tlmgr install pgf tikz-3dplot revtex units mhchem chemgreek todonotes upquote framed subfigure cleveref \
&& tlmgr install lm stmaryrd 2>&1 || : \
&& updmap -user
|
3024: Build and deploy tutorials in CI r=KaiSzuttor a=jngrad Fixes #1487 Description of changes: - introduce a CUDA 10.1 job - simplify the export statements for notebooks with a single `nb_export` macro: - conversion to Python scripts is mandatory for tutorial tests - conversion to HTML (with or without running cells) is mandatory for the website - having the `html_export`/`python_export` macro pair caused code duplication in CMake - CI/CD: - compile and deploy LaTeX tutorials as PDF to the website - run and deploy IPython tutorials as HTML to the website - don't deploy IPython tutorials as Python to the website - url: http://espressomd.org/wordpress/documentation/ - cleanup of LaTeX tutorials: - remove regenerable files (i.e. .pdf and .toc files) since they were always outdated and are now generated by CI/CD - remove the LaTeX template subfolder, since we decidedto write future tutorials in Jupyter - the steps required to create a new Jupyter tutorial are now [explained in the wiki](https://github.com/espressomd/espresso/wiki/Documentation) Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
The job on gitlab ci that builds and deploys sphinx and doxygen should also do the same with the tutorial pdf's.
The text was updated successfully, but these errors were encountered: