sphinx-tabs
sphinx-tabs copied to clipboard
labels in (or on) tabs.
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
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.
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.
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.