From: Zdenek Kabelac <zdenek.kabelac@gmail.com>
To: lvm-devel@redhat.com
Subject: Improvement of manpages clvmd.8 and blkdeactivate.8
Date: Wed, 19 Nov 2014 08:42:33 +0100 [thread overview]
Message-ID: <546C49E9.6020900@gmail.com> (raw)
In-Reply-To: <20141119014304.GA10581@free.fr>
Dne 19.11.2014 v 02:43 St?phane Aulery napsal(a):
> Hello Zdenek,
>
> Le mercredi 19 novembre 2014 ? 01:28:46, Zdenek Kabelac a ?crit :
>> Dne 15.11.2014 v 17:46 saulery at free.fr napsal(a):
>>>
>>> Here is a much improved version of blkdeactivate.8 clvmd.8 and manpages. I can
>>> update others in the same way if you're interested.
>>>
>>
>> This patch set has been only partially accepted.
>>
>> We cannot use .OP groff macro since it's not compatible with older systems
>> (i.e. RHEL5) which do not have them build in and so far we support very wide
>> set of system to compile on.
>>
>> Also we generally document long option with adding '-x' short cut on the
>> same line - which is likely not fully compliant but yet well readable.
>
> Ok. I was not aware of this limitation. Can you use the BSD mdoc format?
Maybe there is a way how to provide 'embeded' macro definition with lvm2 code
base - so if they are not available in the system - built-in definition from
lvm2 would be user ? - something like .m4 macros fro configure - though I'm
surely not man-page/groff expert here.
>
> You can use this for syntax errors:
>
> $GROFF_ENCODING=utf8 groff -b -ww -z -mandoc mymanpage.8
I'll check
>
> I don't know any check program for man macros.
>
> For a complete list, see section STYLE GUIDE of "man-pages" manpage.
>
> * Program name must be in bold ;
> * Citation of options in text must be in bold ;
> * Citation of option arguments in text must be in italic ;
> * Any reference to another man page should be written with the name in bold ;
> * Entries of SEE ALSO section must be sorted by section number, then by name ;
> * Cite short ant long option integrally ;
> * Sort options to accelerate research ;
> * Be clear (and consistent if possible) with the syntax options ;
> * [...]
All those are mostly known and agreed, but there are no hands to change them
all and moreover even fix them.
> Then we can argue. I find that these recommendations are generally good.
> The most important is the general consistency across all pages and
> fidelity to the behavior of programs, of course.
>
>> We would already have 'generated' man pages - yet noone stepped into this
>> field yet.
>>
>> Idea is - to use 'single' place for options and doc for option and generate
>> man pages and command line options from it (since current way of hand
>> writing is usually not in the closest touch with source code).
>
> This is a big deal. I do not even know if it's a good idea in the end
> because even directly in the code, all the explanations of an option can
> not be found in one place. At best it is possible to generate the
> overall page structure, but it will still change the rest by hand. It
> adds a lot of complexity for not guarantee results.
>
> Another solution is literate programming. I doubt you want to rewrite
> all :-))
The problem here is - we try to keep 'meaning' of option consistent across
commands, but it's often forgotten in which commands the individual option
are used - so if the description for an option is fixed in one place, it then
still appear in some broken form in other command. Also users tend to be
often confused where 'common' options are only described in 'man lvm(8)' and
they are missing in the command itself.
So having a single place for option description would make things much easier
to maintain.
Maybe there is already some solution for this used in some other projects ?
Regards
Zdenek
prev parent reply other threads:[~2014-11-19 7:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-15 16:46 Improvement of manpages clvmd.8 and blkdeactivate.8 saulery
2014-11-15 16:46 ` Improve clvmd.8 manpage and help output saulery
2014-11-15 16:46 ` saulery
2014-11-15 16:46 ` Improve blkdeactivate.8 " saulery
2014-11-19 0:28 ` Improvement of manpages clvmd.8 and blkdeactivate.8 Zdenek Kabelac
2014-11-19 1:43 ` Stéphane Aulery
2014-11-19 7:42 ` Zdenek Kabelac [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=546C49E9.6020900@gmail.com \
--to=zdenek.kabelac@gmail.com \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.