Skip to content

Commit f39d082

Browse files
authored
Fix: Disable Myst deprecation warnings (#704)
1 parent 27af53c commit f39d082

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/crate/theme/rtd/conf/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
# with Crate these terms will supersede the license and you may use the
2020
# software solely pursuant to the terms of the relevant commercial agreement.
2121
import os
22+
import warnings
2223

2324
from crate.theme import rtd as theme
2425
from crate.theme.rtd import __version__
@@ -183,6 +184,14 @@
183184
linkcheck_retries = 3
184185
linkcheck_timeout = 15
185186

187+
# Suppress myst-nb deprecation warnings until fixed upstream.
188+
# https://github.com/executablebooks/MyST-NB/issues/645
189+
warnings.filterwarnings(
190+
"ignore",
191+
message=r".*myst_nb\.sphinx_\.Parser\.env.*",
192+
category=DeprecationWarning,
193+
)
194+
186195
# -- Options for MyST -------------------------------------------------
187196
myst_heading_anchors = 3
188197
myst_enable_extensions = [

0 commit comments

Comments
 (0)