qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/3] Add QMP lexer for annotated JSON to Sphinx
@ 2019-06-03 21:46 John Snow
  2019-06-03 21:46 ` [Qemu-devel] [PATCH v3 1/3] docs/interop/bitmaps.rst: Fix typos John Snow
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: John Snow @ 2019-06-03 21:46 UTC (permalink / raw)
  To: qemu-devel, qemu-block
  Cc: Fam Zheng, Peter Maydell, John Snow, Aarushi Mehta,
	Eduardo Habkost

QMP isn't json. It turns out Pygments cares about this.
Teach Pygments to go with the annotated flow.

V3:
 - Also annotate elision indicators '...', which cause
   problems in Sphinx 2.1+
 - Adjust setup.py to cope with future versions of Sphinx
   that change the add_lexer interface

V2:
 - Change GPL2 to GPLv2+ (Peter Maydell)
 - Change "highlights" to "lexes" in docstrings
 - Fix typo ("Sphinx()" => "Sphinx") in docstring

Reported-by: Aarushi Mehta <mehta.aaru20@gmail.com>

John Snow (3):
  docs/interop/bitmaps.rst: Fix typos
  sphinx: add qmp_lexer
  docs/bitmaps: use QMP lexer instead of json

 docs/conf.py             |  4 +--
 docs/interop/bitmaps.rst | 58 ++++++++++++++++++++--------------------
 docs/sphinx/qmp_lexer.py | 43 +++++++++++++++++++++++++++++
 3 files changed, 74 insertions(+), 31 deletions(-)
 create mode 100644 docs/sphinx/qmp_lexer.py

-- 
2.20.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-07 11:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2019-06-03 21:46 ` [Qemu-devel] [PATCH v3 3/3] docs/bitmaps: use QMP lexer instead of json John Snow

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).