[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5) |
Date: |
Tue, 13 Sep 2016 16:02:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Marc-André Lureau <address@hidden> writes:
> Hi,
>
> The QAPI documentation is currently done in two places, the json
> schema and a more human-friendly text file. The goal is to avoid
> duplication and to generate friendly versions from the schema (pdf,
> man etc). Thus, all documentation should be moved to the schema.
>
> In order to facilitate the review, the documentation move has been
> splitted, and is going to sent by chunks of ~30 patches. This way it
> should take about 5 series to complete (~150 patches). I suggest that
> the qapi maintainers (Markus/Eric) compile the reviewed patches in a
> branch and merge upstream in one go (either merging move commits or
> not) when the series complete and the documentation is finally
> generated to avoid an in-between state.
>
> The wip branch with all the pending patches:
> https://github.com/elmarco/qemu/commits/qapi-doc
Ah, now I understand why you asked whether to post everything! The
"move FOO doc to schema" patches make no sense until the very end of the
full branch, when you actually generate documentation from the schema.
Perhaps you could structure like this:
1. Fix existing issues in QAPI schema comments
2. Generate documentation from it (not a replacement for
qmp-commands.txt, yet)
3. Merge qmp-commands.txt into QAPI schema comments, step by step
(a) If you only update the QAPI schema comments, qmp-commands.txt
stays intact throughout this work.
(b) If you delete qmp-commands.txt section as you cover them in the
QAPI schema, command documentation regresses temporarily. Tolerable,
but needs to be explained in commit messages. Your choice.
4. Generated documentation now contains everything qmp-commands.txt
contains; delete qmp-commands.txt
Getting to this structure with option (3b) could be as simple as
reordering your branch.
> And a sneak peek of the generated pdf documentation:
> https://fedorapeople.org/~elmarco/qemu-qapi.pdf
Looks slick :)
> The series is currently based on Markus qapi-next branch.
- [Qemu-devel] [PATCH 21/30] qmp-commands: move 'query-vnc' doc to schema, (continued)
- [Qemu-devel] [PATCH 21/30] qmp-commands: move 'query-vnc' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 22/30] qmp-commands: move 'query-spice' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 25/30] qmp-commands: move 'quit' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 24/30] qmp-commands: move 'query-pci' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 27/30] qmp-commands: move 'system_reset' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 26/30] qmp-commands: move 'stop' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 28/30] qmp-commands: move 'system_powerdown' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 29/30] qmp-commands: move 'cpu-add' doc to schema, Marc-André Lureau, 2016/09/13
- [Qemu-devel] [PATCH 30/30] qmp-commands: move 'memsave' doc to schema, Marc-André Lureau, 2016/09/13
- Re: [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5),
Markus Armbruster <=