From: Kees Cook <keescook@chromium.org>
To: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH] docs: Programmatically render MAINTAINERS into ReST
Date: Tue, 24 Sep 2019 14:50:19 -0700 [thread overview]
Message-ID: <201909241446.3284D27@keescook> (raw)
In-Reply-To: <20190924070819.0a7b6658@coco.lan>
On Tue, Sep 24, 2019 at 07:08:19AM -0300, Mauro Carvalho Chehab wrote:
> It probably makes sense to change some things there, as, right now, it
> is considering multiple lines as continuation. So, for example, if
> it has multiple M: entries, it will produce this at MAINTAINERS.rst
> output:
>
>
> :Mail:
> Juergen Gross <jgross@suse.com>
> Thomas Hellstrom <thellstrom@vmware.com>
> "VMware, Inc." <pv-drivers@vmware.com>
>
> With would be displayed as:
>
> Mail
> Juergen Gross <jgross@suse.com> Thomas Hellstrom <thellstrom@vmware.com> “VMware, Inc.” <pv-drivers@vmware.com>
>
> It would probably be better to output it as:
>
> :Mail:
> - Juergen Gross <jgross@suse.com>
> - Thomas Hellstrom <thellstrom@vmware.com>
> - "VMware, Inc." <pv-drivers@vmware.com>
>
> or:
> :Mail:
> Juergen Gross <jgross@suse.com>
>
> Thomas Hellstrom <thellstrom@vmware.com>
>
> "VMware, Inc." <pv-drivers@vmware.com>
>
> or, eventually:
>
> :Mail:
> Juergen Gross <jgross@suse.com>,
> Thomas Hellstrom <thellstrom@vmware.com>,
> "VMware, Inc." <pv-drivers@vmware.com>
>
> (Using commas is probably a bad idea, as DT file names may have a
> comma in the middle)
Doing explicit lists here made the output, I think, way too long and
hard to read. Adding commas for email fields seems like the right
solution here.
> No need to use "python3" here, as the script has a shebang markup. Just
> ensure that it has 755 permission, and call it directly.
BTW, I found where I thought python3 was required:
sphinx/kernel_include.py's shebang is "#!/usr/bin/env python3"
> > +/* Keep fields from being strangely far apart due to inheirited table CSS. */
> > +.rst-content table.field-list th.field-name {
> > + padding-top: 1px;
> > + padding-bottom: 1px;
> > +}
> > +.rst-content table.field-list td.field-body {
> > + padding-top: 1px;
> > + padding-bottom: 1px;
> > +}
> > +
> > @media screen {
> >
> > /* content column
>
> I would place this on a separate patch, as this is a layout change that
> may affect other files.
Noted, yes.
> Btw, what does this change?
This gets rid of what looks like an extra blank line after every field
line. I checked other places where fields are used and they suffer from
a similar problem. I'll split this out and call attention to the
existing users.
--
Kees Cook
prev parent reply other threads:[~2019-09-24 21:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-23 22:43 [RFC][PATCH] docs: Programmatically render MAINTAINERS into ReST Kees Cook
2019-09-24 7:16 ` Jani Nikula
2019-09-24 21:51 ` Kees Cook
2019-09-24 10:08 ` Mauro Carvalho Chehab
2019-09-24 21:50 ` Kees Cook [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=201909241446.3284D27@keescook \
--to=keescook@chromium.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab+samsung@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).