Bug 1740890 - doc: Silent a recommonmark warning r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D131047
This commit is contained in:
10
docs/conf.py
10
docs/conf.py
@@ -6,6 +6,7 @@ from __future__ import absolute_import, unicode_literals
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
|
|
||||||
from recommonmark.transform import AutoStructify
|
from recommonmark.transform import AutoStructify
|
||||||
|
|
||||||
@@ -130,6 +131,15 @@ def setup(app):
|
|||||||
},
|
},
|
||||||
True,
|
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_css_file("custom_theme.css")
|
||||||
app.add_transform(AutoStructify)
|
app.add_transform(AutoStructify)
|
||||||
app.connect("html-page-context", install_sphinx_panels)
|
app.connect("html-page-context", install_sphinx_panels)
|
||||||
|
|||||||
Reference in New Issue
Block a user