Replies: 1 comment 2 replies
-
Thanks for the feature suggestion, but I think it impacts only a handful of users. Let's let it sit here for a while and see if others might find it useful. However, IMHO, it might appear rather unpredictable to the user which tabs will link and which not. Since this is a request on a feature that is part of the community edition, forking and adjusting the relevant logic is always an option. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My goal is to be able to turn on content tab linking, but only for specific tabs. If I turn it on universally, I find I get linking in all kinds of undesired places.
This was tangentially discussed in #3982. One suggestion was to provide a syntax similar to the fine-grained opt-in for annotations on code blocks: say,
=== "title" {.link}
. I got the impression that this would be difficult or impossible to get working without breaking things.An alternative might be to put the linked tabs in the config file. This plays more nicely with their status as persistent global links across the site (which I understand is the case). So we could have something like:
(I'm pretty shaky on my YAML syntax, but I hope that gives the general idea.)
With this feature, when a tab is clicked, instead of always linking, it would first be checked against the global allowlist defined above.
Detailed example:
To add some more colour: I'm building a doc site for a potentially open source C++ project.
One page is a "troubleshooting" page, which has examples of the most common compiler errors, and explanations of what they mean. It's a long page, intended to let users
Ctrl-F
and enter some key pieces of an actual compiler error they encounter. I would like to have a tab for each compiler: say, one forclang14
, one forgcc10
, etc. These are much better when linked: the user can select their preferred compiler, and all examples will switch simultaneously, hiding examples the user does not care about.Another series of pages is the "tutorial" pages. These have a bunch of
Problem
/Solution
tabs. I really don't want these to be linked, because selecting the first solution will mean that the solution for the next one is automatically shown, rather than the problem.Beta Was this translation helpful? Give feedback.
All reactions