skribilo-mdoc

A man page generator with support for the mdoc format build using Skribilo

git clone https://git.8pit.net/skribilo-mdoc.git

 1(use-modules (skribilo package man))
 2
 3(document :title [cat]
 4          :mdoc-section 1
 5          :mdoc-desc [concatenate and print files]
 6
 7  (section :title [Synposis]
 8   (man-name)
 9   (man-opt (man-flags [benstuv]))
10   (man-arg))
11
12  (section :title [Description]
13   [The ,(man-name) utility reads files sequentially, writing them to the standard output.
14The ,(man-arg [file]) operands are processed in command-line order.
15If ,(man-arg [file]) is a single dash ,(bold [-]) or absent, ,(man-name) reads from the standard input.]
16
17   (p [The options are as follows:])
18
19   (itemize
20     (item :key (man-flags [b])
21           [Number the lines, but don't count blank lines.])
22     (item :key (man-flags [e])
23           [Print a dollar sign at the end of each line.])))
24
25  (section :title [Description]
26   [The ,(man-name) utility shall read files ,(bold [in sequence]) and shall write their contents to the standard output in the same sequence.]))