Message ID | 20241031-fix-cve-add-role-warning-v1-1-68e44c7e8961@baylibre.com |
---|---|
State | New |
Headers | show |
Series | conf.py: silence cve role already registered | expand |
diff --git a/documentation/conf.py b/documentation/conf.py index 35c5c14535ba67aae3554819b55f0fb52a9d0027..aaddf2c789196fc26a734f06dbe005f147b9bbd3 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -118,6 +118,9 @@ intersphinx_mapping = { # Suppress "WARNING: unknown mimetype for ..." suppress_warnings = ['epub.unknown_project_files'] +# Suppress "WARNING: role 'cve' is already registered, it will be overridden [app.add_role]" +suppress_warnings.append('app.add_role') + # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for
Commit bd9add8a0 - conf.py: add macro for Mitre CVE links added a new macro for mitre cve links called "cve_mitre" which conflicts with the already existing "cve" role. WARNING: role 'cve' is already registered, it will be overridden [app.add_role] The warning is turned into an error making "make html" fail, but documentation is still successfully built. Since documentation is still correctly built, just suppress the warning. Signed-off-by: Julien Stephan <jstephan@baylibre.com> --- documentation/conf.py | 3 +++ 1 file changed, 3 insertions(+) --- base-commit: 9563855ccd92e21fb6f8320c96a3a83e115c947e change-id: 20241031-fix-cve-add-role-warning-1147c223787a Best regards,