[PATCH v2 01/18] conf.py: add a :yocto_bug: role

Antonin Godard
2026-04-24T08:28:59Z

Similar to :yocto_bugs: but directly create a hyperlink to the bug
displayed with its identifier. Use as :yocto_bug:`12345`.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
documentation/conf.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/documentation/conf.py b/documentation/conf.py
index 58c6406f1..7b201ebd6 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -97,6 +97,7 @@ oecore_git = f"{oe_git_server}/openembedded-core"
bitbake_git = f"{oe_git_server}/bitbake"
yocto_git_server = "https://git.yoctoproject.org"
meta_yocto_git = f"{yocto_git_server}/meta-yocto"
+bugzilla_server = "https://bugzilla.yoctoproject.org"

# external links and substitutions
extlinks = {
@@ -109,7 +110,8 @@ extlinks = {
'yocto_wiki': ('https://wiki.yoctoproject.org/wiki%s', None),
'yocto_dl': ('https://downloads.yoctoproject.org%s', None),
'yocto_lists': ('https://lists.yoctoproject.org%s', None),
- 'yocto_bugs': ('https://bugzilla.yoctoproject.org%s', None),
+ 'yocto_bugs': (f'{bugzilla_server}%s', None),
+ 'yocto_bug': (f'{bugzilla_server}/show_bug.cgi?id=%s', '%s'),
'yocto_ab': ('https://autobuilder.yoctoproject.org%s', None),
'yocto_docs': ('https://docs.yoctoproject.org%s', None),
'yocto_git': (f'{yocto_git_server}%s', None),

--
2.53.0