From: Mauro Carvalho Chehab <mchehab@s-opensource.com>
To: Markus Heiser <markus.heiser@darmarit.de>
Cc: Jani Nikula <jani.nikula@intel.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
Linux Doc Mailing List <linux-doc@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
John Youn <johnyoun@synopsys.com>,
linux-usb@vger.kernel.org, linux-rpi-kernel@lists.infradead.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Jonathan Corbet <corbet@lwn.net>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Takashi Iwai <tiwai@suse.de>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
Oliver Neukum <oneukum@suse.com>,
Martyn Welch <martyn.welch@collabora.co.uk>,
Alexander Dahl <post@lespocky.de>,
Jonathan Cameron <jic23@kernel.org>
Subject: Re: [PATCH 02/22] docs-rst: convert usb docbooks to ReST
Date: Thu, 30 Mar 2017 09:10:44 -0300 [thread overview]
Message-ID: <20170330091044.74d60342@vento.lan> (raw)
In-Reply-To: <318BAC09-137D-4EA6-B2E9-C5BF0E01A769@darmarit.de>
Em Thu, 30 Mar 2017 13:17:16 +0200
Markus Heiser <markus.heiser@darmarit.de> escreveu:
> Am 30.03.2017 um 12:12 schrieb Mauro Carvalho Chehab <mchehab@s-opensource.com>:
> >>> At this point I'd just go with what Mauro has. It's here now, as
> >>> patches. We've seen from the GPU documentation that polishing the
> >>> one-time initial conversion is, after a point, wasted effort. Having the
> >>> documentation in rst attracts more attention and contributions, and any
> >>> remaining issues will get ironed out in rst.
> >>
> >> I totally agree with you (I have never said something different)
> >>
> >>> This is also one reason I'm in favor of just bulk converting the rest of
> >>> the .tmpl files using Documentation/sphinx/tmplcvt, get rid of DocBook
> >>> and be done with it, and have the crowds focus on rst.
> >>
> >> I also agree with that. The tmplcvt script is good enough for this task,
> >> the dbxml2rst tool is more elaborate.
> >
> > I like the idea of a bulk conversion. My personal preference here is to
> > use the tmplcvt for such task, at least for simple books like the ones
> > I converted from USB.
> >
> > The advantage is that it places everything on a single rst file, with,
> > IMHO, works best for books that aren't too complex.
> > Of course, it doesn't hurt to compare the end result with dbxml2rst
> > and see if something could be improved.
>
> If it helps ... dbxml2rst also supports single file conversion ... I updated:
>
> https://github.com/return42/sphkerneldoc/tree/master/Documentation/books_migrated
Ok, I double-checked the results from dbxml2rst with pandoc (via
the script). Those are the differences after running the following commands:
$ wget https://raw.githubusercontent.com/return42/sphkerneldoc/master/Documentation/books_migrated/writing_usb_driver/index.rst
$ Documentation/sphinx/tmplcvt Documentation/DocBook/writing_usb_driver.tmpl writing_usb_driver.rst
$ diff -uprBw writing_usb_driver.rst index.rst
1) Author data:
-:Author: Greg Kroah-Hartman
+:author: Kroah-Hartman Greg
+:address: greg@kroah.com
dbxml2rst inverted the author's name. It also added author's e-mail.
IMHO, it is better to not have email address there, as it could be
outdated, but this is just my personal preference.
2) dbxml2rst added a copyright information:
+**Copyright** 2001-2002 : Greg Kroah-Hartman
This is a good thing.
3) dbxml2rst added a GPL information.
IMHO, we should add just one GPL information, per hole book
(and not per converted file).
4) dbxml2rst created some references that won't be unique:
+.. _intro:
That's a bad thing, as I bet most converted documents will have "intro"
sections.
5) dbxml2rst use ".. code-block:: c" instead of "::"
I prefer using "::"
6) dbxml2rst appends a commentary at the end:
+.. ------------------------------------------------------------------------------
+.. This file was automatically converted from DocBook-XML with the dbxml
+.. library (https://github.com/return42/dbxml2rst). The origin XML comes
+.. from the linux kernel:
+..
+.. http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
+.. ------------------------------------------------------------------------------
7) dbxml2rst did a worse job with URB conversions:
-USB Home Page: http://www.usb.org
+USB Home Page: `http://www.usb.org <http://www.usb.org>`__
So, in summary, at least for this document, the only thing good with
dbxml2rst was that it filled the copyright info.
Maybe for more complex documents, it would do a better job.
Yet, in order to standardize it everywhere, I guess the best would be to
produce copyright data like:
.. include:: <isonum.txt>
:Copyright: |copy| 2001-2002 : Greg Kroah-Hartman
Regards,
Mauro
next prev parent reply other threads:[~2017-03-30 12:10 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 18:54 [PATCH 01/22] driver-api/basics.rst: add device table header Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 02/22] docs-rst: convert usb docbooks to ReST Mauro Carvalho Chehab
2017-03-30 7:48 ` Markus Heiser
2017-03-30 8:21 ` Jani Nikula
2017-03-30 9:20 ` Markus Heiser
2017-03-30 10:12 ` Mauro Carvalho Chehab
2017-03-30 11:17 ` Markus Heiser
2017-03-30 11:35 ` Markus Heiser
2017-03-30 12:10 ` Mauro Carvalho Chehab [this message]
2017-03-31 14:46 ` Jonathan Corbet
2017-03-29 18:54 ` [PATCH 03/22] usb.rst: Enrich its ReST representation Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 04/22] gadget.rst: Enrich its ReST representation and add kernel-doc tag Mauro Carvalho Chehab
2017-03-30 7:01 ` Jani Nikula
2017-03-30 7:04 ` Jani Nikula
2017-03-30 9:29 ` Mauro Carvalho Chehab
2017-03-30 8:45 ` Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 05/22] writing_usb_driver.rst: Enrich its ReST representation Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 06/22] writing_musb_glue_layer.rst: " Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 07/22] usb/anchors.txt: convert to ReST and add to driver-api book Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 08/22] usb/bulk-streams.txt: " Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 09/22] usb/callbacks.txt: " Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 10/22] usb/power-management.txt: " Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 11/22] usb/dma.txt: " Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 12/22] error-codes.rst: " Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 13/22] usb/hotplug.txt: " Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 14/22] usb/persist.txt: " Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 15/22] usb/URB.txt: convert to ReST and update it Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 16/22] usb/gadget.rst: remove unused kernel-doc tags Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 17/22] usb.rst: get rid of some Sphinx errors Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 18/22] usb: get rid of some ReST doc build errors Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 19/22] usb: composite.h: fix two warnings when building docs Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 20/22] usb: gadget.h: be consistent at kernel doc macros Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 21/22] docs-rst: fix usb cross-references Mauro Carvalho Chehab
2017-03-29 18:54 ` [PATCH 22/22] usb: document that URB transfer_buffer should be aligned Mauro Carvalho Chehab
2017-03-29 22:15 ` Laurent Pinchart
2017-03-30 1:06 ` Mauro Carvalho Chehab
2017-03-30 9:38 ` Laurent Pinchart
2017-03-30 10:51 ` Mauro Carvalho Chehab
2017-03-30 8:11 ` Oliver Neukum
2017-03-30 9:34 ` Laurent Pinchart
2017-03-30 10:28 ` Mauro Carvalho Chehab
2017-03-30 11:07 ` David Laight
2017-03-30 12:05 ` Laurent Pinchart
2017-03-30 12:37 ` Mauro Carvalho Chehab
2017-03-30 12:56 ` Oliver Neukum
2017-03-30 14:26 ` Alan Stern
2017-03-30 15:45 ` Mauro Carvalho Chehab
2017-03-30 15:55 ` Alan Stern
2017-03-30 20:16 ` Laurent Pinchart
2017-03-30 20:57 ` Oliver Neukum
2017-03-31 14:07 ` Alan Stern
2017-03-31 1:26 ` [PATCH 01/22] driver-api/basics.rst: add device table header kbuild test robot
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=20170330091044.74d60342@vento.lan \
--to=mchehab@s-opensource.com \
--cc=corbet@lwn.net \
--cc=daniel.vetter@ffwll.ch \
--cc=gregkh@linuxfoundation.org \
--cc=jani.nikula@intel.com \
--cc=jic23@kernel.org \
--cc=johnyoun@synopsys.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=markus.heiser@darmarit.de \
--cc=martyn.welch@collabora.co.uk \
--cc=mchehab@infradead.org \
--cc=mchehab@kernel.org \
--cc=oneukum@suse.com \
--cc=post@lespocky.de \
--cc=tiwai@suse.de \
/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