here's a simple tutorial on how to do it: https://www.cyberciti.biz/faq/linux-unix-creating-a-manpage/