_ _
___ | |__ __ _ _______ | |_
/ _ \| '_ \ / _` |_ / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
\___/|_| |_|\__,_/___\___/ \__|
mandoc
—
options
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. |