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

+
+
+