jupyterlite / jupyterlite-sphinx

Sphinx extension using JupyterLite to render Notebooks
https://jupyterlite-sphinx.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
68 stars 21 forks source link

`TryExamples` directive: fix missing kernels in CircleCI deployments #182

Closed agriyakhetarpal closed 4 months ago

agriyakhetarpal commented 4 months ago

Description

This PR updates the URL used to access the notebooks generated by the TryExamples directive, similar to https://github.com/sphinx-gallery/sphinx-gallery/pull/1336. This enables viewing and interacting with the examples on Sphinx-based documentation websites.

As originally mentioned in the above issue, here is a related discussion. Adding index.html to the URL somehow makes the notebooks/examples display as intended when the "Try it" or the "Open in tab" buttons are clicked.

Additional context

This came up in https://github.com/numpy/numpy/pull/26745/ where I am trying to integrate jupyterlite-sphinx for the NumPy v2 documentation website, which uses CircleCI artifacts for documentation builds on PRs.

P.S. Thanks to @lesteve for the pointer!

Carreau commented 4 months ago

let's try.