ldapsaisie/doc/Makefile

36 lines
992 B
Makefile
Raw Normal View History

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
venv/bin/htmlark public_html/print_page/index.html -o LdapSaisie.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
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