Adjust generate_manpage to generate other docs as well
Rename generate_manpage to generate_doc