summaryrefslogtreecommitdiffstats
path: root/documentation/conf.py
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-04-22 14:25:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-25 15:14:09 +0100
commit57e245dd09071d992461bd155709b5938de719e9 (patch)
tree3e6ab82265b05695ddb82a4d6ebfddf085a9c026 /documentation/conf.py
parentd653a436654c28f2ec30dcaecad8ab099caf9c9c (diff)
downloadpoky-57e245dd09071d992461bd155709b5938de719e9.tar.gz
docs: conf.py: fix cve extlinks caption for sphinx <4.0
extlinks captions support using %s substitution but only from sphinx 4.0 onwards. c.f. https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html#confval-extlinks Weirdly enough, on older sphinx versions, the caption is just a prefix to the actual text passed to the extlink. Therefore, in that specific case, CVE- or CVE-%s are identical in meaning for sphinx >=4.0 and since only CVE- caption works on sphinx <4.0, let's go with CVE- caption prefix. Fixes: b311070d866cf "manuals: add 3.4 and 3.4.1 release notes after migration information" Cc: Quentin Schulz <foss+yocto@0leil.net> (From yocto-docs rev: c9922076f5c1285d9cfd6aff8ce5b6635d88222f) Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/conf.py')
-rw-r--r--documentation/conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/conf.py b/documentation/conf.py
index a5d7c0cd88..a7cdf415f8 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -90,7 +90,7 @@ rst_prolog = """
90 90
91# external links and substitutions 91# external links and substitutions
92extlinks = { 92extlinks = {
93 'cve': ('https://nvd.nist.gov/vuln/detail/CVE-%s', 'CVE-%s'), 93 'cve': ('https://nvd.nist.gov/vuln/detail/CVE-%s', 'CVE-'),
94 'yocto_home': ('https://www.yoctoproject.org%s', None), 94 'yocto_home': ('https://www.yoctoproject.org%s', None),
95 'yocto_wiki': ('https://wiki.yoctoproject.org/wiki%s', None), 95 'yocto_wiki': ('https://wiki.yoctoproject.org/wiki%s', None),
96 'yocto_dl': ('https://downloads.yoctoproject.org%s', None), 96 'yocto_dl': ('https://downloads.yoctoproject.org%s', None),