diff options
| author | Antonin Godard <antonin.godard@bootlin.com> | 2026-02-13 12:44:02 +0100 |
|---|---|---|
| committer | Paul Barker <paul@pbarker.dev> | 2026-06-08 21:44:05 +0100 |
| commit | 6218924ef80db2b76669815bad864242ef59850a (patch) | |
| tree | bc70a209b974ad3a2b1a29cd5d59ed714df130f7 | |
| parent | d80ddd7b9068bf65f412c7a907678446f55330fe (diff) | |
| download | poky-6218924ef80db2b76669815bad864242ef59850a.tar.gz | |
conf.py: define new {oecore,bitbake,meta_yocto}_rev roles
Use the extlinks extension to create new roles to quickly reference a
commit from openembedded-core, bitbake, or meta-yocto.
For example, use as: :oecore_rev:`437e0419608e`.
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
(From yocto-docs rev: 54cd2278e9f72837013831b6ce6d4aff61982899)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit 79552b4a764d16282a86c8e017270a258a26240e)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Paul Barker <paul@pbarker.dev>
| -rw-r--r-- | documentation/conf.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/documentation/conf.py b/documentation/conf.py index c07b6c4199..a7796c09ae 100644 --- a/documentation/conf.py +++ b/documentation/conf.py | |||
| @@ -89,9 +89,17 @@ rst_prolog = """ | |||
| 89 | .. |author| replace:: %s | 89 | .. |author| replace:: %s |
| 90 | """ % (project, copyright, author) | 90 | """ % (project, copyright, author) |
| 91 | 91 | ||
| 92 | # base url definitions | ||
| 93 | oe_git_server = "https://git.openembedded.org" | ||
| 94 | oecore_git = f"{oe_git_server}/openembedded-core" | ||
| 95 | bitbake_git = f"{oe_git_server}/bitbake" | ||
| 96 | yocto_git_server = "https://git.yoctoproject.org" | ||
| 97 | meta_yocto_git = f"{yocto_git_server}/meta-yocto" | ||
| 98 | |||
| 92 | # external links and substitutions | 99 | # external links and substitutions |
| 93 | extlinks = { | 100 | extlinks = { |
| 94 | 'bitbake_git': ('https://git.openembedded.org/bitbake%s', None), | 101 | 'bitbake_git': (f'{bitbake_git}%s', None), |
| 102 | 'bitbake_rev': (f'{bitbake_git}/commit/?id=%s', '%.7s'), | ||
| 95 | 'cve_mitre': ('https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-%s', 'CVE-%s'), | 103 | 'cve_mitre': ('https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-%s', 'CVE-%s'), |
| 96 | 'cve_nist': ('https://nvd.nist.gov/vuln/detail/CVE-%s', 'CVE-%s'), | 104 | 'cve_nist': ('https://nvd.nist.gov/vuln/detail/CVE-%s', 'CVE-%s'), |
| 97 | 'yocto_home': ('https://www.yoctoproject.org%s', None), | 105 | 'yocto_home': ('https://www.yoctoproject.org%s', None), |
| @@ -101,11 +109,13 @@ extlinks = { | |||
| 101 | 'yocto_bugs': ('https://bugzilla.yoctoproject.org%s', None), | 109 | 'yocto_bugs': ('https://bugzilla.yoctoproject.org%s', None), |
| 102 | 'yocto_ab': ('https://autobuilder.yoctoproject.org%s', None), | 110 | 'yocto_ab': ('https://autobuilder.yoctoproject.org%s', None), |
| 103 | 'yocto_docs': ('https://docs.yoctoproject.org%s', None), | 111 | 'yocto_docs': ('https://docs.yoctoproject.org%s', None), |
| 104 | 'yocto_git': ('https://git.yoctoproject.org%s', None), | 112 | 'yocto_git': (f'{yocto_git_server}%s', None), |
| 113 | 'meta_yocto_rev': (f'{meta_yocto_git}/commit/?id=%s', '%.7s'), | ||
| 105 | 'yocto_sstate': ('http://sstate.yoctoproject.org%s', None), | 114 | 'yocto_sstate': ('http://sstate.yoctoproject.org%s', None), |
| 106 | 'oe_home': ('https://www.openembedded.org%s', None), | 115 | 'oe_home': ('https://www.openembedded.org%s', None), |
| 107 | 'oe_lists': ('https://lists.openembedded.org%s', None), | 116 | 'oe_lists': ('https://lists.openembedded.org%s', None), |
| 108 | 'oe_git': ('https://git.openembedded.org%s', None), | 117 | 'oe_git': (f'{oe_git_server}%s', None), |
| 118 | 'oecore_rev': (f'{oecore_git}/commit/?id=%s', '%.7s'), | ||
| 109 | 'oe_wiki': ('https://www.openembedded.org/wiki%s', None), | 119 | 'oe_wiki': ('https://www.openembedded.org/wiki%s', None), |
| 110 | 'oe_layerindex': ('https://layers.openembedded.org%s', None), | 120 | 'oe_layerindex': ('https://layers.openembedded.org%s', None), |
| 111 | 'oe_layer': ('https://layers.openembedded.org/layerindex/branch/master/layer%s', None), | 121 | 'oe_layer': ('https://layers.openembedded.org/layerindex/branch/master/layer%s', None), |
