mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 17:03:47 +01:00
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
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.tmp.html
|
|
venv/bin/python clean-all-in-one-html-file.py LdapSaisie.tmp.html LdapSaisie.html
|
|
rm -f LdapSaisie.tmp.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 --upgrade pip setuptools
|
|
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
|
|
|
|
debian: LdapSaisie.html
|