]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
docs/sphinx: fix compatibility with sphinx < 1.8
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 4 Jan 2022 07:46:49 +0000 (11:46 +0400)
committerThomas Huth <thuth@redhat.com>
Wed, 5 Jan 2022 10:10:13 +0000 (11:10 +0100)
SphinxDirective was added with sphinx 1.8 (2018-09-13).

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220104074649.1712440-1-marcandre.lureau@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
docs/sphinx/fakedbusdoc.py

index a680b257547f3fdb604df1f6b14ab4a7051f5134..d2c5079046542998bc9c15d5335378f88eb0a5c7 100644 (file)
@@ -7,12 +7,12 @@
 # Author: Marc-André Lureau <marcandre.lureau@redhat.com>
 """dbus-doc is a Sphinx extension that provides documentation from D-Bus XML."""
 
+from docutils.parsers.rst import Directive
 from sphinx.application import Sphinx
-from sphinx.util.docutils import SphinxDirective
 from typing import Any, Dict
 
 
-class FakeDBusDocDirective(SphinxDirective):
+class FakeDBusDocDirective(Directive):
     has_content = True
     required_arguments = 1