Add cover page and print site banner custom templates

This commit is contained in:
Benjamin Renard 2023-08-18 19:23:19 +02:00
parent 22408c4475
commit 5343d793bd
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC
3 changed files with 43 additions and 1 deletions

View file

@ -1,4 +1,7 @@
site_name: LdapSaisie site_name: LdapSaisie
site_description: Documentation
site_author: Benjamin Renard <brenard@easter-eggs.com / brenard@zionetrix.net>
copyright: Easter-eggs
docs_dir: 'src' docs_dir: 'src'
site_dir: 'public_html' site_dir: 'public_html'
repo_url: https://gitlab.easter-eggs.com/ee/ldapsaisie repo_url: https://gitlab.easter-eggs.com/ee/ldapsaisie
@ -31,7 +34,8 @@ plugins:
enumerate_headings: true enumerate_headings: true
enumerate_figures: true enumerate_figures: true
add_cover_page: true add_cover_page: true
cover_page_template: "" cover_page_template: "src/assets/templates/custom_cover_page.tpl"
print_site_banner_template: "src/assets/templates/print_site_banner.tpl"
path_to_pdf: "" path_to_pdf: ""
enabled: !ENV [ENABLED_PRINT_SITE, True] enabled: !ENV [ENABLED_PRINT_SITE, True]
exclude: exclude:

View file

@ -0,0 +1,30 @@
<div style="padding-bottom: 3em">
{% if config.site_name %}
<h1>{{ config.site_name }}</h1>
{% endif %}
{% if config.site_description %}
<h2>{{ config.site_description }}</h2>
{% endif %}
</div>
<p>
<small>
Auteur: Benjamin Renard
(<a href="mailto:brenard@easter-eggs.com">brenard@easter-eggs.com</a> /
<a href="mailto:brenard@zionetrix.net">brenard@zionetrix.net</a>)
</small><br />
{% if config.site_url %}
<small>Site web: <a href="{{ config.site_url }}">{{ config.site_url }}</a></small><br />
{% endif %}
{% if config.repo_url %}
<small>Repo: <a href="{{ config.repo_url }}">{{ config.repo_url }}</a></small><br />
{% endif %}
{% if config.copyright %}
<small>{{ config.copyright }}</small><br />
{% endif %}
</p>

View file

@ -0,0 +1,8 @@
<p>
Cette page contient l'ensemble de la documentation du projet LdapSaisie et est adaptée pour une
impression papier ou PDF.
</p>
<p>
<em>Note : Cette boîte n'apparaîtra pas à l'impression.</em>
</p>