2023-09-28 12:18:25 +02:00
|
|
|
build: venv public_html LdapSaisie.html LdapSaisie.pdf LdapSaisie.epub
|
2009-03-17 20:21:10 +01:00
|
|
|
|
2023-09-28 12:18:25 +02:00
|
|
|
public_html: venv
|
|
|
|
venv/bin/mkdocs build -s
|
2009-03-17 20:21:10 +01:00
|
|
|
|
2023-09-28 12:18:25 +02:00
|
|
|
LdapSaisie.html: venv public_html
|
2023-10-08 23:19:07 +02:00
|
|
|
venv/bin/htmlark public_html/print_page/index.html -o LdapSaisie.tmp.html
|
|
|
|
venv/bin/python clean-all-in-one-html-file.py LdapSaisie.tmp.html LdapSaisie.html
|
|
|
|
rm -f LdapSaisie.tmp.html
|
2009-03-17 20:21:10 +01:00
|
|
|
|
2023-09-28 12:18:25 +02:00
|
|
|
LdapSaisie.pdf: LdapSaisie.html
|
|
|
|
docker run -v $(CURDIR):/workspace pink33n/html-to-pdf --url file:///workspace/LdapSaisie.html --pdf LdapSaisie.pdf
|
2009-03-17 20:21:10 +01:00
|
|
|
|
2023-09-28 12:18:25 +02:00
|
|
|
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
|
2023-10-08 10:22:25 +02:00
|
|
|
venv/bin/python -m pip install --upgrade pip setuptools
|
2023-09-28 12:18:25 +02:00
|
|
|
venv/bin/python -m pip install -r requirements.txt
|
2010-04-12 12:40:14 +02:00
|
|
|
|
2009-03-17 20:21:10 +01:00
|
|
|
clean:
|
2023-09-28 12:18:25 +02:00
|
|
|
rm -fr venv public_html LdapSaisie.html LdapSaisie.pdf LdapSaisie.epub
|
|
|
|
|
|
|
|
serve: venv
|
|
|
|
venv/bin/mkdocs serve
|
2023-09-28 16:43:07 +02:00
|
|
|
|
|
|
|
debian: LdapSaisie.html
|