roffit(1)
π NAME π
roffit β okay so bestie, it converts nroff into HTML. That's the whole gig. Iconic behaviour, honestly. π
β¨ SYNOPSIS β¨
roffit [options] < inputfile > outputfile
π¦ DESCRIPTION π¦
So here's the tea β: roffit takes your inputfile and turns it into your outputfile. And listen β the inputfile has to be an nroff formatted man page, like that's non-negotiable, no substitutes. The outputfile comes out as an HTML document. Slay. π
π OPTIONS π
--bareβ the output HTML is gonna be naked β¨, meaning it will not include anyHTML,HEADorBODYtags. And also β heads up β when you pick this, there's no inlined CSS either, so you're fully on your own defining the classes you need, bestie. You got this tho π«Ά--versionβ displays the version number and then just dips. Bye π--mandir=<dir>β sets a directory whereroffitwill go looking for other man pages (innroff[name].[num]format) that this one refers to. If it finds them? A<a href>link gets made to that page with ahtmlextension instead of the number. And the file name in the generated link will be prefixed by the dir you gave with--hrefdir. π
This works for references written as manpage(3) (inside the emphasis formatting) and also in a plain .BR section β which is, like, the one everyone uses in the SEE ALSO section. iykyk π
--hrefdir=<dir>β specify a directory to prefix the generatedhreflinks that were created with the--mandiroption. Defaults to".". Yes, just a lil dot. Humble. π--preserve-caseβ when you use this,roffitpreserves the case inSH(section header) in the output instead of uppercasing the first letter and lowercasing the rest. Not me telling you that this case-changing behaviour was introduced in roffit 0.13 β because it was, fr fr. ποΈ
πΈ CSS CLASSES πΈ
h2.nroffshβ the nroff".SH"section. These are normally the "headlines" that come before each sub section inside the man page. Main character energy fr πp.nroffipβ the nroff".IP"section. These are normally the bullet kind, used to list each option out of several in a list. Usually followed by ap.level0containing the descriptive text. πp.level0β normal text at the first level. Normally not indented at all.p.level1β text at the next logical indent level. Normally indented one level right. β‘οΈp.level2β text at the second logical indent level. Normally indented two levels right. β‘οΈβ‘οΈspan.boldβ text marked to be bold.span.manpageβ text marked as a reference to another man page. πspan.emphasisβ text marked to be emphasized. π«p.roffitβ used for the advertising final paragraph. Yes it's literally a class for the ad. We love a self-promo moment. π
π WWW π
https://daniel.haxx.se/projects/roffit
And that's the whole page, bestie β this was the roffit 0.13 manual, dated October 5 2021. Go forth and convert your man pages. Periodt. πβ¨π
π¦ where this page comes from
- alpine 3.24: roffit-doc 0.17-r0 Β· curl
- debian trixie: roffit 0.16-1 Β· curl
- ubuntu questing: roffit 0.16-1
- ubuntu resolute: roffit 0.17-1 Β· curl
- ubuntu stonking: roffit 0.17-1 Β· curl
- π the page's license: curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms