mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-24 02:49:07 +01:00
34 lines
945 B
Makefile
34 lines
945 B
Makefile
serve: venv
|
|
venv/bin/mkdocs serve
|
|
|
|
build: venv public_html LdapSaisie.html
|
|
|
|
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: venv LdapSaisie.html
|
|
docker run -v $(CURDIR):/workspace pink33n/html-to-pdf --url file:///workspace/LdapSaisie.html --pdf LdapSaisie.pdf
|
|
|
|
LdapSaisie.epub: venv 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
|
|
|
|
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
|