gravitational / docs

Source code backing goteleport.com/docs
https://goteleport.com/docs
Apache License 2.0
11 stars 13 forks source link

Add scopes for operating system. #162

Closed alexfornuto closed 1 year ago

alexfornuto commented 1 year ago

Transferred from a comment on a Docs PR in the Teleport repo. Original description below is in refernce to using Tabs for Windows/Mac/Linux specific instructions instead of having a scope option for operating system:

In the future it'd probably be better to have a per platform scope like we do have for Cloud/Enterprise/OSS so that Windows users don't have to click through every <Tabs> component and select Windows each item.

But I'll leave that for the docs team to figure it out, maybe a need for that will arise in another area of the docs.

_Originally posted by @ravicious in https://github.com/gravitational/teleport/pull/16770#discussion_r982488029_

ptgott commented 1 year ago

Maybe if there are multiple Tabs components on a page with the same sets of TabItems, we could include a component in the sidebar that lets a user select the value of all relevant Tabs components? With that, along with implementing #317, we wouldn't need to hardcode scopes for OS like we do for the Teleport edition.