Cleaning up docs.

Kinda...
This commit is contained in:
Simon Forman
2022-09-16 09:03:42 -07:00
parent 7a25eee481
commit 9de71c84bf
8 changed files with 2535 additions and 2636 deletions
+9 -6
View File
@@ -1,14 +1,17 @@
FUNCDOCS = $(wildcard ../*.md)
TITLE = --metadata title="Functor Reference"
TITLE = --metadata title="Function Reference"
TOC = --toc --toc-depth=2
all: mov
all: Functor-Reference.md
pandoc -s $(TOC) $(TITLE) --ascii Functor-Reference.md -o FuncRef.html
FuncRef.html: Function-Reference.md
pandoc -s $(TOC) $(TITLE) --ascii Function-Reference.md -o FuncRef.html
Functor-Reference.md: HEADER.md $(FUNCDOCS)
awk 'FNR==1 && NR > 1 {print ""}1' HEADER.md $(FUNCDOCS) > Functor-Reference.md
Function-Reference.md: HEADER.md $(FUNCDOCS)
awk 'FNR==1 && NR > 1 {print ""}1' HEADER.md $(FUNCDOCS) > Function-Reference.md
# https://stackoverflow.com/questions/8183191/concatenating-files-and-insert-new-line-in-between-files
# WTF would we do w/o the Internet? Know our tools well?
mov: FuncRef.html
cp -v $? ../../html/