summaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-09-21 13:06:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-09-21 13:06:13 +0000
commit665ccc57084126888487f5e77562f85fdb53fdfc (patch)
tree5c479a5a1473e20d4a07695a2b0510d78d6fbb1a /mandoc.1
parent72d7121f0c1ef16558a100baca0e14260bdbbe9a (diff)
downloadmandoc-665ccc57084126888487f5e77562f85fdb53fdfc.tar.gz
mandoc-665ccc57084126888487f5e77562f85fdb53fdfc.tar.zst
mandoc-665ccc57084126888487f5e77562f85fdb53fdfc.zip
Removed new-born out.{h,c} (not a good idea).
Removed if 0 for HTML-mode output (why not). Added option -oxxxx for passing options to output devices.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.151
1 files changed, 34 insertions, 17 deletions
diff --git a/mandoc.1 b/mandoc.1
index 9596d5ed..58af31c6 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.36 2009/09/15 08:16:20 kristaps Exp $
+.\" $Id: mandoc.1,v 1.37 2009/09/21 13:06:13 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: September 15 2009 $
+.Dd $Mdocdate: September 21 2009 $
.Dt MANDOC 1
.Os
.
@@ -26,11 +26,12 @@
.
.Sh SYNOPSIS
.Nm mandoc
-.Op Fl V
.Op Fl f Ns Ar option...
.Op Fl m Ns Ar format
-.Op Fl W Ns Ar err...
+.Op Fl o Ns Ar option...
.Op Fl T Ns Ar output
+.Op Fl V
+.Op Fl W Ns Ar err...
.Op Ar infile...
.
.
@@ -43,7 +44,7 @@ manual pages for display. The arguments are as follows:
.
.Bl -tag -width Ds
.It Fl f Ns Ar option...
-Override default compiler behaviour. See
+Comma-separated compiler options. See
.Sx Compiler Options
for details.
.
@@ -53,6 +54,11 @@ Input format. See
for available formats. Defaults to
.Fl m Ns Ar andoc .
.
+.It Fl o Ns Ar format
+Comma-separated output options. See
+.Sx Output Options
+for details.
+.
.It Fl T Ns Ar output
Output format. See
.Sx Output Formats
@@ -63,7 +69,7 @@ for available formats. Defaults to
Print version and exit.
.
.It Fl W Ns Ar err...
-Configure warning messages. Use
+Comma-separated warning options. Use
.Fl W Ns Ar all
to print warnings,
.Fl W Ns Ar error
@@ -196,6 +202,9 @@ arguments:
Produce 7-bit ASCII output, backspace-encoded for bold and underline
styles. This is the default.
.
+.It Fl T Ns Ar html
+Produce strict HTML-4.01 output, with a sane default style.
+.
.It Fl T Ns Ar tree
Produce an indented parse tree.
.
@@ -241,16 +250,24 @@ Don't halt when encountering parse errors. Useful with
over a large set of manuals passed on the command line.
.El
.
-.Pp
-As with the
-.Fl W
-flag, multiple
-.Fl f
-options may be grouped and delimited with a comma. Using
-.Fl f Ns Ar ign-scope,no-ign-escape ,
-for example, will try to ignore scope and not ignore character-escape
-errors.
-.
+.Ss Output Options
+For the time being, only
+.Fl T Ns Ar html
+is the only mode with output options:
+.Bl -tag -width Ds
+.It Fl o Ns Ar style=style.css
+The file
+.Ar style.css
+is used for an external style-sheet. This must be a valid absolute or
+relative URI.
+.It Fl o Ns Ar base=http://base/
+The URL
+.Ar http://base/
+is used as a base URL for all relative links. This is useful when
+linking between documents via the
+.Sq \&Xr
+macro.
+.El
.
.Sh EXAMPLES
To page manuals to the terminal:
@@ -275,7 +292,7 @@ Each input and output format is separately noted.
.
.
.Ss ASCII output
-.Bl -bullet -compact -width Ds
+.Bl -bullet -compact
.It
The
.Sq \e~