Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-License-Identifier: MIT OR CC0-1.0
# build image:
# docker build -t juliadocs/documenter-latex:1.0 .
FROM ubuntu:18.04
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's update this. Could be conservative and use 22.04 though.


RUN useradd --create-home zeptodoctor
RUN set -eux; \
apt-get update; \
apt-get install --no-install-recommends -y \
# minimal texlive
texlive-luatex \
texlive-latex-base \
texlive-latex-recommended \
texlive-latex-extra \
# latexmk: LaTeX build tool
latexmk \
# code highlighting
python-pygments \
# refresh the font cache
fontconfig \
; \
rm -rf /var/lib/apt/lists/*; \
apt-get purge -y --auto-remove;
Comment on lines +7 to +23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pure bikeshed, but I think Docker supports heredocs, which should allow us to get rid of the \s?


WORKDIR /home/zeptodoctor/
10 changes: 10 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# documenter-latex

Docker image for compiling pdf output with
[`Documenter.jl`](https://github.com/JuliaDocs/Documenter.jl)


## Whats in the image?

Ubuntu + a (minimal) texlive installation, essentially only including what's
needed for compiling the output of `Documenter.jl`/`DocumenterLaTeX.jl`.
1 change: 1 addition & 0 deletions src/latex/LaTeXWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ function latex_fileprefix(doc::Documenter.Document, settings::LaTeX)
end

const DOCKER_IMAGE_TAG = "0.1"
# TODO: const DOCKER_IMAGE_TAG = "1.0"

function compile_tex(doc::Documenter.Document, settings::LaTeX, fileprefix::String)
if settings.platform == "native"
Expand Down