From e71c14aa725d71a2ea7310c69b3d11a8bc12c0b0 Mon Sep 17 00:00:00 2001
From: Prefetch
Date: Sat, 20 Feb 2021 13:46:18 +0100
Subject: Add latex/ directory + fix MathJax renderer

---
 latex/Makefile | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 latex/Makefile

(limited to 'latex/Makefile')

diff --git a/latex/Makefile b/latex/Makefile
new file mode 100644
index 0000000..590d33d
--- /dev/null
+++ b/latex/Makefile
@@ -0,0 +1,13 @@
+
+CONV = pandoc
+CONVFLAGS = --from markdown --to html --standalone --template template.html --mathjax=/mathjax/tex-svg.js
+
+know: $(shell find ./know/concept -mindepth 1 -maxdepth 1 -type d -printf "%p/index.html\\n")
+	for file in $^; do \
+		mkdir -p ../static/`dirname $$file` ; \
+		cp -v $$file ../static/`dirname $$file`/ ; \
+	done
+
+know/concept/%/index.html: know/concept/%/source.md template.html main.css
+	$(CONV) $(CONVFLAGS) $< -o $@
+
-- 
cgit v1.2.3