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

labels in (or on) tabs. #47

skkirkham opened this issue Aug 20, 2019 · 3 comments

labels in (or on) tabs. #47

skkirkham opened this issue Aug 20, 2019 · 3 comments


Copy link

Hi there.
Great Sphinx extension.
I've tried using standard sphinx link reference labels of the form .. _my-ref-label: within the content of a tab: object as I would like the relevant tab to be opened when reader clicks through to page containing the tab. This doesn't work though as the links don't get picked up. Any ideas on how I might do this?

Copy link

Thanks for the request, I'll see what I can do. Might be tricky though as the extension doesn't currently get which tab is active from the URL (which it would need to do) and the label would need to somehow work out which tab it is referring too and include that in the URL.

Copy link

stsewd commented Apr 7, 2020

I ended up writing a small js script to allow expanding a tab from a URL ( Tab Title)


It would be ideal that sphinx-tabs generates a target to use it with the :ref: role or something like that.

Copy link

rdauria commented Apr 27, 2022

Hello, I wonder if there has been any work in this direction, being able to add tabs to a table of content and generate links to them would be an awesome improvement to this extension.

I remember seeing in the past a post that mentioned other similar extensions that have that ability. Is anyone aware of them? Of course my preference would be to use sphinx-tabs but it is a bit awkward to tell someone who is looking into your documentation to navigate to page such and such and click on this or that tab. Having a link so that the page will open with a given tab open would be much more desirable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

4 participants