Skip to content

Commit 208efa6

Browse files
dgarcia360tchaikov
authored andcommitted
docs: update conf.py
docs: test docs: add skip warnings option (cherry picked from commit 2601b78)
1 parent 235c6ac commit 208efa6

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

docs/source/conf.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from datetime import date
66
import yaml
77
import re
8-
import warnings
98
from docutils import nodes
109
from recommonmark.transform import AutoStructify
1110
from recommonmark.parser import CommonMarkParser, splitext, urlparse
@@ -118,6 +117,7 @@
118117
'versions_unstable': UNSTABLE_VERSIONS,
119118
'versions_deprecated': DEPRECATED_VERSIONS,
120119
'hide_version_dropdown': ['scylla-3.x'],
120+
'skip_warnings': 'document_has_underscores'
121121
}
122122

123123
# If not None, a 'Last updated on:' timestamp is inserted at every page
@@ -173,12 +173,6 @@ def replace_relative_links(app, docname, source):
173173
source[0] = result
174174

175175

176-
def build_inited(app):
177-
warnings.filterwarnings(
178-
action="ignore",
179-
message=r".*Document name contains underscores:.*",
180-
)
181-
182176
def build_finished(app, exception):
183177
version_name = os.getenv("SPHINX_MULTIVERSION_NAME", "")
184178
version_name = "/" + version_name if version_name else ""
@@ -187,9 +181,6 @@ def build_finished(app, exception):
187181
redirects_cli.create(redirect_to=redirect_to,out_file=out_file)
188182

189183
def setup(app):
190-
# Filter warnings
191-
app.connect('builder-inited', build_inited)
192-
193184
# Setup Markdown parser
194185
app.add_source_parser(CustomCommonMarkParser)
195186
app.add_config_value('recommonmark_config', {

0 commit comments

Comments
 (0)