Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>
Add a makefile to generate the page reading from md This makefile will generate the index page, while reading the markdown file, the only dependencies are make (if you use *nix you already have it on your system) and pandoc
Makefile | 11 +++++++++++
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..1c2b39341d4c17f61d0406a399b002c5fe625512 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +ENTRY_FILE = MANIFESTO.md +TITLE = "Software Livre no Estado" + +# This requires pandoc 2.0+ +PANDOC ?= pandoc -H header.html -A footer.html + +all: + $(PANDOC) $(ENTRY_FILE) --metadata title=$(TITLE) -o index.html + +clean: + rm index.html