From: Peter Maydell <peter.maydell@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [PULL 0/5] QAPI patches patches for 2023-05-17
Date: Wed, 17 May 2023 19:35:41 +0100 [thread overview]
Message-ID: <CAFEAcA8MinW8wVeP8v4-7ktwCW3xbW6VTHkMDGTQay6n=Q_h0Q@mail.gmail.com> (raw)
In-Reply-To: <4d3356c0-2e9e-bc3c-5200-88a3b5edd3e4@linaro.org>
On Wed, 17 May 2023 at 18:16, Richard Henderson
<richard.henderson@linaro.org> wrote:
> https://gitlab.com/qemu-project/qemu/-/jobs/4303506102#L3766
> https://gitlab.com/qemu-project/qemu/-/jobs/4303506050#L5856
> https://gitlab.com/qemu-project/qemu/-/jobs/4303506047#L3654
>
> /home/gitlab-runner/builds/Jpwtyaz7/0/qemu-project/qemu/docs/interop/qmp-spec.rst:71:Error
> in "code-block" directive:
> 1 argument(s) required, 0 supplied.
> .. code-block::
> { "QMP": { "version": json-object, "capabilities": json-array } }
Looks like whatever version of Sphinx this is enforces that
code-block comments specify a language. The system I tested on
didn't care.
In theory these blocks should be ".. code-block:: json", you
might think, but for me that results in
Warning, treated as error:
/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/docs/interop/qmp-spec.rst:71:Could
not lex literal_block as "json". Highlighting skipped.
(which I think means my system doesn't have the json lexer,
but who knows...)
So the simplest fix is to turn all the no-language code-blocks into
plain old literal blocks (the ones which are "QMP" format are fine,
but specifying QMP doesn't work for these blocks, because the QMP lexer
insists on seeing the -> and <- that indicate a command/response
direction). This should work as a fixup to the patch.
Markus, could I ask you to squash it in for the next round of this pullreq ?
diff --git a/docs/interop/qmp-spec.rst b/docs/interop/qmp-spec.rst
index 2609b3ff9b2..23ddcc853e5 100644
--- a/docs/interop/qmp-spec.rst
+++ b/docs/interop/qmp-spec.rst
@@ -68,7 +68,7 @@ ready for capabilities negotiation (for more
information refer to section
The greeting message format is:
-.. code-block::
+::
{ "QMP": { "version": json-object, "capabilities": json-array } }
@@ -94,13 +94,13 @@ Issuing Commands
The format for command execution is:
-.. code-block::
+::
{ "execute": json-string, "arguments": json-object, "id": json-value }
or
-.. code-block::
+::
{ "exec-oob": json-string, "arguments": json-object, "id": json-value }
@@ -164,7 +164,7 @@ Success
The format of a success response is:
-.. code-block::
+::
{ "return": json-value, "id": json-value }
@@ -183,7 +183,7 @@ Error
The format of an error response is:
-.. code-block::
+::
{ "error": { "class": json-string, "desc": json-string }, "id": json-value }
@@ -208,7 +208,7 @@ response. They are called "asynchronous events".
The format of asynchronous events is:
-.. code-block::
+::
{ "event": json-string, "data": json-object,
"timestamp": { "seconds": json-number, "microseconds": json-number } }
thanks
-- PMM
prev parent reply other threads:[~2023-05-17 18:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-17 15:25 [PULL 0/5] QAPI patches patches for 2023-05-17 Markus Armbruster
2023-05-17 15:25 ` [PULL 1/5] qapi: Improve error message for description following section Markus Armbruster
2023-05-17 15:25 ` [PATCH] qapi/parser: Drop two bad type hints for now Markus Armbruster
2023-05-17 15:25 ` [PULL 2/5] docs/interop: Convert qmp-spec.txt to rST Markus Armbruster
2023-05-17 15:25 ` [PULL 3/5] docs/interop/qmp-spec: Update error description for parsing errors Markus Armbruster
2023-05-17 15:25 ` [PULL 4/5] docs/interop: Delete qmp-intro.txt Markus Armbruster
2023-05-17 15:25 ` [PULL 5/5] qapi/parser: Drop two bad type hints for now Markus Armbruster
2023-05-17 17:44 ` Richard Henderson
2023-05-17 17:16 ` [PULL 0/5] QAPI patches patches for 2023-05-17 Richard Henderson
2023-05-17 18:35 ` Peter Maydell [this message]
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='CAFEAcA8MinW8wVeP8v4-7ktwCW3xbW6VTHkMDGTQay6n=Q_h0Q@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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;
as well as URLs for NNTP newsgroup(s).