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

Multiple groups for single tab

Open MatthewCroughan opened this issue 3 years ago • 4 comments

I'm writing some documentation where we support distributions of Linux. There are some elements of the document that are not distribution specific, but where we describe generic Linux support.

When clicking on these tabs, it would be great if Arch Linux and Ubuntu/Debian were secretly tied to Linux somehow, without effecting the displayed group name. This way, if someone clicks Ubuntu/Debian or Arch Linux, it would be grouped to generic Linux. I do understand how conflicts could arise, but I'm just here to suggest the idea.

Of course Arch Linux and Ubuntu/Debian are both Linux, and I want it to be possible to link them to the generic Linux docs, since they are related, but as you can see they are not grouped in the gif below, and it would not be possible for me to do so currently I believe.

Thanks a lot for this great project :) Peek 2020-08-19 01-26

MatthewCroughan avatar Aug 19 '20 00:08 MatthewCroughan

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Aug 19 '20 00:08 welcome[bot]

A simple way to solve this would be to have it so that the displayed name is not the same as the group name. This way, I could solve this particular case by naming it "Ubuntu/Debian" meanwhile grouping it as "Linux".

MatthewCroughan avatar Aug 19 '20 00:08 MatthewCroughan

It would certainly be possibly to allow an alternative group name, though what would be the expected action if Linux was clicked in the second set of tabs here? As I think the current JS would try to "activate" both tabs in the first set with a matching group name

foster999 avatar Sep 10 '20 21:09 foster999

Oddly, I've found that this plugin implements everything exactly as I have described. https://sphinxcontrib-platformpicker.readthedocs.io/en/stable/usage.html

MatthewCroughan avatar Sep 17 '20 22:09 MatthewCroughan