From 5e5b675713851e8440b64987cb589faf6174be61 Mon Sep 17 00:00:00 2001 From: Antonin Godard Date: Fri, 24 Apr 2026 10:28:29 +0200 Subject: [PATCH] conf.py: add a :yocto_bug: role Similar to :yocto_bugs: but directly create a hyperlink to the bug displayed with its identifier. Use as :yocto_bug:`12345`. (From yocto-docs rev: a84f0e63550c2c72497c5b563f72fcfa16c3ee8f) Signed-off-by: Antonin Godard (cherry picked from commit 24e227262df909353ef8874335cdeb114b9d4203) Signed-off-by: Antonin Godard Signed-off-by: Paul Barker --- documentation/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/conf.py b/documentation/conf.py index d0dfde8484..da4d94a737 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -95,6 +95,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 = { @@ -107,7 +108,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),