Received: from eggs.gnu.org ([2001:4830:134:3::10]:37483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4rBC-0007WC-B2 for qemu-devel@nongnu.org; Thu, 10 Nov 2016 10:22:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4rB8-0007kX-8x for qemu-devel@nongnu.org; Thu, 10 Nov 2016 10:22:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42212) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4rB8-0007jM-1n for qemu-devel@nongnu.org; Thu, 10 Nov 2016 10:22:14 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A12BE7DCEB for ; Thu, 10 Nov 2016 15:22:12 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 10 Nov 2016 19:21:54 +0400 Message-Id: <20161110152209.18379-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v4 00/15] qapi doc generation (whole version, squashed) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Add a qapi2texi script to generate the documentation from the qapi schemas. The 13th patch in this series is a squashed version of the documentation move from qmp-commands.txt to the schemas. The whole version (not sent on the ML to avoid spamming) is in the following git branch: https://github.com/elmarco/qemu/commits/qapi-doc v4: - more device_add schema fixes - do not merge docs/qmp-intro.txt in qemu-qmp-ref.texi - remove needless @ifinfo, add GPL copying text - added qemu logo to pdf - added some r-b tags v3: - many improvements to the doc parser: - throws an error in various malformated conditions - allows multiple meta-sections, except for "Since:" and "Return:" - build a list of docs, instead of attaching docs to expressions - accept() breaks on new doc block, and get_doc() returns a QAPIDoc - fix more documentation to fit the new parser - use a master texi file that includes the generated file, instead of templated texi file - texi fixes after Markus review - only build and install html and man pages by default - fix .gitignore v2: - change licence to be lgpl2+ - fix some comments & commit message - add more code comments - improve the doc parsing to treat only "Since" as a special case not requiring ":" (common notation in the doc) - include some early schema doc fixes (to fix generated doc) - include the squashed version of the doc move - include the man page and installation build changes Marc-Andr=C3=A9 Lureau (15): qapi: improve device_add schema qga/schema: fix double-return in doc qga/schema: improve guest-set-vcpus Returns: section qapi: fix schema symbol sections qapi: fix missing symbol @prefix qapi: fix various symbols mismatch in documentation qapi: use one symbol per line qapi: add missing colon-ending for section name qapi: add some sections in docs docs: add master qapi texi files qapi: add qapi2texi script texi2pod: learn quotation, deftp and deftypefn qmp-commands: (SQUASHED) move doc to schema docs: add qemu logo build-sys: add qapi doc generation targets Makefile | 57 +- scripts/qapi.py | 175 +- scripts/qapi2texi.py | 316 ++++ scripts/texi2pod.pl | 44 +- .gitignore | 11 +- docs/qapi-code-gen.txt | 44 +- docs/qemu-ga-ref.texi | 82 + docs/qemu-qmp-ref.texi | 82 + docs/qemu_logo.pdf | Bin 0 -> 9117 bytes {pc-bios =3D> docs}/qemu_logo.svg | 0 docs/qmp-commands.txt | 3824 ---------------------------------= ------ docs/qmp-events.txt | 731 -------- docs/qmp-intro.txt | 3 +- qapi-schema.json | 1623 +++++++++++++++-- qapi/block-core.json | 894 +++++++-- qapi/block.json | 82 +- qapi/common.json | 52 +- qapi/crypto.json | 41 +- qapi/event.json | 304 +++- qapi/introspect.json | 28 +- qapi/rocker.json | 63 +- qapi/trace.json | 25 +- qga/qapi-schema.json | 64 +- 23 files changed, 3527 insertions(+), 5018 deletions(-) create mode 100755 scripts/qapi2texi.py create mode 100644 docs/qemu-ga-ref.texi create mode 100644 docs/qemu-qmp-ref.texi create mode 100644 docs/qemu_logo.pdf rename {pc-bios =3D> docs}/qemu_logo.svg (100%) delete mode 100644 docs/qmp-commands.txt delete mode 100644 docs/qmp-events.txt --=20 2.10.0