Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sphinx documentation and hover text

Is it possible, using sphinx, to have hover-boxes for words that appear inside code snippets, similar to what the hover-boxes in the code samples in the angular.js landing page look and behave like?

like image 422
matanster Avatar asked Nov 21 '13 17:11

matanster


1 Answers

(For those who landed here while looking for hover tooltips in regular RsT text)

The :abbr: inline markup produces tooltips in HTML, like that:

:abbr:`linkified text (tooltip text)`

An alternative, fully functional solution is the sphinx-hoverxref extension, which retrofits a :ref:-like role that fetches tooltip content from the referenced section, figure, etc: enter image description here

like image 107
ankostis Avatar answered Sep 24 '22 01:09

ankostis