Mesa (master): gallium/docs: update to recent sphinx
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 1 07:39:19 UTC 2020
Module: Mesa
Branch: master
Commit: 7f5061c0b78631e76e4086daf89d45f07782aabf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f5061c0b78631e76e4086daf89d45f07782aabf
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Tue Jun 30 11:05:42 2020 +0200
gallium/docs: update to recent sphinx
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 at collabora.com>
Acked-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>
---
src/gallium/docs/source/exts/formatting.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/docs/source/exts/formatting.py b/src/gallium/docs/source/exts/formatting.py
index 14865f36033..bc50c98051c 100644
--- a/src/gallium/docs/source/exts/formatting.py
+++ b/src/gallium/docs/source/exts/formatting.py
@@ -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)
More information about the mesa-commit
mailing list