diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f2bf0b1..3c8d2482 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -94,9 +94,11 @@ build:doc: script: - cd doc - mkdocs build -s + - htmlark public_html/print_page/index.html -o LdapSaisie.html artifacts: paths: - doc/public_html/ + - doc/LdapSaisie.html deploy:doc: stage: deploy @@ -109,3 +111,4 @@ deploy:doc: - echo "$SSH_HOST_KEY" | base64 -d > ~/.ssh/known_hosts script: - rsync -atv --exclude '.git*' --delete --progress ./doc/public_html/ $SSH_USER@$SSH_HOST:./ + - rsync -atv ./doc/LdapSaisie.html $SSH_USER@$SSH_HOST:LdapSaisie.html diff --git a/doc/.gitignore b/doc/.gitignore index 2e2e7a3b..4095079a 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1 +1,2 @@ public_html +LdapSaisie.html diff --git a/doc/mkdocs.yml b/doc/mkdocs.yml index f2993275..98b4c17a 100644 --- a/doc/mkdocs.yml +++ b/doc/mkdocs.yml @@ -20,6 +20,7 @@ plugins: - search: lang: fr # Set language for search - include-markdown + - print-site nav: diff --git a/doc/overrides/main.html b/doc/overrides/main.html new file mode 100644 index 00000000..3fdda1c4 --- /dev/null +++ b/doc/overrides/main.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block content %} + +{% if page.url_to_print_page %} + + {% include ".icons/material/printer.svg" %} + +{% endif %} + +{{ super() }} +{% endblock content %} diff --git a/doc/requirements.txt b/doc/requirements.txt index d2bf7918..9731d78c 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -2,3 +2,8 @@ mkdocs mkdocs-material mdx_truly_sane_lists mkdocs-include-markdown-plugin +mkdocs-print-site-plugin +# For building all-in-one HTML file +html5lib +requests +htmlark