From d1f51b98e27c975da5f297433b8a1e7926591ff3 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 18 Aug 2023 18:42:10 +0200 Subject: [PATCH] Fix print page version by downgrading to print-page plugin v1.3.0 --- doc/.gitignore | 1 + doc/mkdocs.yml | 17 ++++++++++++++++- doc/requirements.txt | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/.gitignore b/doc/.gitignore index 571d5ee3..f46ff6dd 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1,3 +1,4 @@ public_html LdapSaisie.html +LdapSaisie.pdf venv diff --git a/doc/mkdocs.yml b/doc/mkdocs.yml index 8b041c10..8643819a 100644 --- a/doc/mkdocs.yml +++ b/doc/mkdocs.yml @@ -19,7 +19,22 @@ extra: plugins: - search: lang: fr # Set language for search - - print-site + - print-site: + add_to_navigation: true + print_page_title: 'Documentation' + # Table of contents + add_table_of_contents: true + toc_title: 'Table des matières' + toc_depth: 6 + # Content-related + add_full_urls: false + enumerate_headings: true + enumerate_figures: true + add_cover_page: true + cover_page_template: "" + path_to_pdf: "" + enabled: !ENV [ENABLED_PRINT_SITE, True] + exclude: nav: diff --git a/doc/requirements.txt b/doc/requirements.txt index ba70f586..7bf878c8 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,7 +1,7 @@ mkdocs mkdocs-material mdx_truly_sane_lists -mkdocs-print-site-plugin +mkdocs-print-site-plugin==1.3.0 # For building all-in-one HTML file html5lib requests