docker mkit mkdocs-to-pdf erweiterung

This commit is contained in:
Florian Hensel
2025-12-13 12:26:30 +01:00
parent c6a863c95a
commit 0dbebc858b
3 changed files with 20 additions and 10 deletions

View File

@@ -1,12 +1,18 @@
FROM pandoc/latex:latest FROM squidfunk/mkdocs-material:latest
WORKDIR /data # Systemabhängige WeasyPrint-Dependencies (minimal für Debian/Ubuntu-Basis)
RUN apt-get update && \
apt-get install -y \
libpango-1.0-0 \
libpangoft2-1.0-0 \
libpango1.0-dev \
libffi-dev \
libcairo2 \
libjpeg-dev \
libpng-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/*
## Eisvogel Template kopieren (lokal notwendig) # mkdocs-to-pdf + Extras
#COPY eisvogel.tex /data/eisvogel.tex RUN pip install --no-cache-dir mkdocs-to-pdf[all] # PyPI-Installation [web:0]
# Script kopieren und ausführbar machen WORKDIR /docs
COPY mkdocs-to-pdf.sh /usr/local/bin/mkdocs-to-pdf.sh
RUN chmod +x /usr/local/bin/mkdocs-to-pdf.sh
ENTRYPOINT ["/usr/local/bin/mkdocs-to-pdf.sh"]

View File

@@ -1,6 +1,7 @@
services: services:
mkdocs: mkdocs:
image: squidfunk/mkdocs-material:latest build: .
#image: squidfunk/mkdocs-material:latest
volumes: volumes:
- ./mkdocs:/docs - ./mkdocs:/docs
ports: ports:

View File

@@ -53,3 +53,6 @@ markdown_extensions:
- pymdownx.highlight - pymdownx.highlight
- pymdownx.superfences - pymdownx.superfences
plugins:
- search
- mkdocs-to-pdf