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

1
.gitignore vendored
View File

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

View File

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

View File

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

View File

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