From cd98c37fcb648b34edb064fbd1b0c333bd6a36f9 Mon Sep 17 00:00:00 2001 From: Dennis Heinrich Date: Fri, 5 Apr 2024 08:24:22 +0200 Subject: [PATCH] Versuch zur Erstellung einer PDF aus der Dokumentation --- .github/workflows/publish-documentation.yml | 3 ++- mkdocs.yml | 8 ++++++++ requirements.txt | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/.github/workflows/publish-documentation.yml b/.github/workflows/publish-documentation.yml index 2c0d2f3..e765a35 100644 --- a/.github/workflows/publish-documentation.yml +++ b/.github/workflows/publish-documentation.yml @@ -20,4 +20,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CUSTOM_DOMAIN: help.streckenkunde.dennis-heinri.ch CONFIG_FILE: mkdocs.yml - EXTRA_PACKAGES: build-base \ No newline at end of file + EXTRA_PACKAGES: build-base + REQUIREMENTS: requirements.txt \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index b40c190..366aa41 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,6 +11,14 @@ theme: - toc.follow - navigation.footer +plugins: + - search + - pdf-export: + - verbose: true + - media_type: print + - combined: true + - combined_output_path: docs/index.pdf + extra: generator: false social: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..16b0dbe --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +mkdocs-pdf-export-plugin \ No newline at end of file