All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] conf.py: silence cve role already registered
@ 2024-10-31 16:52 Julien Stephan
  2024-11-04  9:58 ` [docs] " Antonin Godard
  2024-11-04 10:33 ` Quentin Schulz
  0 siblings, 2 replies; 6+ messages in thread
From: Julien Stephan @ 2024-10-31 16:52 UTC (permalink / raw)
  To: docs; +Cc: Julien Stephan

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(+)

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

---
base-commit: 9563855ccd92e21fb6f8320c96a3a83e115c947e
change-id: 20241031-fix-cve-add-role-warning-1147c223787a

Best regards,
-- 
Julien Stephan <jstephan@baylibre.com>



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-04 12:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 16:52 [PATCH] conf.py: silence cve role already registered Julien Stephan
2024-11-04  9:58 ` [docs] " Antonin Godard
2024-11-04 10:33 ` Quentin Schulz
2024-11-04 11:11   ` Antonin Godard
2024-11-04 12:21     ` Quentin Schulz
2024-11-04 12:28       ` Antonin Godard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.