_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

mandocoptions

back_to_top

mandoc -T html -O includes=[PATH]/%I,man=[PATH]/%N[%S].html,style=[PATH_TO_CSS] [INPUT_MDOC] > [OUTPUT_HTML]
mandoc outputs to stdout, it can be redirected to a file.
-T [FORMAT] select the output html,man,ascii,markdown,locale,utf,pdf,ps.
includes=[PATH]/%I when using the In macro it's translated to PATH/[INCLUDE_NAME]
Eg.:
.In somename will be translated to an href PATH/somename
style=[PATH] the relative/absolute path to the css.
man=[PATH]/%N[%S] N is replaced by the name, and S for the section eg.: ssh.1.

back_to_top

roff

mandoc(1) , mdoc(7)

<mandoc.oh>

back_to_top

ohazot | about | ohazot.com <admin@ohazot.com>

Created:2025-10-03|Updated:2025-10-06 OpenBSD linux