diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-30 11:00:53 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-30 11:00:53 +0000 |
commit | d767ea8dca6d98f405dc7525a38d5a6d61b3652f (patch) | |
tree | 46981a9a6b321d10b4c856989b73f4fb815dda6b /mdoc.7 | |
parent | b64011c9d38153292597008b06e898298b3ab30f (diff) | |
download | mandoc-d767ea8dca6d98f405dc7525a38d5a6d61b3652f.tar.gz |
Made `Dt' default to LOCAL and UNKNOWN instead of local and unknown (note case).
Have `Dt' default to UNKNOWN if it's an empty string.
Raise a warning if `Dt' title isn't capitalised.
Sync'd `Dt' documentation with reality.
Diffstat (limited to 'mdoc.7')
-rw-r--r-- | mdoc.7 | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1408,13 +1408,15 @@ This is the mandatory second macro of any file. Its calling syntax is as follows: .Pp -.D1 \. Ns Sx \&Dt Cm title section Op Cm volume | arch +.D1 \. Ns Sx \&Dt Op Cm title Op Cm section Op Cm volume | arch .Pp Its arguments are as follows: .Bl -tag -width Ds -offset Ds .It Cm title -The document's title (name). -This should be capitalised and is required. +The document's title (name), defaulting to +.Qq UNKNOWN +if unspecified. +It should be capitalised. .It Cm section The manual section. This may be one of @@ -1451,8 +1453,9 @@ This may be one of or .Ar paper .Pq paper . -It is also required and should correspond to the manual's filename -suffix. +It should correspond to the manual's filename suffix and defaults to +.Qq 1 +if unspecified. .It Cm volume This overrides the volume inferred from .Ar section . @@ -1524,7 +1527,6 @@ Examples: .D1 \&.Dt FOO 1 .D1 \&.Dt FOO 4 KM .D1 \&.Dt FOO 9 i386 -.D1 \&.Dt FOO 9 KM i386 .Pp See also .Sx \&Dd |