Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intersphinx/sphinx-hoverref #82

Closed
zmoon opened this issue Jun 17, 2022 · 5 comments
Closed

intersphinx/sphinx-hoverref #82

zmoon opened this issue Jun 17, 2022 · 5 comments
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request

Comments

@zmoon
Copy link
Contributor

zmoon commented Jun 17, 2022

For easier and more robust links to the xarray documentation.

Jupyter Book uses it in their own docs, so it is definitely possible. I guess the downside is that the notebook would look more messy in Jupyter. But maybe sphinx-codeautolink would work, at least for the code blocks.

@scottyhq
Copy link
Contributor

Nice idea @zmoon this would definitely be interesting to try! We're in the midst of a pretty big revamp leading up to a scipy workshop in July, and just switched to jupyterbook so there is a fair amount in flux at the moment.

@scottyhq scottyhq added the enhancement New feature or request label Jun 17, 2022
dcherian added a commit that referenced this issue Jun 18, 2022
dcherian added a commit that referenced this issue Jun 27, 2022
@zmoon
Copy link
Contributor Author

zmoon commented Jun 27, 2022

What do you think about intersphinx references in the text? Would be nice to have the links, and reduced maintenance vs manually putting the links in, though for people running the notebooks in Jupyter the texts becomes a bit uglier.

@scottyhq
Copy link
Contributor

I agree think the major drawback of Jupyter Book right now is the discrepancy between rendered notebooks on the website with lots of extra formatting compared to what is possible in Jupyter Lab. Numpy tutorials require only using CommonMark in notebook cells for this reason (https://github.com/numpy/numpy-tutorials#contributing)

My hunch is that the primary mode for consuming this material is on the website rather than Jupyter Lab, except for the case of workshops where everyone is on Jupyter Lab. And during workshops, the focus is on code cells (people can have the website open in another tab for the rendered version).

So I'm in favor of anything that makes for easier navigation on the website. Yet another convenience could be adding https://sphinx-hoverxref.readthedocs.io/en/latest/ https://blog.readthedocs.com/hoverxref-intersphinx.

dcherian added a commit that referenced this issue Nov 5, 2022
dcherian added a commit that referenced this issue Jan 17, 2023
@dcherian dcherian mentioned this issue May 18, 2023
34 tasks
@dcherian dcherian changed the title intersphinx? intersphinx/sphinx-hoverref Jun 27, 2023
@scottyhq scottyhq added the dependencies Pull requests that update a dependency file label Feb 21, 2024
@dcherian
Copy link
Contributor

FWIW scikit-image does this very well with underlined links making it clear what you can click on: https://scikit-image.org/docs/stable/auto_examples/segmentation/plot_regionprops.html

@zmoon
Copy link
Contributor Author

zmoon commented Jun 30, 2024

scikit-image does this very well with underlined links

Sphinx-Gallery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants