How To - Linux / UNIX Create a Manpage

Originally published at: https://www.cyberciti.biz/faq/linux-unix-creating-a-manpage/

How do I create a man page for my shell or python scripts under Linux / UNIX-like operating systems?