Skip to content

Commit

Permalink
Bug 1740890 - doc: Silent a recommonmark warning r=firefox-source-doc…
Browse files Browse the repository at this point in the history
…s-reviewers,championshuttler DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D131047
  • Loading branch information
sylvestre committed Nov 16, 2021
1 parent 1df9997 commit dedafe8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import os
import sys
import warnings

from recommonmark.transform import AutoStructify

Expand Down Expand Up @@ -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)

0 comments on commit dedafe8

Please sign in to comment.