From 40a3008632abd8bb393eefc212547456f2a5cb25 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Tue, 6 Oct 2020 17:56:59 +0200 Subject: [PATCH] doc: Sphinx.override_domain() deprecated Sphinx.override_domain() is deprecated since Sphinx 1.8 and removed in Sphinx 3. Use Sphinx.add_domain(, override=True) instead. Signed-off-by: Heinrich Schuchardt --- doc/sphinx/cdomain.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/sphinx/cdomain.py b/doc/sphinx/cdomain.py index cf13ff3a65..cbac8e608d 100644 --- a/doc/sphinx/cdomain.py +++ b/doc/sphinx/cdomain.py @@ -48,7 +48,10 @@ major, minor, patch = sphinx.version_info[:3] def setup(app): - app.override_domain(CDomain) + if (major == 1 and minor < 8): + app.override_domain(CDomain) + else: + app.add_domain(CDomain, override=True) return dict( version = __version__, -- 2.39.5