For people who want to learn how to write man pages, I&#x27;ve found the following resources to be invaluable:<p>&quot;Practical UNIX Manuals: mdoc&quot; - an introduction to writing man pages in the mdoc language (<a href="http:&#x2F;&#x2F;manpages.bsd.lv&#x2F;" rel="nofollow">http:&#x2F;&#x2F;manpages.bsd.lv&#x2F;</a>)<p>&quot;mdoc(7)&quot; - a definitive reference for the mdoc language (<a href="http:&#x2F;&#x2F;mdocml.bsd.lv&#x2F;man&#x2F;mdoc.7.html" rel="nofollow">http:&#x2F;&#x2F;mdocml.bsd.lv&#x2F;man&#x2F;mdoc.7.html</a>)<p>Detailed mdoc documentation (<a href="http:&#x2F;&#x2F;mdocml.bsd.lv&#x2F;mdoc&#x2F;" rel="nofollow">http:&#x2F;&#x2F;mdocml.bsd.lv&#x2F;mdoc&#x2F;</a>)<p>The mandoc utility also has a built-in linter for man pages, run with -Tlint (<a href="http:&#x2F;&#x2F;mdocml.bsd.lv&#x2F;" rel="nofollow">http:&#x2F;&#x2F;mdocml.bsd.lv&#x2F;</a>).  It was originally designed for OpenBSD but it is portable.  I&#x27;ve run it on Linux and Cygwin without issues.  It really is an amazing tool, and its own documentation is fantastic.<p>Users writing new man pages should prefer the mdoc language to the legacy man language.  mdoc has been around for nearly two decades, works well on all modern platforms, and is a semantic markup language rather than a presentational one.  If you really need to support legacy systems, mandoc can convert man pages written in mdoc to man.<p>Please don&#x27;t write man pages in Docbook or anything that relies on Docbook for man page output.  I&#x27;ve had so many issues with xmlto and xsltproc and Docbook.  Really, mdoc is very simple and writing it by hand is not a big deal.  Modern man page processors can also produce HTML or PDF output, so don&#x27;t worry about that.  I&#x27;m sad that I&#x27;ve had to pull in such a heavyweight and complicated toolchain that doesn&#x27;t even work half the time just to generate some tiny man pages.