This repository was archived by the owner on Apr 9, 2025. It is now read-only.
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Support sphinx-design tabs #251
Open
Description
hoverxref_sphinxtabs = True
seems not work with sphinx-design tabs (github). The reference page in my docs is written in markdown. Can it be supported?
Activity
benjaoming commentedon Dec 20, 2022
Hi @jhj0411jhj
Can you elaborate this a bit? Do you mean that the tabs do not render well in the tooltip?
jhj0411jhj commentedon Dec 20, 2022
@benjaoming I write tabs using sphinx-design tabs syntax, with
hoverxref_sphinxtabs = True
(I guess it only work withsphinx-tabs
, but both of these tabs are developed by executablebooks).When I hover over the link, the tooltip is shown. The first tab renders well. However, when I switch to the second tab in hoverxref's tooltip, the contents in the second tab is gone. And when I switch back to the first tab, the content also disappears.
See this docs for example (will be available for a while), and see the
inline-tabs
before## test tabs
: https://test-docs-jhj.readthedocs.io/en/latest/test_md.html#test-tabshumitos commentedon Dec 22, 2022
This probably happens because of the way that hoverxref re-triggers the render of the tabs:
sphinx-hoverxref/hoverxref/_static/js/hoverxref.js_t
Line 39 in f91ea09