]> git.ipfire.org Git - thirdparty/qemu.git/commit
docs/sphinx: add compat.py module and nested_parse helper
authorJohn Snow <jsnow@redhat.com>
Tue, 11 Mar 2025 03:42:02 +0000 (23:42 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 11 Mar 2025 09:07:02 +0000 (10:07 +0100)
commitabf6bedc38aea51ecce988a499a0b277bbd3c267
tree985c1c894102dd44f015c671858619625428340e
parentecf92e3618ab6e6cd7ae151f9c12b9e2a6ead198
docs/sphinx: add compat.py module and nested_parse helper

Create a compat module that handles sphinx cross-version compatibility
issues. For the inaugural function, add a nested_parse_with_titles()
helper that handles differences in line number tracking for nested
directive body parsing.

Spoilers: there are more cross-version hacks to come throughout the
series.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20250311034303.75779-5-jsnow@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
docs/sphinx/compat.py [new file with mode: 0644]