You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Edward Shen 6b0ddd9d95
lol autofetch from man page
4 years ago
CNAME lol 4 years ago
LICENSE added license 4 years ago
README.md lol autofetch from man page 4 years ago
edward-shen.man added pandoc template 4 years ago
index.html lol autofetch from man page 4 years ago
man-template.html made it public 4 years ago
man-to-html lol autofetch from man page 4 years ago

README.md

man-to-html

Opinionated man page (roff) to html converter.

Usage

Here's how my man page is created:

./man-to-html edward-shen.man index.html

This script will automatically fetch in metadata information from the man page. Specifically, it'll parse the first line:

.TH cmd-name page date version title

This might not work and will likely break if the man page's first line isn't in that exact format.

Prereqs

Install pandoc.