From 04b2ae6c891ef41ff14981fa7b20b38cb97a47aa Mon Sep 17 00:00:00 2001 From: Orestis Malaspinas <orestis.malaspinas@hesge.ch> Date: Wed, 6 May 2020 09:38:45 +0200 Subject: [PATCH] updated --- .gitmodules | 3 +++ Makefile | 36 ++++++++++++++++++++++++++++++++++++ css/tufte-css | 1 + 3 files changed, 40 insertions(+) create mode 100644 .gitmodules create mode 100644 Makefile create mode 160000 css/tufte-css diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..822f448 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "css/tufte-css"] + path = css/tufte-css + url = https://github.com/edwardtufte/tufte-css.git diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4df1de6 --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +OPTIONS = --filter=pandoc-numbering +OPTIONS += --filter=pandoc-crossref + +PDFOPTIONS = --highlight-style kate +PDFOPTIONS += --pdf-engine pdflatex +PDFOPTIONS += --number-sections +PDFOPTIONS += --template=./default.latex + + +HTMLOPTIONS += -t html5 +HTMLOPTIONS += -c css/tufte-css/tufte.css +HTMLOPTIONS += --self-contained +HTMLOPTIONS += --mathjax=MathJax.js + +MD=$(wildcard *.md) +HTML=$(MD:%.md=%.html) +PDF=$(MD:%.md=%.pdf) + + +all: $(HTML) $(PDF) + +%.pdf: %.md Makefile + pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $< + +%.html: %.md Makefile + pandoc -s $(OPTIONS) $(HTMLOPTIONS) -o $@ $< + +deploy: all + mkdir -p prog_seq_c_tp/shortest_path + cp graphe.html prog_seq_c_tp/shortest_path/index.html + cp graphe.pdf prog_seq_c_tp/shortest_path/graphe.pdf + cp xml_parser.h xml_parser.h prog_seq_c_tp/shortest_path/ + + +clean: + rm -rf *.html *.pdf prog_seq_c_tp diff --git a/css/tufte-css b/css/tufte-css new file mode 160000 index 0000000..c414b91 --- /dev/null +++ b/css/tufte-css @@ -0,0 +1 @@ +Subproject commit c414b9117d5b39bdb747a172822333fc1043aee3 -- GitLab