mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 18:39:07 +01:00
Add cover page and print site banner custom templates
This commit is contained in:
parent
22408c4475
commit
5343d793bd
3 changed files with 43 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
|||
site_name: LdapSaisie
|
||||
site_description: Documentation
|
||||
site_author: Benjamin Renard <brenard@easter-eggs.com / brenard@zionetrix.net>
|
||||
copyright: Easter-eggs
|
||||
docs_dir: 'src'
|
||||
site_dir: 'public_html'
|
||||
repo_url: https://gitlab.easter-eggs.com/ee/ldapsaisie
|
||||
|
@ -31,7 +34,8 @@ plugins:
|
|||
enumerate_headings: true
|
||||
enumerate_figures: 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: ""
|
||||
enabled: !ENV [ENABLED_PRINT_SITE, True]
|
||||
exclude:
|
||||
|
|
30
doc/src/assets/templates/custom_cover_page.tpl
Normal file
30
doc/src/assets/templates/custom_cover_page.tpl
Normal 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>
|
8
doc/src/assets/templates/print_site_banner.tpl
Normal file
8
doc/src/assets/templates/print_site_banner.tpl
Normal 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>
|
Loading…
Reference in a new issue