Files
Thun/docs/reference/Makefile
T
Simon Forman 188f6e42c7 Goodness, that was brutal.
The `!-` name doesn't work as a title for the conversion from ReST to
Markdown.  Maybe that's a bug in Pandoc, but more likely it's a legit
syntax gotcha in Mearkdown itself.

    !-
    ^^^^

In ReST turns into:

    !-\^\^\^\^

In the Markdown.  :(

It should be:

    # !-

Instead.
2022-03-23 13:02:19 -07:00

14 lines
513 B
Makefile

NOT_US = Functor-Reference.md FORMAT-Functor-Reference.md HEADER.md
FUNCDOCS = $(filter-out $(NOT_US),$(wildcard *.md))
all: Functor-Reference.md
pandoc -s --toc --toc-depth=2 --ascii Functor-Reference.md -o FuncRef.html
Functor-Reference.md: HEADER.md $(FUNCDOCS)
awk 'FNR==1 && NR > 1 {print ""}1' HEADER.md $(FUNCDOCS) > Functor-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?