aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-22 13:09:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-22 13:09:17 +0000
commit369129e10cecda27554b9987d819367bcfcf3353 (patch)
tree1d9055d8a6102e9072cd7bb27103aea9b53689b5 /mdoc.7
parent47256364f90726421cafc28ec2f147ee98c59f94 (diff)
downloadmandoc-369129e10cecda27554b9987d819367bcfcf3353.tar.gz
mandoc-369129e10cecda27554b9987d819367bcfcf3353.tar.zst
mandoc-369129e10cecda27554b9987d819367bcfcf3353.zip
libman documents require `TH' and at least one node.
libman requirements documented in man.7 STRUCTURE section. Added STRUCTURE section to mdoc.7, too.
Diffstat (limited to 'mdoc.7')
-rw-r--r--mdoc.720
1 files changed, 18 insertions, 2 deletions
diff --git a/mdoc.7 b/mdoc.7
index 6228cc67..4b0914ac 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.31 2009/06/22 12:22:35 kristaps Exp $
+.\" $Id: mdoc.7,v 1.32 2009/06/22 13:09:17 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
@@ -278,7 +278,23 @@ In-lines have \(>=0 scoped arguments.
\&.Yy \(lB\-arg \(lBval...\(rB\(rB arg0 arg1 argN
.Ed
-.\"
+.\" SECTION
+.Sh STRUCTURE
+Each
+.Nm
+document must begin with the document prologue, containing, in order,
+.Sq \&.Dd ,
+.Sq \&.Dt ,
+and
+.Sq \&.Os .
+.Pp
+Following these, the document body must begin with the NAME section
+containing at least one
+.Sq \&.Nm
+followed by a
+.Sq \&.Nd
+macro.
+.\" SECTION
.Sh MACROS
This section contains a complete list of all
.Nm