[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 31/34] docs/sphinx: fix compatibility with sphinx < 1.8
From: |
Alex Bennée |
Subject: |
[PATCH v1 31/34] docs/sphinx: fix compatibility with sphinx < 1.8 |
Date: |
Wed, 5 Jan 2022 13:50:06 +0000 |
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: Alex Bennée <alex.bennee@linaro.org>
---
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.30.2
- Re: [PATCH v1 05/34] ci: explicitly skip I/O tests on alpine, (continued)
- [PATCH v1 09/34] tests/docker: auto-generate fedora.docker with lcitool, Alex Bennée, 2022/01/05
- [PATCH v1 11/34] tests/docker: auto-generate ubuntu2004.docker with lcitool, Alex Bennée, 2022/01/05
- [PATCH v1 27/34] tests/avocado: add :avocado: tags for some tests, Alex Bennée, 2022/01/05
- [PATCH v1 12/34] tests/docker: auto-generate opensuse-leap.docker with lcitool, Alex Bennée, 2022/01/05
- [PATCH v1 28/34] tests/tcg/multiarch: Read fp flags before printf, Alex Bennée, 2022/01/05
- [PATCH v1 33/34] docker: include bison in debian-tricore-cross, Alex Bennée, 2022/01/05
- [PATCH v1 31/34] docs/sphinx: fix compatibility with sphinx < 1.8,
Alex Bennée <=
- [PATCH v1 23/34] docs/devel: update C standard to C11, Alex Bennée, 2022/01/05
- [PATCH v1 14/34] .gitlab-ci.d/cirrus: auto-generate variables with lcitool, Alex Bennée, 2022/01/05
- [PATCH v1 24/34] docs/devel: more documentation on the use of suffixes, Alex Bennée, 2022/01/05
- [PATCH v1 29/34] test/tcg/ppc64le: Add float reference files, Alex Bennée, 2022/01/05
- [PATCH v1 30/34] FreeBSD: Upgrade to 12.3 release, Alex Bennée, 2022/01/05
- [PATCH v1 34/34] linux-user: Remove the deprecated ppc64abi32 target, Alex Bennée, 2022/01/05
- [PATCH v1 10/34] tests/docker: auto-generate ubuntu1804.docker with lcitool, Alex Bennée, 2022/01/05
- [PATCH v1 32/34] gitlab-ci: Enable docs in the centos job, Alex Bennée, 2022/01/05
- [PATCH v1 21/34] hw/arm: add control knob to disable kaslr_seed via DTB, Alex Bennée, 2022/01/05