Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants