gallium/docs: update to recent sphinx
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 30 Jun 2020 09:05:42 +0000 (11:05 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 1 Jul 2020 07:29:21 +0000 (07:29 +0000)
add_description_unit has been deprectated for a really long time, and was
finally removed (seemingly in Sphinx 2.0, but this doesn't seem to be
properly documented anywhere I can find), so we shouldn't be using this
any more.

Anyway, let's update the code.

Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Acked-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>

src/gallium/docs/source/exts/formatting.py

index 14865f3603384494f2ba03cc3add44075a323e2d..bc50c98051ccccd764dd0ee247899c283a749f7b 100644 (file)
@@ -25,7 +25,7 @@ def parse_opcode(env, sig, signode):
     return opcode
 
 def setup(app):
-    app.add_description_unit("envvar", "envvar", "%s (environment variable)",
+    app.add_object_type("envvar", "envvar", "%s (environment variable)",
         parse_envvar)
-    app.add_description_unit("opcode", "opcode", "%s (TGSI opcode)",
+    app.add_object_type("opcode", "opcode", "%s (TGSI opcode)",
         parse_opcode)