Skip to content

labels in (or on) tabs. #47

Open
Open

Description

@skkirkham

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

Activity

  1. djungelorm commented on Sep 10, 2019

    @djungelorm
    Collaborator

    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.

  2. stsewd commented on Apr 7, 2020

    @stsewd
    Contributor

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

    readthedocs/readthedocs.org@738b6b2

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

  3. rdauria commented on Apr 27, 2022

    @rdauria

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions