ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: ksummit-discuss@lists.linuxfoundation.org
Subject: Re: [Ksummit-discuss] [CORE TOPIC] Documentation
Date: Tue, 04 Aug 2015 15:54:47 +0300	[thread overview]
Message-ID: <1576432.1WkRdFc7OG@avalon> (raw)
In-Reply-To: <1438672367.9418.3.camel@ellerman.id.au>

Hi Michael,

On Tuesday 04 August 2015 17:12:47 Michael Ellerman wrote:
> On Sat, 2015-08-01 at 16:41 +0200, Jonathan Corbet wrote:
> > As your relatively new documentation subsystem maintainer, I think there
> > might be reason to talk about docs for a bit at the summit.
> > 
> > Currently, we have two major branches to our docs.  One, the bulk of
> > Documentation/, is a haphazard collection of text files of varying quality
> > and applicability to current kernels.  The other is a set of more
> > organized DocBook documents.
> > 
> > Despite their disorganized nature, the plain-text docs get the bulk of the
> > attention.  Anybody can manage to work with a text file.  The DocBook
> > stuff, instead, is kind of a pain.  Working in DocBook itself is less
> > than fun, few people dare to delve into the code that builds the docs,
> > and the whole thing is rather fragile.  Changing a struct to a union in
> > the wireless subsystem a few months back broke the docs build, for
> > example; few people test for such things and even fewer seem to know how
> > to fix them.
> 
> ...
> 
> > I am not convinced that DocBook is really the right tool for the job
> > here.  It is complex, finicky, and it's a real pain to have to replace an
> > entire laptop because you've worn out your shift key.  It is, I believe,
> > an
> > impediment to improvements to our docs in general.  If, instead, we used
> > something more plain-text-like, I think life might get a lot easier; it
> > could also enable the integration of all of our docs into something a bit
> > more cohesive.
> 
> Yeah +1 from me on getting rid of DocBook.
> 
> I looked at it a bit in terms of asking people to write docs, and decided it
> was too painful to impose on people.

I don't buy that. The hard part in writing quality documentation is the 
documentation, not the format. Sure, we can make formating easier, but no 
matter how good the brushes you give him are, a kindergarten kid won't become 
Picasso overnight.

> I know it's not *that* hard, but it's harder than it needs to be for the
> value it brings IMHO.
> 
> > Markdown in one of its many forms might be a good alternative here.  I'm
> > also somewhat attracted by Sphinx, which is designed for documenting code
> > already and could probably be made to work well with our existing
> > kerneldoc comments without a whole lot of trouble.  The Sphinx idea,
> > though, is hobbled by the inconvenient fact that I've not had the time to
> > develop it far enough to even have a vague idea of whether it would make
> > real-world sense.
> 
> I'd vote for Markdown. It's very unobtrusive, reads nicely as plain text,
> and all the young kids know it from writing Github README.md files.

How can we document ioctls such as in http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-g-fmt.html using Markdown ?

-- 
Regards,

Laurent Pinchart

  parent reply	other threads:[~2015-08-04 12:54 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-01 14:41 Jonathan Corbet
2015-08-02  7:07 ` Davidlohr Bueso
2015-08-03 13:35   ` Rafael J. Wysocki
2015-08-03 13:27     ` Konstantin Ryabitsev
2015-08-03 14:33     ` Jonathan Corbet
2015-08-03 20:45       ` Dmitry Torokhov
2015-08-04 10:59         ` Daniel Vetter
2015-08-04  0:52       ` Rafael J. Wysocki
2015-08-04 12:50       ` Laurent Pinchart
2015-08-04 13:03         ` Daniel Vetter
2015-08-04 14:28           ` Laurent Pinchart
2015-08-04 14:30             ` Daniel Vetter
2015-08-04 13:50         ` Dan Carpenter
2015-08-04 14:05           ` Geert Uytterhoeven
2015-08-04 14:29             ` Daniel Vetter
2015-08-04 14:30             ` Laurent Pinchart
2015-08-04 17:10               ` Geert Uytterhoeven
2015-08-04 14:42           ` Konstantin Ryabitsev
2015-08-04 18:21             ` Tim Bird
2015-08-04 21:00               ` Laurent Pinchart
2015-08-04 15:35         ` Mark Brown
2015-08-05 17:07           ` Michael Kerrisk (man-pages)
2015-08-04 17:24         ` Jonathan Corbet
2015-08-04  7:12 ` Michael Ellerman
2015-08-04  7:42   ` Marcel Holtmann
2015-08-04  8:33     ` Peter Huewe
2015-08-05 17:08       ` Michael Kerrisk (man-pages)
2015-08-05 17:19         ` josh
2015-08-05 17:21         ` Konstantin Ryabitsev
2015-08-04 12:54   ` Laurent Pinchart [this message]
2015-08-04 13:07     ` Daniel Vetter
2015-08-04 11:09 ` Daniel Vetter

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=1576432.1WkRdFc7OG@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=ksummit-discuss@lists.linuxfoundation.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