1 .\" $Id: man.conf.5,v 1.5 2017/08/22 18:17:52 schwarze Exp $
3 .\" Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: August 22 2017 $
22 .Nd configuration file for man
24 This is the configuration file
31 Its presence, and all directives, are optional.
33 This file is an ASCII text file.
34 Leading whitespace on lines, lines starting with
36 and blank lines are ignored.
37 Words are separated by whitespace.
38 The first word on each line is the name of a configuration directive.
40 The following directives are supported:
42 .It Ic manpath Ar path
43 Override the default search
50 It can be used multiple times to specify multiple paths,
51 with the order determining the manual page search order.
53 Each path is a tree containing subdirectories
54 whose names consist of the strings
58 followed by the names of sections, usually single digits.
59 The former are supposed to contain unformatted manual pages in
63 format; file names should end with the name of the section
65 The latter should contain preformatted manual pages;
66 file names should end with
73 in each directory configured with
75 is recommended and necessary for
79 on operating systems like
81 that install each manual page with only one file name in the file system,
82 even if it documents multiple utilities or functions.
83 .It Ic output Ar option Op Ar value
84 Configure the default value of an output option.
85 These directives are overridden by the
87 command line options of the same names.
92 .Bl -column fragment integer "ascii, utf8" -compact
93 .It Ar option Ta Ar value Ta used by Fl T Ta purpose
95 .It Ic fragment Ta none Ta Cm html Ta print only body
96 .It Ic includes Ta string Ta Cm html Ta path to header files
97 .It Ic indent Ta integer Ta Cm ascii , utf8 Ta left margin
98 .It Ic man Ta string Ta Cm html Ta path for \&Xr links
99 .It Ic paper Ta string Ta Cm ps , pdf Ta paper size
100 .It Ic style Ta string Ta Cm html Ta CSS file
101 .It Ic width Ta integer Ta Cm ascii , utf8 Ta right margin
103 .It Ic _whatdb Ar path Ns Cm /whatis.db
104 This directive provides the same functionality as
106 but using a historic and misleading syntax.
107 It is kept for backward compatibility for now,
108 but will eventually be removed.
113 The following configuration file reproduces the defaults:
114 installing it is equivalent to not having a
117 .Bd -literal -offset indent
118 manpath /usr/share/man
119 manpath /usr/X11R6/man
120 manpath /usr/local/man
127 A relatively complicated
129 file format first appeared in
133 it was redesigned from scratch, aiming for simplicity.
135 .An Ingo Schwarze Aq Mt schwarze@openbsd.org