lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161128141314.o6favw3o6eo3weww@phenom.ffwll.local>
Date:   Mon, 28 Nov 2016 15:13:14 +0100
From:   Daniel Vetter <daniel@...ll.ch>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     Jonathan Corbet <corbet@....net>,
        Silvio Fricke <silvio.fricke@...il.com>,
        linux-doc@...r.kernel.org, Ming Lei <ming.lei@...onical.com>,
        "Luis R . Rodriguez" <mcgrof@...nel.org>,
        Mauro Carvalho Chehab <mchehab@...nel.org>,
        linux-kernel@...r.kernel.org,
        Jani Nikula <jani.nikula@...ux.intel.com>
Subject: Re: [PATCH v3 2/4] Documentation/atomic_ops.txt: convert to ReST
 markup

Hi Peter,

On Mon, Nov 28, 2016 at 11:20:09AM +0100, Peter Zijlstra wrote:
> On Mon, Nov 28, 2016 at 09:44:42AM +0100, Daniel Vetter wrote:
> > > Why change them? What was wrong with txt to begin with?
> > 
> > In my opinion good docs matter, and one of the key things is to be able to
> > cross reference stuff.
> 
> Well, good docs begin with useful content; and many docs lack that.
> Fixing that would be a much more useful thing to do.

Fully agreed, pretty looking docs that don't exist aren't useful at all
;-) Personally I'm pretty happy with typing .rst plain-text, since I
mostly ignore all the fancy stuff. Using .rst has also made the in-source
kerneldoc a lot more useful, e.g. vtables can now be documented in a
reasonable manner and the generated output still looks decent. For an
example see include/drm/drm_modeset_helper_vtables.h.

> In any case, I've never had any problems with typing things like: "go
> read: Documentation/file.txt for more information.".
> 
> Also, what text editor supports cross references at all then? With the
> filename I can use 'gf' in vim to open it up in a new buffer and go read
> that.

Yeah agreed, anything that requires more work for typing docs isn't really
useful. The nice thing about the kernel's sphinx toolchain is that a big
pile of these references (not all of them yet) are autogenerated. That is
of course of 0 use for old hats like us who just browse it all using vim
and gf and ^] and all maybe a quickfix list of hits.

But in my experience having something pretty to click around in is rather
useful for newbies. At least that's been my experience with the drm docs,
I have much less to explain on mails and chat since we've started with
this all. And excessive amounts of cross-references seem to help a lot in
guiding the blind ;-)

Anyway, my goal at least is to keep all the plain-text usage perfectly
fine, while giving newbies something pretty in there browsers.

> > Another concern some core kernel folks raised is that the .rst markup was
> > too heavy-handed, and makes the text much harder to read. Christoph called
> > it "cat spew". That can be fixed with a much lighter-handed conversion
> > (and 2nd patch iteration was acceptable for Christoph).
> 
> Very much agreed, once a file is no longer readable with less or the
> text editor of your choice, it as good doesn't exist at all. So I very
> much worry about RST even supporting such heavy markup that the end
> result is unreadable.
> 
> Basically, if a file isn't usable from within a 'normal' text editor, it
> doesn't exist.

Yup agreed. Personally I prefer a _much_ more light-handed appraoch with
rst markup. Essentially none, except the few things needed to glue all the
various docs into a somewhat coherent whole. And I think that's also
more-or-less the consensus among many core kernel hackers.

Jon, should we document that we want a very light-handed approach to rst
markup in kernel docs? This has come up a few times now, and irrespective
of what exactly we're going to do with atomic_ops.txt I think it would
help with making txt->rst conversions palatable to the core kernel
community. And it's knida my own preference too ...

Thanks, Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ