mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-25 03:19:08 +01:00
35 lines
992 B
Makefile
35 lines
992 B
Makefile
build: venv public_html LdapSaisie.html LdapSaisie.pdf LdapSaisie.epub
|
|
|
|
public_html: venv
|
|
venv/bin/mkdocs build -s
|
|
|
|
LdapSaisie.html: venv public_html
|
|
venv/bin/htmlark public_html/print_page/index.html -o LdapSaisie.html
|
|
|
|
LdapSaisie.pdf: LdapSaisie.html
|
|
docker run -v $(CURDIR):/workspace pink33n/html-to-pdf --url file:///workspace/LdapSaisie.html --pdf LdapSaisie.pdf
|
|
|
|
LdapSaisie.epub: LdapSaisie.html
|
|
pandoc LdapSaisie.html \
|
|
-f html \
|
|
--toc \
|
|
--standalone \
|
|
--top-level-division=chapter \
|
|
--highlight-style style/pygments.theme \
|
|
--css style/epub.css \
|
|
--metadata=title:"Documentation LdapSaisie" \
|
|
--metadata=author:"Benjamin Renard" \
|
|
--metadata=lang:"fr-FR" \
|
|
--metadata=cover-image:"../logos/ldapsaisie-logo.png" \
|
|
--pdf-engine=weasyprint \
|
|
-o LdapSaisie.epub
|
|
|
|
venv:
|
|
python3 -m venv venv
|
|
venv/bin/python -m pip install -r requirements.txt
|
|
|
|
clean:
|
|
rm -fr venv public_html LdapSaisie.html LdapSaisie.pdf LdapSaisie.epub
|
|
|
|
serve: venv
|
|
venv/bin/mkdocs serve
|