sphinx-tabs icon indicating copy to clipboard operation
sphinx-tabs copied to clipboard

labels in (or on) tabs.

Open skkirkham opened this issue 5 years ago • 3 comments

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? Regards Sharon

skkirkham avatar Aug 20 '19 13:08 skkirkham

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.

djungelorm avatar Sep 10 '19 16:09 djungelorm

I ended up writing a small js script to allow expanding a tab from a URL (docs.example.com?tab=Some Tab Title)

https://github.com/readthedocs/readthedocs.org/pull/6844/commits/738b6b2836a7e0cadad48e7f407fdeaf7ba7a1d7

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

stsewd avatar Apr 07 '20 18:04 stsewd

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.

rdauria avatar Apr 27 '22 19:04 rdauria