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.
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!