Documentation here, example use here.
I recommend writing manpages using pandoc. You can write a markdown document and generate a manpage using
bash
$ pandoc EXECUTABLE.md -s -t man -o man/executable.1
For an example of how to write a manpage using markdown, see here.