Versuch mit mkdocs-to-pdf

This commit is contained in:
Florian Hensel
2025-12-14 09:47:43 +01:00
parent d49196fe8c
commit ba5b76055e
4 changed files with 11 additions and 17 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
mkdocs/site/
*.pdf
*.PDF
*.PDF
.cache

View File

@@ -2,17 +2,7 @@ FROM squidfunk/mkdocs-material:latest
# Alpine-Pakete für WeasyPrint
RUN apk add --no-cache \
pango \
pango-dev \
cairo \
cairo-dev \
gdk-pixbuf \
gdk-pixbuf-dev \
jpeg-dev \
zlib-dev \
libffi-dev
weasyprint
# Plugin installieren
RUN pip install --no-cache-dir mkdocs-to-pdf
WORKDIR /docs

View File

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

View File

@@ -53,6 +53,9 @@ markdown_extensions:
- pymdownx.highlight
- pymdownx.superfences
#plugins:
# - search
# - mkdocs-to-pdf
plugins:
- offline
- search:
- optimize:
concurrency: 2
- mkdocs-to-pdf