This prevents collisions between nbsphinx and jupyterlite-sphinx which both add the ".ipynb" source prefix: if app.registry.source_suffix already contains "ipynb", then do nothing.
The behavior will then be the following:
conf.py
# nbsphinx will handle .ipynb files and jupyterlite-sphinx won't
extensions = [
'nbsphinx',
'jupyterlite_sphinx',
]
# jupyterlite-sphinx will handle .ipynb files and nbsphinx won't
extensions = [
'jupyterlite_sphinx',
'nbsphinx',
]
PR coupled with https://github.com/jupyterlite/jupyterlite-sphinx/pull/28
This prevents collisions between nbsphinx and jupyterlite-sphinx which both add the
".ipynb"
source prefix: ifapp.registry.source_suffix
already contains "ipynb", then do nothing.The behavior will then be the following:
conf.py