1*6709a814Sschwarze.\" $OpenBSD: man.conf.5,v 1.8 2020/02/10 14:42:03 schwarze Exp $ 2c36218d6Sschwarze.\" 33327fa00Sschwarze.\" Copyright (c) 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> 4c36218d6Sschwarze.\" 5c36218d6Sschwarze.\" Permission to use, copy, modify, and distribute this software for any 6c36218d6Sschwarze.\" purpose with or without fee is hereby granted, provided that the above 7c36218d6Sschwarze.\" copyright notice and this permission notice appear in all copies. 8c36218d6Sschwarze.\" 9c36218d6Sschwarze.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10c36218d6Sschwarze.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11c36218d6Sschwarze.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12c36218d6Sschwarze.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13c36218d6Sschwarze.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14c36218d6Sschwarze.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15c36218d6Sschwarze.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16c36218d6Sschwarze.\" 17c9d6433dSschwarze.Dd $Mdocdate: February 10 2020 $ 18c36218d6Sschwarze.Dt MAN.CONF 5 19c36218d6Sschwarze.Os 20c36218d6Sschwarze.Sh NAME 21c36218d6Sschwarze.Nm man.conf 22224928f6Sjmc.Nd configuration file for man 23c36218d6Sschwarze.Sh DESCRIPTION 24224928f6SjmcThis is the configuration file 25224928f6Sjmcfor the 26c36218d6Sschwarze.Xr man 1 , 27c36218d6Sschwarze.Xr apropos 1 , 28c36218d6Sschwarzeand 29c36218d6Sschwarze.Xr makewhatis 8 30c36218d6Sschwarzeutilities. 31224928f6SjmcIts presence, and all directives, are optional. 32c36218d6Sschwarze.Pp 33c36218d6SschwarzeThis file is an ASCII text file. 34c36218d6SschwarzeLeading whitespace on lines, lines starting with 35c36218d6Sschwarze.Sq # , 36c36218d6Sschwarzeand blank lines are ignored. 37c36218d6SschwarzeWords are separated by whitespace. 38c36218d6SschwarzeThe first word on each line is the name of a configuration directive. 39c36218d6Sschwarze.Pp 40c36218d6SschwarzeThe following directives are supported: 41c36218d6Sschwarze.Bl -tag -width Ds 42c36218d6Sschwarze.It Ic manpath Ar path 43224928f6SjmcOverride the default search 44c36218d6Sschwarze.Ar path 45224928f6Sjmcfor 46c36218d6Sschwarze.Xr man 1 , 47c36218d6Sschwarze.Xr apropos 1 , 48c36218d6Sschwarzeand 49224928f6Sjmc.Xr makewhatis 8 . 50224928f6SjmcIt can be used multiple times to specify multiple paths, 51224928f6Sjmcwith the order determining the manual page search order. 52224928f6Sjmc.Pp 53224928f6SjmcEach path is a tree containing subdirectories 54c36218d6Sschwarzewhose names consist of the strings 55c36218d6Sschwarze.Sq man 56c36218d6Sschwarzeand/or 57c36218d6Sschwarze.Sq cat 58c36218d6Sschwarzefollowed by the names of sections, usually single digits. 59c36218d6SschwarzeThe former are supposed to contain unformatted manual pages in 60c36218d6Sschwarze.Xr mdoc 7 61c36218d6Sschwarzeand/or 62c36218d6Sschwarze.Xr man 7 63224928f6Sjmcformat; file names should end with the name of the section 64c36218d6Sschwarzepreceded by a dot. 65224928f6SjmcThe latter should contain preformatted manual pages; 66224928f6Sjmcfile names should end with 67c36218d6Sschwarze.Ql .0 . 68224928f6Sjmc.Pp 69c36218d6SschwarzeCreating a 70c36218d6Sschwarze.Xr mandoc.db 5 71c36218d6Sschwarzedatabase with 72c36218d6Sschwarze.Xr makewhatis 8 73c36218d6Sschwarzein each directory configured with 74c36218d6Sschwarze.Ic manpath 75c36218d6Sschwarzeis recommended and necessary for 76c36218d6Sschwarze.Xr apropos 1 77ce2ca837Sschwarzeto work, and also for 78ce2ca837Sschwarze.Xr man 1 79ce2ca837Sschwarzeon operating systems like 80ce2ca837Sschwarze.Ox 81ce2ca837Sschwarzethat install each manual page with only one file name in the file system, 82ce2ca837Sschwarzeeven if it documents multiple utilities or functions. 832ccd0917Sschwarze.It Ic output Ar option Op Ar value 842ccd0917SschwarzeConfigure the default value of an output option. 852ccd0917SschwarzeThese directives are overridden by the 862ccd0917Sschwarze.Fl O 872ccd0917Sschwarzecommand line options of the same names. 882ccd0917SschwarzeFor details, see the 892ccd0917Sschwarze.Xr mandoc 1 902ccd0917Sschwarzemanual. 912ccd0917Sschwarze.Pp 922ccd0917Sschwarze.Bl -column fragment integer "ascii, utf8" -compact 932ccd0917Sschwarze.It Ar option Ta Ar value Ta used by Fl T Ta purpose 942ccd0917Sschwarze.It Ta Ta Ta 952ccd0917Sschwarze.It Ic fragment Ta none Ta Cm html Ta print only body 962ccd0917Sschwarze.It Ic includes Ta string Ta Cm html Ta path to header files 972ccd0917Sschwarze.It Ic indent Ta integer Ta Cm ascii , utf8 Ta left margin 98d1159ca2Sschwarze.It Ic man Ta string Ta Cm html Ta path for \&Xr links 992ccd0917Sschwarze.It Ic paper Ta string Ta Cm ps , pdf Ta paper size 1002ccd0917Sschwarze.It Ic style Ta string Ta Cm html Ta CSS file 1013327fa00Sschwarze.It Ic toc Ta none Ta Cm html Ta print table of contents 1022ccd0917Sschwarze.It Ic width Ta integer Ta Cm ascii , utf8 Ta right margin 1032ccd0917Sschwarze.El 104c36218d6Sschwarze.El 105c36218d6Sschwarze.Sh FILES 106c9d6433dSschwarze.Bl -tag -width /etc/examples/man.conf -compact 107c9d6433dSschwarze.It Pa /etc/man.conf 108c9d6433dSschwarze.It Pa /etc/examples/man.conf 109c9d6433dSschwarze.El 110c36218d6Sschwarze.Sh EXAMPLES 111c36218d6SschwarzeThe following configuration file reproduces the defaults: 112224928f6Sjmcinstalling it is equivalent to not having a 113c36218d6Sschwarze.Nm 114224928f6Sjmcfile at all. 115c36218d6Sschwarze.Bd -literal -offset indent 116c36218d6Sschwarzemanpath /usr/share/man 117c36218d6Sschwarzemanpath /usr/X11R6/man 118c36218d6Sschwarzemanpath /usr/local/man 119c36218d6Sschwarze.Ed 120c36218d6Sschwarze.Sh SEE ALSO 121c36218d6Sschwarze.Xr apropos 1 , 122c36218d6Sschwarze.Xr man 1 , 123c36218d6Sschwarze.Xr makewhatis 8 124c36218d6Sschwarze.Sh HISTORY 125c36218d6SschwarzeA relatively complicated 126c36218d6Sschwarze.Nm 127c36218d6Sschwarzefile format first appeared in 128c36218d6Sschwarze.Bx 4.3 Reno . 129c36218d6SschwarzeFor 130c36218d6Sschwarze.Ox 5.8 , 131c36218d6Sschwarzeit was redesigned from scratch, aiming for simplicity. 132c36218d6Sschwarze.Sh AUTHORS 133c36218d6Sschwarze.An Ingo Schwarze Aq Mt schwarze@openbsd.org 134