roffit(1)

πŸ“¦
version 0.17 Β· 2 versions
, in alpine 3.24, debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸŽ€ 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 any HTML, HEAD or BODY tags. 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 where roffit will go looking for other man pages (in nroff [name].[num] format) that this one refers to. If it finds them? A <a href> link gets made to that page with a html extension 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 generated href links that were created with the --mandir option. Defaults to ".". Yes, just a lil dot. Humble. πŸŽ€
  • --preserve-case β€” when you use this, roffit preserves the case in SH (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 a p.level0 containing 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