qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: John Snow <jsnow@redhat.com>
Cc: Fam Zheng <fam@euphon.net>, Eduardo Habkost <ehabkost@redhat.com>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Qemu-block <qemu-block@nongnu.org>,
	Aarushi Mehta <mehta.aaru20@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v3 2/3] sphinx: add qmp_lexer
Date: Fri, 7 Jun 2019 11:27:43 +0100	[thread overview]
Message-ID: <CAFEAcA_ibRpZW1W6BgNXOJVORKOLwft5qPrBz6ekadOFPAZywg@mail.gmail.com> (raw)
In-Reply-To: <20190603214653.29369-3-jsnow@redhat.com>

On Mon, 3 Jun 2019 at 22:47, John Snow <jsnow@redhat.com> wrote:
>
> Sphinx, through Pygments, does not like annotated json examples very
> much. In some versions of Sphinx (1.7), it will render the non-json
> portions of code blocks in red, but in newer versions (2.0) it will
> throw an exception and not highlight the block at all. Though we can
> suppress this warning, it doesn't bring back highlighting on non-strict
> json blocks.
>
> We can alleviate this by creating a custom lexer for QMP examples that
> allows us to properly highlight these examples in a robust way, keeping
> our directionality and elision notations.
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> Signed-off-by: John Snow <jsnow@redhat.com>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
(mostly reviewing the sphinx config bits -- I trust that
the actual lexer does what it says on the tin :-))

thanks
-- PMM


  reply	other threads:[~2019-06-07 11:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-03 21:46 [Qemu-devel] [PATCH v3 0/3] Add QMP lexer for annotated JSON to Sphinx John Snow
2019-06-03 21:46 ` [Qemu-devel] [PATCH v3 1/3] docs/interop/bitmaps.rst: Fix typos John Snow
2019-06-05 14:28   ` Vladimir Sementsov-Ogievskiy
2019-06-03 21:46 ` [Qemu-devel] [PATCH v3 2/3] sphinx: add qmp_lexer John Snow
2019-06-07 10:27   ` Peter Maydell [this message]
2019-06-03 21:46 ` [Qemu-devel] [PATCH v3 3/3] docs/bitmaps: use QMP lexer instead of json John Snow

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=CAFEAcA_ibRpZW1W6BgNXOJVORKOLwft5qPrBz6ekadOFPAZywg@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=ehabkost@redhat.com \
    --cc=fam@euphon.net \
    --cc=jsnow@redhat.com \
    --cc=mehta.aaru20@gmail.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.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).