version 1.39, 2009/10/03 15:08:09 |
version 1.41, 2009/10/03 16:36:06 |
Line 54 Input format. See |
|
Line 54 Input format. See |
|
for available formats. Defaults to |
for available formats. Defaults to |
.Fl m Ns Ar andoc . |
.Fl m Ns Ar andoc . |
. |
. |
.It Fl o Ns Ar format |
.It Fl o Ns Ar option... |
Comma-separated output options. See |
Comma-separated output options. See |
.Sx Output Options |
.Sx Output Options |
for details. |
for details. |
|
|
.Ar style.css |
.Ar style.css |
is used for an external style-sheet. This must be a valid absolute or |
is used for an external style-sheet. This must be a valid absolute or |
relative URI. |
relative URI. |
|
.It Fl o Ns Ar includes=fmt |
|
The string |
|
.Ar fmt , |
|
for example, |
|
.Ar ../src/%I.html , |
|
is used as a template for linked header files (usually via the |
|
.Sq \&In |
|
macro). Instances of |
|
.Sq %I |
|
are replaced with the include filename. The default is not to present a |
|
hyperlink. |
.It Fl o Ns Ar man=fmt |
.It Fl o Ns Ar man=fmt |
The string |
The string |
.Ar fmt , |
.Ar fmt , |
|
|
.Ar ../html%S/%N.%S.html , |
.Ar ../html%S/%N.%S.html , |
is used as a template for linked manuals (usually via the |
is used as a template for linked manuals (usually via the |
.Sq \&Xr |
.Sq \&Xr |
macro). The default is |
macro). Instances of |
.Ar %N.%S.html . |
.Sq %N |
|
and |
|
.Sq %S |
|
are replaced with the linked manual's name and section, respectively. |
|
If no section is included, section 1 is assumed. The default is not to |
|
present a hyperlink. |
.El |
.El |
. |
. |
.Sh EXAMPLES |
.Sh EXAMPLES |
Line 279 To page manuals to the terminal: |
|
Line 295 To page manuals to the terminal: |
|
.D1 % mandoc mandoc.1 mdoc.3 mdoc.7 | less |
.D1 % mandoc mandoc.1 mdoc.3 mdoc.7 | less |
. |
. |
.Pp |
.Pp |
To produce HTML manuals with |
To produce HTML manuals with |
.Pa http://localhost/ |
.Ar style.css |
as the base URI: |
as the style-sheet: |
.Pp |
.Pp |
.D1 % mandoc \-Thtml -obase=http://localhost/ mdoc.7 > mdoc.7.html |
.D1 % mandoc \-Thtml -ostyle=style.css mdoc.7 > mdoc.7.html |
.Pp |
.Pp |
To check over a large set of manuals: |
To check over a large set of manuals: |
. |
. |