docs: make c:expr the default-role
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 2 Nov 2022 19:14:53 +0000 (20:14 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 9 Nov 2022 12:09:17 +0000 (12:09 +0000)
Mesa is a C-project, so c:expr is a really handy role to default to.
This means that `foo` is a short-hand for :c:expr:`foo`.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19575>

docs/conf.py

index 03de76dd096a231db80dfe06b2e7261ae4391759..6e588ebbf9cb2adb0aa570be5f4738b17cf8c418 100644 (file)
@@ -91,6 +91,7 @@ todo_include_todos = False
 # python keywords highlit in literal blocks.
 highlight_language = 'none'
 
+default_role = 'c:expr'
 
 # -- Options for HTML output ----------------------------------------------