[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/8] docs/sphinx: fix compatibility with sphinx < 1.8
From: |
Thomas Huth |
Subject: |
[PULL 6/8] docs/sphinx: fix compatibility with sphinx < 1.8 |
Date: |
Wed, 5 Jan 2022 13:36:10 +0100 |
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>
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/sphinx/fakedbusdoc.py b/docs/sphinx/fakedbusdoc.py
index a680b25754..d2c5079046 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.27.0
- [PULL 0/8] Misc patches (tests, docs, compat machines), Thomas Huth, 2022/01/05
- [PULL 1/8] hw: Add compat machines for 7.0, Thomas Huth, 2022/01/05
- [PULL 2/8] tests/qtest/test-x86-cpuid-compat: Check for machines before using them, Thomas Huth, 2022/01/05
- [PULL 3/8] tests/qtest/hd-geo-test: Check for the lsi53c895a controller before using it, Thomas Huth, 2022/01/05
- [PULL 4/8] tests/unit/test-util-sockets: Use g_file_open_tmp() to create temp file, Thomas Huth, 2022/01/05
- [PULL 5/8] qemu-options: Remove the deprecated -no-quit option, Thomas Huth, 2022/01/05
- [PULL 7/8] gitlab-ci: Enable docs in the centos job, Thomas Huth, 2022/01/05
- [PULL 6/8] docs/sphinx: fix compatibility with sphinx < 1.8,
Thomas Huth <=
- [PULL 8/8] docs/tools/qemu-trace-stap.rst: Do not hard-code the QEMU binary name, Thomas Huth, 2022/01/05
- Re: [PULL 0/8] Misc patches (tests, docs, compat machines), Richard Henderson, 2022/01/05