Skip to content

Commit ee7df9b

Browse files
DOC: start to configure JupyterLite
1 parent 534833e commit ee7df9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
# Add any Sphinx extension module names here, as strings. They can be extensions
3535
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
3636
extensions = [
37+
'jupyterlite_sphinx',
3738
'matplotlib.sphinxext.plot_directive',
3839
'numpydoc',
3940
'sphinx.ext.autodoc',
@@ -287,3 +288,8 @@
287288
'numpy': ('https://numpy.org/devdocs', None),
288289
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
289290
}
291+
292+
# -- Options for JupyterLite -------------------------------------------------
293+
294+
global_enable_try_examples = True
295+
try_examples_global_button_text = "Try it in your browser!"

0 commit comments

Comments
 (0)