1*544c191cSchristos.\" Id: man.conf.5,v 1.6 2018/10/02 14:56:47 schwarze Exp 29ff1f2acSchristos.\" 3*544c191cSchristos.\" Copyright (c) 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> 49ff1f2acSchristos.\" 59ff1f2acSchristos.\" Permission to use, copy, modify, and distribute this software for any 69ff1f2acSchristos.\" purpose with or without fee is hereby granted, provided that the above 79ff1f2acSchristos.\" copyright notice and this permission notice appear in all copies. 89ff1f2acSchristos.\" 99ff1f2acSchristos.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 109ff1f2acSchristos.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 119ff1f2acSchristos.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 129ff1f2acSchristos.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 139ff1f2acSchristos.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 149ff1f2acSchristos.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 159ff1f2acSchristos.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 169ff1f2acSchristos.\" 17*544c191cSchristos.Dd October 2, 2018 189ff1f2acSchristos.Dt MAN.CONF 5 199ff1f2acSchristos.Os 209ff1f2acSchristos.Sh NAME 219ff1f2acSchristos.Nm man.conf 229ff1f2acSchristos.Nd configuration file for man 239ff1f2acSchristos.Sh DESCRIPTION 249ff1f2acSchristosThis is the configuration file 259ff1f2acSchristosfor the 269ff1f2acSchristos.Xr man 1 , 279ff1f2acSchristos.Xr apropos 1 , 289ff1f2acSchristosand 299ff1f2acSchristos.Xr makewhatis 8 309ff1f2acSchristosutilities. 319ff1f2acSchristosIts presence, and all directives, are optional. 329ff1f2acSchristos.Pp 339ff1f2acSchristosThis file is an ASCII text file. 349ff1f2acSchristosLeading whitespace on lines, lines starting with 359ff1f2acSchristos.Sq # , 369ff1f2acSchristosand blank lines are ignored. 379ff1f2acSchristosWords are separated by whitespace. 389ff1f2acSchristosThe first word on each line is the name of a configuration directive. 399ff1f2acSchristos.Pp 409ff1f2acSchristosThe following directives are supported: 419ff1f2acSchristos.Bl -tag -width Ds 429ff1f2acSchristos.It Ic manpath Ar path 439ff1f2acSchristosOverride the default search 449ff1f2acSchristos.Ar path 459ff1f2acSchristosfor 469ff1f2acSchristos.Xr man 1 , 479ff1f2acSchristos.Xr apropos 1 , 489ff1f2acSchristosand 499ff1f2acSchristos.Xr makewhatis 8 . 509ff1f2acSchristosIt can be used multiple times to specify multiple paths, 519ff1f2acSchristoswith the order determining the manual page search order. 529ff1f2acSchristos.Pp 539ff1f2acSchristosEach path is a tree containing subdirectories 549ff1f2acSchristoswhose names consist of the strings 559ff1f2acSchristos.Sq man 569ff1f2acSchristosand/or 579ff1f2acSchristos.Sq cat 589ff1f2acSchristosfollowed by the names of sections, usually single digits. 599ff1f2acSchristosThe former are supposed to contain unformatted manual pages in 609ff1f2acSchristos.Xr mdoc 7 619ff1f2acSchristosand/or 629ff1f2acSchristos.Xr man 7 639ff1f2acSchristosformat; file names should end with the name of the section 649ff1f2acSchristospreceded by a dot. 659ff1f2acSchristosThe latter should contain preformatted manual pages; 669ff1f2acSchristosfile names should end with 679ff1f2acSchristos.Ql .0 . 689ff1f2acSchristos.Pp 699ff1f2acSchristosCreating a 709ff1f2acSchristos.Xr mandoc.db 5 719ff1f2acSchristosdatabase with 729ff1f2acSchristos.Xr makewhatis 8 739ff1f2acSchristosin each directory configured with 749ff1f2acSchristos.Ic manpath 759ff1f2acSchristosis recommended and necessary for 769ff1f2acSchristos.Xr apropos 1 77c9bcef03Schristosto work, and also for 78c9bcef03Schristos.Xr man 1 79c9bcef03Schristoson operating systems like 80c9bcef03Schristos.Ox 81c9bcef03Schristosthat install each manual page with only one file name in the file system, 82c9bcef03Schristoseven if it documents multiple utilities or functions. 839ff1f2acSchristos.It Ic output Ar option Op Ar value 849ff1f2acSchristosConfigure the default value of an output option. 859ff1f2acSchristosThese directives are overridden by the 869ff1f2acSchristos.Fl O 879ff1f2acSchristoscommand line options of the same names. 889ff1f2acSchristosFor details, see the 899ff1f2acSchristos.Xr mandoc 1 909ff1f2acSchristosmanual. 919ff1f2acSchristos.Pp 929ff1f2acSchristos.Bl -column fragment integer "ascii, utf8" -compact 939ff1f2acSchristos.It Ar option Ta Ar value Ta used by Fl T Ta purpose 949ff1f2acSchristos.It Ta Ta Ta 959ff1f2acSchristos.It Ic fragment Ta none Ta Cm html Ta print only body 969ff1f2acSchristos.It Ic includes Ta string Ta Cm html Ta path to header files 979ff1f2acSchristos.It Ic indent Ta integer Ta Cm ascii , utf8 Ta left margin 989508192eSchristos.It Ic man Ta string Ta Cm html Ta path for \&Xr links 999ff1f2acSchristos.It Ic paper Ta string Ta Cm ps , pdf Ta paper size 1009ff1f2acSchristos.It Ic style Ta string Ta Cm html Ta CSS file 101*544c191cSchristos.It Ic toc Ta none Ta Cm html Ta print table of contents 1029ff1f2acSchristos.It Ic width Ta integer Ta Cm ascii , utf8 Ta right margin 1039ff1f2acSchristos.El 1049ff1f2acSchristos.It Ic _whatdb Ar path Ns Cm /whatis.db 1059ff1f2acSchristosThis directive provides the same functionality as 1069ff1f2acSchristos.Ic manpath , 1079ff1f2acSchristosbut using a historic and misleading syntax. 1089ff1f2acSchristosIt is kept for backward compatibility for now, 1099ff1f2acSchristosbut will eventually be removed. 1109ff1f2acSchristos.El 1119ff1f2acSchristos.Sh FILES 1129ff1f2acSchristos.Pa /etc/man.conf 1139ff1f2acSchristos.Sh EXAMPLES 1149ff1f2acSchristosThe following configuration file reproduces the defaults: 1159ff1f2acSchristosinstalling it is equivalent to not having a 1169ff1f2acSchristos.Nm 1179ff1f2acSchristosfile at all. 1189ff1f2acSchristos.Bd -literal -offset indent 1199ff1f2acSchristosmanpath /usr/share/man 1209ff1f2acSchristosmanpath /usr/X11R6/man 1219ff1f2acSchristosmanpath /usr/local/man 1229ff1f2acSchristos.Ed 1239ff1f2acSchristos.Sh SEE ALSO 1249ff1f2acSchristos.Xr apropos 1 , 1259ff1f2acSchristos.Xr man 1 , 1269ff1f2acSchristos.Xr makewhatis 8 1279ff1f2acSchristos.Sh HISTORY 1289ff1f2acSchristosA relatively complicated 1299ff1f2acSchristos.Nm 1309ff1f2acSchristosfile format first appeared in 1319ff1f2acSchristos.Bx 4.3 Reno . 1329ff1f2acSchristosFor 1339ff1f2acSchristos.Ox 5.8 , 1349ff1f2acSchristosit was redesigned from scratch, aiming for simplicity. 1359ff1f2acSchristos.Sh AUTHORS 1369ff1f2acSchristos.An Ingo Schwarze Aq Mt schwarze@openbsd.org 137