3 ms·
I'll do a more thorough write-up some time, but I do the obvious thing — use meta rules to generate the files using the appropriate tools. I use Pandoc to conv
by black_knight 11y ago
I'll do a more thorough write-up some time, but I do the obvious thing — use meta rules to generate the files using the appropriate tools.
I use Pandoc to convert to html and glue together the files. An index file lists which files go to the server. Some files are html only, others are also available as PDF.
Some of the things I do are less obvious. There is a rule to make the target «deadlinks» which iterates through the resulting html files and attempts to fetch the (first bytes) of each linke. The links which fail go into deadlinks.
There is also a target which lists spelling mistakes.
The deployment target is configured to fail if there are dead links or spelling-mistakes (there are also a few other sanity checks).