Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jun 2022 16:35:08 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-hackers@freebsd.org
Subject:   mandoc and volume titles
Message-ID:  <YqEyLFHI8GQi6NLc@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help
All,

mandoc and mdoc(7) are a convenient system for writing
documentation, but it has a drawback.  The volume
title is hardcoded to a FreeBSD manual page.  For my
personal projects, I would like to change the volume
title.  For example.

% mandoc tier.1 | head -1
TIER(1)           FreeBSD General Commands Manual             TIER(1)

I have hacked up mandoc to accept a -V option, which allows e.g.,

% mandoc -V "Steve's Menagerie" tier.1 | head -1
TIER(1)                  Steve's Menagerie                     TIER(1)

I have created a bug report and attached the diff to it
if anyone is interested.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264560

-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YqEyLFHI8GQi6NLc>