Skip to content

intersphinx/sphinx-hoverref #82

Description

@zmoon

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.

Activity

  1. scottyhq commented on Jun 17, 2022

    @scottyhq
    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.

  2. added a commit that references this issue on Jun 18, 2022
    75e3358
  3. added a commit that references this issue on Jun 27, 2022
    10c2d92
  4. zmoon commented on Jun 27, 2022

    @zmoon
    ContributorAuthor

    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.

  5. scottyhq commented on Jun 27, 2022

    @scottyhq
    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.

  6. added a commit that references this issue on Nov 5, 2022
    c6342e4
  7. added a commit that references this issue on Jan 17, 2023
    38a0862
  8. changed the title [-]intersphinx?[/-] [+]intersphinx/sphinx-hoverref[/+] on Jun 27, 2023
  9. added a commit that references this issue on Jun 26, 2024
    b328b01
  10. dcherian commented on Jun 29, 2024

    @dcherian
    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

  11. zmoon commented on Jun 30, 2024

    @zmoon
    ContributorAuthor

    scikit-image does this very well with underlined links

    Sphinx-Gallery

  12. scottyhq commented on Jul 1, 2025

    @scottyhq
    Contributor

    I was re-visiting automatic hover previews today and noticed that https://github.com/readthedocs/sphinx-hoverxref is now deprecated in favor of a read-the-docs built in setting (https://docs.readthedocs.com/platform/stable/link-previews.html)... might be worth deploying to read-the-docs instead of github pages nowadays which would also simplify the preview workflow.

    Also, I learned that chome actually has a hidden setting for link previews (https://winaero.com/enable-link-preview-chrome/) and in safari you can just 'force touch' links to show a preview!

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency fileenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions