diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2024-11-04 13:31:23 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-11-11 09:16:26 -0800 |
commit | f09fc4426ba146f3b65f7a5daf235ca1c15a759a (patch) | |
tree | ae8ca6ddb7c043093cc2c0b6ca63968c41400434 /documentation/conf.py | |
parent | 2935d1b1d83bbb5ba73e66d4bdb8d9c52aa7c965 (diff) | |
download | poky-f09fc4426ba146f3b65f7a5daf235ca1c15a759a.tar.gz |
conf.py: rename :cve: role to :cve_nist:
Newer versions of Sphinx already define a :cve: role that points to
cve.org, instead of the role we defined in conf.py that points to
nvd.nist.gov.
Rename our role to :cve_nist: to avoid warnings (treated as errors).
This is also backwards compatible, meaning we can build the doc with an
older Sphinx if needed.
The file were automatically replaced with following command:
find . -name '*.rst' -exec sed -i 's/:cve:/:cve_nist:/g' {} \+
Suggested-By: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
(From yocto-docs rev: 1e5e574a6cdb6b086da2c5a981446b522e80cf2d)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit 15fa3b7e85dde50d7236c1738ad607531cc654b8)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/conf.py')
-rw-r--r-- | documentation/conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/conf.py b/documentation/conf.py index 35c5c14535..9e87df0564 100644 --- a/documentation/conf.py +++ b/documentation/conf.py | |||
@@ -90,8 +90,8 @@ rst_prolog = """ | |||
90 | 90 | ||
91 | # external links and substitutions | 91 | # external links and substitutions |
92 | extlinks = { | 92 | extlinks = { |
93 | 'cve': ('https://nvd.nist.gov/vuln/detail/CVE-%s', 'CVE-%s'), | ||
94 | 'cve_mitre': ('https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-%s', 'CVE-%s'), | 93 | 'cve_mitre': ('https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-%s', 'CVE-%s'), |
94 | 'cve_nist': ('https://nvd.nist.gov/vuln/detail/CVE-%s', 'CVE-%s'), | ||
95 | 'yocto_home': ('https://www.yoctoproject.org%s', None), | 95 | 'yocto_home': ('https://www.yoctoproject.org%s', None), |
96 | 'yocto_wiki': ('https://wiki.yoctoproject.org/wiki%s', None), | 96 | 'yocto_wiki': ('https://wiki.yoctoproject.org/wiki%s', None), |
97 | 'yocto_dl': ('https://downloads.yoctoproject.org%s', None), | 97 | 'yocto_dl': ('https://downloads.yoctoproject.org%s', None), |