diff mbox series

[01/16] conf.py: add a :yocto_bug: role

Message ID 20260422-third-release-notes-6-0-v1-1-06635e8648d1@bootlin.com
State New
Headers show
Series Updates for upcoming Wrynose release (2) | expand

Commit Message

Antonin Godard April 22, 2026, 2:22 p.m. UTC
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 mbox series

Patch

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),