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

Support sphinx-design tabs #251

Open
jhj0411jhj opened this issue Dec 20, 2022 · 3 comments
Open

Support sphinx-design tabs #251

jhj0411jhj opened this issue Dec 20, 2022 · 3 comments

Comments

@jhj0411jhj
Copy link

jhj0411jhj commented Dec 20, 2022

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?

@benjaoming
Copy link
Contributor

Hi @jhj0411jhj

Can you elaborate this a bit? Do you mean that the tabs do not render well in the tooltip?

@jhj0411jhj
Copy link
Author

jhj0411jhj commented Dec 20, 2022

@benjaoming I write tabs using sphinx-design tabs syntax, with hoverxref_sphinxtabs = True (I guess it only work with sphinx-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-tabs

@humitos
Copy link
Member

humitos commented Dec 22, 2022

This probably happens because of the way that hoverxref re-triggers the render of the tabs:

function reLoadSphinxTabs() {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants