ldapsaisie/doc/Makefile

35 lines
935 B
Makefile
Raw Normal View History

2023-08-18 13:05:04 +02:00
build: venv public_html LdapSaisie.html
2023-08-18 18:46:31 +02:00
public_html: venv
2023-08-18 13:05:04 +02:00
venv/bin/mkdocs build -s
2023-08-18 18:46:31 +02:00
LdapSaisie.html: venv public_html
2023-08-18 13:05:04 +02:00
venv/bin/htmlark public_html/print_page/index.html -o LdapSaisie.html
LdapSaisie.pdf: LdapSaisie.html
2023-08-18 18:46:46 +02:00
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:"../src/images/default/logo.png" \
-o LdapSaisie.epub
2023-08-18 13:05:04 +02:00
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