Skip to content

Commit 0f89549

Browse files
committed
WIP nbsphinx
This uses the first commit of spatialaudio/nbsphinx#650, f963a2a3b7f31a844b31a3fca0fe653f37b500a2, in order to pass nbconvert options to nbsphinx.
1 parent 8b8c2c8 commit 0f89549

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/source/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@
5656
"""
5757

5858
nbsphinx_execute = 'always'
59-
60-
nbsphinx_execute_arguments = ['''--RegexRemovePreprocessor.patterns="['widget']" --RegexRemovePreprocessor.enabled=True''']
59+
nbsphinx_allow_errors = True
60+
nbsphinx_nbconvert_config = {
61+
'HighlightMagicsPreprocessor': {'enabled': True},
62+
# Work around https://github.com/jupyter/nbconvert/issues/720:
63+
#'RegexRemovePreprocessor': {'enabled': True, 'patterns': ['JUPYTERLITE']},
64+
'TagRemovePreprocessor': {'enabled': True, 'remove_cell_tags': ['jupyterlite']}
65+
}
6166

6267
# -- General information -------
6368

0 commit comments

Comments
 (0)