commit: 545492b9eda3dc597aecfb4d486d6a48893b75a1
parent 7d3766d2361088d0c99d83978818433bdda39b08
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 28 Jan 2023 09:13:41 +0100
Add PDF exports via weasyprint
Diffstat:
5 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -0,0 +1,7 @@
+all: accueil.pdf home.pdf
+
+accueil.pdf: accueil.html style.css
+ weasyprint accueil.html accueil.pdf
+
+home.pdf: home.html style.css
+ weasyprint home.html home.pdf
diff --git a/accueil.html b/accueil.html
@@ -72,6 +72,6 @@
</ul>
</section>
</main>
- <footer>Copyright <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA 4.0</a> Haelwenn (lanodan) Monnier; inspiré par la <a href="https://michcioperz.com">page de Michał Sidor (Michcioperz)</a>; Aussi fait pour fonctionner correctement sur papier/export PDF.</footer>
+ <footer>Copyright <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA 4.0</a> Haelwenn (lanodan) Monnier; inspiré par la <a href="https://michcioperz.com">page de Michał Sidor (Michcioperz)</a>; Aussi fait pour fonctionner correctement sur <a href="./accueil.pdf">papier/export PDF</a>.</footer>
</body>
</html>
diff --git a/accueil.pdf b/accueil.pdf
Binary files differ.
diff --git a/home.html b/home.html
@@ -72,6 +72,6 @@
</section>
</main>
- <footer>Copyright <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA 4.0</a> Haelwenn (lanodan) Monnier; inspired by the <a href="https://michcioperz.com">page of Michał Sidor (Michcioperz)</a>; This is also done to work well in paper/PDF export.</footer>
+ <footer>Copyright <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA 4.0</a> Haelwenn (lanodan) Monnier; inspired by the <a href="https://michcioperz.com">page of Michał Sidor (Michcioperz)</a>; This is also done to work well in <a href="./home.pdf">paper/PDF export</a>.</footer>
</body>
</html>
diff --git a/home.pdf b/home.pdf
Binary files differ.