Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Sphinx extension to show tooltips with content embedded when hover a reference.

License

Notifications You must be signed in to change notification settings

readthedocs/sphinx-hoverxref

Repository files navigation

Warning

This extension has been deprecated. Users are advised to enable the "Link previews" option in "Settings" > "Addons" > "Link previews" in the Read the Docs admin dashboard for their project to get the same functionality as this extension.

For more information, please see:

  1. https://docs.readthedocs.com/platform/stable/link-previews.html
  2. https://about.readthedocs.com/blog/2024/07/addons-by-default/

Current PyPI version Documentation status Repository license

sphinx-hoverxref

sphinx-hoverxref is a Sphinx extension to add tooltips on the cross references of the documentation with the content of the linked section.

Example

docs/sphinx-hoverxref-example.png

Installation

You can install sphinx-hoverxref from PyPI:

pip install sphinx-hoverxref

Or, alternatively, install it from GitHub directly (requires git):

pip install git+https://github.com/readthedocs/sphinx-hoverxref

Configuration

Add this extension in your conf.py file as:

extensions = [
 # ... other extensions here

 'hoverxref.extension',
]

Documentation

Check out the full documentation at https://sphinx-hoverxref.readthedocs.io/