Closed groenborg closed 7 years ago
After some research I have found out that man pages a written in a syntax called Groff, and are typically located in, depending on the operating system and application, /usr/share/man
. A tool called ronn can be used to generate these pages!
Seem there are an extension where you can write your man page in markdown and then convert it. I will try out the extension, using that will be simpler, since we have one less syntax to worry about, and markdown is easier to read that roff/groff
a sidenote.. git-lfs uses Ronn as well!
Ronn creates awesome man pages from markdown syntax.. VERY helpful. There is also an option to export it to an html page, so it can be hosted by GitHub pages. I have added an example under go-snippits
Create a synopsis