logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

roffit - convert nroff to HTML

Css Classes

       h2.nroffsh
              The nroff ".SH" section. These are normally the "headlines" before each sub section within the man
              page.

       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 containining the descriptive text.

       p.level0
              Normal text at the first level. Normally not indented.

       p.level1
              Text at 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.

Description

roffit  converts  the inputfile to outputfile. The inputfile must be an nroff formatted man page, and the
       outputfile will be an HTML document.

Name

       roffit - convert nroff to HTML

Options

       --bare The output HTML will not include any HTML, HEAD or BODY tags. Also not that when this is selected,
              there will be no inlined CSS but you will have to define the necessary classes yourself.

       --version
              Display version number and exit

       --mandir=<dir>
              Set a directory in which roffit will check for other man pages (in nroff [name].[num] format) that
              this one refers to. If found, a <a href> link will be made to that  page  with  a  html  extension
              instead  of the number. The file name in the generated link will be prefixed by the dir given with
              --hrefdir.

              This works for references specified as manpage(3) (within the  emhpasis  foformatting)  and  in  a
              plain .BR section (often used in the SEE ALSO section).

       --hrefdir=<dir>
              Specify a directory to prefix generated href links created with the --mandir option. This defaults
              to ".".

       --preserve-case
              When  used,  this  makes  roffit preserve the case in SH (section header) in the output instead of
              uppercasing the first letter and doing the rest lowercase.  The case changing  was  introduced  in
              roffit 0.13.

Synopsis

roffit[options]<inputfile>outputfile

Www

       https://daniel.haxx.se/projects/roffit

roffit 0.13                                      October 5 2021                                        roffit(1)

See Also