I&#x27;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.<p>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.<p>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.<p>There is also a target which lists spelling mistakes.<p>The deployment target is configured to fail if there are dead links or spelling-mistakes (there are also a few other sanity checks).