Commit 42f6ebd8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet

docs: cdomain.py: get rid of a warning since version 1.8

There's a new warning about a deprecation function. Add a
logic at cdomain.py to avoid that.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent b0d60bfb
...@@ -48,7 +48,10 @@ major, minor, patch = sphinx.version_info[:3] ...@@ -48,7 +48,10 @@ major, minor, patch = sphinx.version_info[:3]
def setup(app): 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( return dict(
version = __version__, version = __version__,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment