From dedafe8aea583909f0dd822af640b50ef855125b Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 16 Nov 2021 07:59:48 +0000 Subject: [PATCH] Bug 1740890 - doc: Silent a recommonmark warning r=firefox-source-docs-reviewers,championshuttler DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D131047 --- docs/conf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 8b2bf57caf192..9f92f64969d0c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,6 +6,7 @@ import os import sys +import warnings from recommonmark.transform import AutoStructify @@ -130,6 +131,15 @@ def setup(app): }, True, ) + + # Silent a warning + # https://github.com/readthedocs/recommonmark/issues/177 + warnings.filterwarnings( + action="ignore", + category=UserWarning, + message=r".*Container node skipped.*", + ) + app.add_css_file("custom_theme.css") app.add_transform(AutoStructify) app.connect("html-page-context", install_sphinx_panels)