Skip to content
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
@jhj0411jhj

Description

@jhj0411jhj

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

benjaoming commented on Dec 20, 2022

@benjaoming
Contributor

Hi @jhj0411jhj

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

jhj0411jhj

jhj0411jhj commented on Dec 20, 2022

@jhj0411jhj
Author

@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

humitos commented on Dec 22, 2022

@humitos
Member

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @humitos@benjaoming@jhj0411jhj

        Issue actions

          Support sphinx-design tabs · Issue #251 · readthedocs/sphinx-hoverxref