From 65b5d1bd442fdb0d8d7628b68bb5471bc561f809 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 8 Jul 2023 00:17:17 +0200 Subject: [PATCH] convert markdown to html --- .gitignore | 1 + Makefile | 22 ++++++++++++++++++++++ end.html | 6 ++++++ start.html | 16 ++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 end.html create mode 100644 start.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a48cf0d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ce893cd --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +output : all + +public: + mkdir public + +public/static: static + cp -r static public/ + +public/%.html : %.md + @cp start.html $@ + @cat $< | sed 's#.md)#.html)#g' | pandoc -f markdown -t html5 -o- >> $@ + @cat end.html >> $@ + +HTML := $(patsubst %.md,public/%.html,$(wildcard *.md)) + +all : public $(HTML) public/static + +test: + echo $(HTML) + +clean : + rm -rf public diff --git a/end.html b/end.html new file mode 100644 index 0000000..9068f90 --- /dev/null +++ b/end.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/start.html b/start.html new file mode 100644 index 0000000..914cbcc --- /dev/null +++ b/start.html @@ -0,0 +1,16 @@ + + + + + + + + Decentrala + + +
+
+

DECENTRALA

+
+
+