]> git.ipfire.org Git - thirdparty/qemu.git/commit
docs/qapi-domain: add XREF compatibility goop for Sphinx < 4.1
authorJohn Snow <jsnow@redhat.com>
Tue, 11 Mar 2025 03:42:27 +0000 (23:42 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 11 Mar 2025 09:10:57 +0000 (10:10 +0100)
commita1fe2cd443e6ae9d5211053d2ac0ca83264dc950
tree8de05bb7a352e9e348b1bfd6e97d1350dfde6537
parent282c8d256efba2c348ddafaa6fcfa7cca371c309
docs/qapi-domain: add XREF compatibility goop for Sphinx < 4.1

Sphinx < 4.1 handles cross-references ... differently. Factor out and
isolate the compatibility goop we need to make cross references work
properly in old versions of Sphinx.

Yes, it's ugly. Yes, it works. No, I don't want to talk about
it.

Understand that this patch exists because of the overflowing love in my
heart.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20250311034303.75779-30-jsnow@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
docs/sphinx/compat.py
docs/sphinx/qapi_domain.py