From: Mauro Carvalho Chehab <mchehab@s-opensource.com>
To: Jonathan Corbet <corbet@lwn.net>
Cc: ksummit-discuss@lists.linux-foundation.org
Subject: Re: [Ksummit-discuss] [MAINTAINERS SUMMIT] Documentation issues
Date: Sat, 24 Jun 2017 07:46:41 -0300 [thread overview]
Message-ID: <20170624074641.4820fecd@vento.lan> (raw)
In-Reply-To: <20170623123936.42dab05f@lwn.net>
Em Fri, 23 Jun 2017 12:39:36 -0600
Jonathan Corbet <corbet@lwn.net> escreveu:
> The docs pull for 4.13 will include the conversion of the last DocBook
> template files, thanks mostly to Mauro. That's the good news; the bad
> news is that I get to explain a lot of merge conflicts to Linus, most of
> which result from other trees reaching into Documentation/ and changing
> files that have been converted.
>
> I can continue in this mode, but I do wonder if there's a better way out
> there somewhere. So I think there would be value in a session on the
> maintenance of "subsystems" that don't fit neatly into the kernel
> source-tree hierarchy.
Unfortunately, conflicts are unavoidable for such kind of conversion,
as git won't identify it as a rename.
> We could also talk about the state of the RST conversion and whether/how
> we'd like it to continue. Perhaps we would rather, as Peter recently
> suggested, "just delete all that nonsense and go back to 80 column 7bit
> ASCII"? In general, what do the maintainers want from the documentation
> subsystem, and how can we make it easy to continue improving our docs?
From my side, going to plain ASCII is a very bad idea.
After converting hundreds of text files to ReST, the big problem we have
with text files is that they don't use the same notation. It is a big
mess. Even before the ReST conversion, what we had is:
Some files there doesn't even have titles
Some files use markdown
Some files use MediaWiki notation
Some files use ReST
Some files use their own notation.
I guess the great benefit of adopting ReST (with would have been
achieved if we had adopted any other notation) is that now we have a
documentation style.
Just placing all documents in the same style is a huge improvement
from what we had before.
Being able of grouping the documents into books is another big
advantage. It is now clearer where some document should be placed.
Also, several text editors (both TUI and GUI) are able to recognize
ReST format and use colors for highlights.
So, there are improvements even for those that don't care about
fancy html/pdf books, as the documentation will look more coherent
and better organized.
In the specific case of media, converting to plain ASCII is a *huge*
regression, and some tables simply don't fit at a 80 columns
requirement. In summary, We have several tables there to describe
bit fields on a 64-bits word (for example, do describe how images
are encoded). For such tables, we would require at least 210+ characters
per line. So, converting them to plain ASCII simply makes them a lot
worse to read.
Also, as our uAPI documentation was always using an enriched text
language (they were originally written in LaTeX and PDF, back in the
nineties), converting them to plain ASCII actually means to rewrite
the entire thing.
Even the conversion to ReST required us to change the format of
several tables (as we were using a lot to have tables inside tables,
and ReST doesn't support it). Thankfully, Markus found a way to
do such conversion via script. Yet, we had lots of manual work to
fix stuff after that.
So, I think we should continue the conversion.
-
From my PoV, after the next merge window, we shouldn't expect more
conflicts related to DocBook conversion.
However, we'll still have conflicts for the files that are under
Documentation/*.txt, as there are stuff there from random subsystems,
although get_maintainers usually point them all to the docs subsystem.
I recently took the effort of sending patches converting all those
text patches to ReST (except for logo.txt). I opted to not rename them
to ReST nor add them on any existing book[1], in order to avoid
merge conflicts.
[1] I added a patch that creates an "unsorted" book at the end of
series meant just to allow testing the conversion.
IMHO, the next step would be to merge those patches by the end of the
next merge window (in order to avoid most conflicts).
Then, I would move those files to subdirectories, renaming them to ReST
and adding on some index.rst file.
Thanks,
Mauro
next prev parent reply other threads:[~2017-06-24 10:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-23 18:39 Jonathan Corbet
2017-06-23 23:09 ` Rafael J. Wysocki
2017-06-24 12:03 ` Rafael J. Wysocki
2017-06-24 10:46 ` Mauro Carvalho Chehab [this message]
2017-06-24 12:20 ` Rafael J. Wysocki
2017-06-24 13:41 ` Mauro Carvalho Chehab
2017-06-25 20:56 ` Jiri Kosina
2017-06-26 1:20 ` Mauro Carvalho Chehab
2017-06-26 21:18 ` Rafael J. Wysocki
2017-06-26 5:58 ` Takashi Iwai
2017-06-26 21:28 ` Rafael J. Wysocki
2017-06-27 8:41 ` Daniel Vetter
2017-06-27 10:31 ` Mauro Carvalho Chehab
2017-06-26 22:18 ` Jonathan Corbet
2017-06-27 18:42 ` Bird, Timothy
2017-06-28 19:48 ` Geert Uytterhoeven
[not found] ` <CAFhKne8ZttmqWYJToCw9EDywzeMdp=eiFpoZ+O5xrzmKnpA09Q@mail.gmail.com>
[not found] ` <CAFhKne_W-EbjUd_Cm4kyBHrVK6K9r8Ss3gY0ogO1nztbQZYBEg@mail.gmail.com>
2017-06-25 21:32 ` Matthew Wilcox
2017-06-25 21:42 ` Rafael J. Wysocki
2017-06-26 1:15 ` Mauro Carvalho Chehab
2017-06-26 21:16 ` Rafael J. Wysocki
2017-06-26 0:58 ` Mauro Carvalho Chehab
2017-06-25 16:13 ` Jonathan Corbet
2017-06-26 12:19 ` Mark Brown
2017-06-27 8:38 ` Daniel Vetter
2017-06-27 15:33 ` Mark Brown
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=20170624074641.4820fecd@vento.lan \
--to=mchehab@s-opensource.com \
--cc=corbet@lwn.net \
--cc=ksummit-discuss@lists.linux-foundation.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