aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-30 11:00:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-30 11:00:53 +0000
commit00b1408577108687d502b7b56de8e3399986a349 (patch)
treec535af78076f266b280ec03a40300ce7f501a720 /mdoc.7
parent6183dbfbb27ceb32859b32133331b06f0b3037f4 (diff)
downloadmandoc-00b1408577108687d502b7b56de8e3399986a349.tar.gz
mandoc-00b1408577108687d502b7b56de8e3399986a349.tar.zst
mandoc-00b1408577108687d502b7b56de8e3399986a349.zip
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.718
1 files changed, 10 insertions, 8 deletions
diff --git a/mdoc.7 b/mdoc.7
index 08443bf8..e4ed410d 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.110 2010/05/26 10:39:35 kristaps Exp $
+.\" $Id: mdoc.7,v 1.111 2010/05/30 11:00:53 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -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: May 26 2010 $
+.Dd $Mdocdate: May 30 2010 $
.Dt MDOC 7
.Os
.Sh NAME
@@ -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