Created
May 18, 2018 23:18
-
-
Save slaymaker1907/6b24f508bbad190e78b618efd54726b4 to your computer and use it in GitHub Desktop.
Poor Mans Pandoc Wiki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SOURCES=$(wildcard **/*.md) $(wildcard *.md) | |
HTML=$(patsubst %.md, build/%.html, $(SOURCES)) | |
all: $(HTML) | |
build/%.html: %.md | |
mkdir --parents $(dir $@) | |
pandoc -s $< -o $@ | |
.PHONY: | |
clean: | |
rm -rf ./build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The idea behind this is to have a bunch of markdown files in the same directory as this file (as well as any subdirectories). It converts them into HTML and puts them in a build directory. I created this because I wanted a quick and easy way to write notes as hypertext without having to write raw HTML.
Setup