From 84eaf9574581175da1da2ce2564caede9be3a818 Mon Sep 17 00:00:00 2001 From: Orestis Malaspinas <orestis.malaspinas@hesge.ch> Date: Tue, 3 Nov 2020 10:30:56 +0100 Subject: [PATCH] added empty newlines at the end and updated makefile --- .gitignore | 1 + 10_footer.md | 1 + Makefile | 14 ++++++++++++++ 3 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index ca0e1cf..ff08ece 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ *.backup *.pdf *.html +*.markdown diff --git a/10_footer.md b/10_footer.md index fb1aee9..b859f0f 100644 --- a/10_footer.md +++ b/10_footer.md @@ -15,3 +15,4 @@ les jointures des articulation $\mu_k=0.01$. [^6]: A titre d'exemple, pour un contact bois sur bois, on a $\mu_s=0.4$, pour du caoutchouc sur du béton $\mu_s=1$, et pour les jointures des articulation $\mu_s=0.01$. + diff --git a/Makefile b/Makefile index 87d2ede..368a88d 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,20 @@ cours.pdf: 00_macros.md 01_analyse_dimensionnelle.md 02_lois_de_newton.md 03_cha cours.html: 00_macros.md 01_analyse_dimensionnelle.md 02_lois_de_newton.md 03_charge_electrique_champs_electrique.md 10_footer.md pandoc -s $(OPTIONS) $(HTMLOPTIONS) -o $@ $^ --metadata-file metadata.yaml +hakyll_gen: Analyse_Dimensionnelle.markdown Lois_de_Newton.markdown Charge_Electrique_Champs_Electrique.markdown + +Analyse_Dimensionnelle.markdown: 00_macros.md 01_analyse_dimensionnelle.md 10_footer.md + cat $^ > $@ + sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 01_rappel.md | head -n 1)\nmathjax: on\n---" $@ + +Lois_de_Newton.markdown: 00_macros.md 02_lois_de_newton.md 10_footer.md + cat $^ > $@ + sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 01_rappel.md | head -n 1)\nmathjax: on\n---" $@ + +Charge_Electrique_Champs_Electrique.markdown: 00_macros.md 03_charge_electrique_champs_electrique.md 10_footer.md + cat $^ > $@ + sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 01_rappel.md | head -n 1)\nmathjax: on\n---" $@ + deploy: all mkdir -p phys cp cours.html phys/index.html -- GitLab