[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/16] qapi: Fix unintended definition lists in documentation
From: |
Peter Maydell |
Subject: |
Re: [PATCH 10/16] qapi: Fix unintended definition lists in documentation |
Date: |
Tue, 4 Apr 2023 13:46:56 +0100 |
On Tue, 4 Apr 2023 at 12:59, Markus Armbruster <armbru@redhat.com> wrote:
>
> rST parses something like
>
> first line
> second line
>
> as a definition list item, where "first line" is the term being
> defined by "second line".
>
> This bites us in a couple of places. Here's one:
>
> # @bps_max: total throughput limit during bursts,
> # in bytes (Since 1.7)
>
> scripts/qapi/parser.py parses this into an "argument section" with
> name "bps_max" and text
>
> total throughput limit during bursts,
> in bytes (Since 1.7)
>
> docs/sphinx/qapidoc.py duly passes the text to the rST parser, which
> parses it as another definition list. Comes out as nested
> definitions: term "bps_max: int (optional)" defined as term "total
> throughput limit during bursts," defined as "in bytes (Since 1.7)".
>
> rST truly is the Perl of ASCII-based markups.
>
> Fix by deleting the extra indentation.
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH 01/16] qga/qapi-schema: Tidy up documentation of guest-fsfreeze-status, (continued)
- [PATCH 01/16] qga/qapi-schema: Tidy up documentation of guest-fsfreeze-status, Markus Armbruster, 2023/04/04
- [PATCH 07/16] qapi: Tidy up examples, Markus Armbruster, 2023/04/04
- [PATCH 08/16] qapi: Delete largely misleading "Stability Considerations", Markus Armbruster, 2023/04/04
- [PATCH 13/16] qapi: Replace ad hoc "since" documentation by member documentation, Markus Armbruster, 2023/04/04
- [PATCH 05/16] qapi/block-core: Clean up after removal of dirty bitmap @status, Markus Armbruster, 2023/04/04
- [PATCH 09/16] qapi: Fix bullet list markup in documentation, Markus Armbruster, 2023/04/04
- [PATCH 12/16] qapi: Fix argument documentation markup, Markus Armbruster, 2023/04/04
- [PATCH 10/16] qapi: Fix unintended definition lists in documentation, Markus Armbruster, 2023/04/04
- Re: [PATCH 10/16] qapi: Fix unintended definition lists in documentation,
Peter Maydell <=
- [PATCH 16/16] qapi storage-daemon/qapi: Fix documentation section structure, Markus Armbruster, 2023/04/04
- [PATCH 11/16] qga/qapi-schema: Fix member documentation markup, Markus Armbruster, 2023/04/04
- [PATCH 14/16] qapi: Fix misspelled section tags in doc comments, Markus Armbruster, 2023/04/04
- [PATCH 15/16] qapi: Format since information the conventional way: (since X.Y), Markus Armbruster, 2023/04/04
- Re: [PATCH 00/16] qapi qga/qapi-schema: Doc fixes, Vladimir Sementsov-Ogievskiy, 2023/04/04