All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs/sphinx: fix compatibility with sphinx < 1.8
@ 2022-01-04  7:46 marcandre.lureau
  2022-01-04  8:10 ` Thomas Huth
  2022-01-05 12:35 ` Alex Bennée
  0 siblings, 2 replies; 5+ messages in thread
From: marcandre.lureau @ 2022-01-04  7:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, thuth

From: Marc-André Lureau <marcandre.lureau@redhat.com>

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>
---
 docs/sphinx/fakedbusdoc.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/sphinx/fakedbusdoc.py b/docs/sphinx/fakedbusdoc.py
index a680b257547f..d2c507904654 100644
--- a/docs/sphinx/fakedbusdoc.py
+++ b/docs/sphinx/fakedbusdoc.py
@@ -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
 
-- 
2.34.1.8.g35151cf07204



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

end of thread, other threads:[~2022-01-05 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04  7:46 [PATCH] docs/sphinx: fix compatibility with sphinx < 1.8 marcandre.lureau
2022-01-04  8:10 ` Thomas Huth
2022-01-04  8:15   ` Marc-André Lureau
2022-01-04  9:03     ` Thomas Huth
2022-01-05 12:35 ` Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.