Skip to content

Commit

Permalink
Replace title-less Details boxes with ScopedBlocks
Browse files Browse the repository at this point in the history
Backports #12358

We will be adding a linter rule that prohibits Details boxes that lack
titles, letting us implement the ability to link directly to a Details
box. In some places in the docs, Details boxes are used purely to
adjust the visibility of Markdown based on scope. Now that we have a
ScopedBlock component, we can use this instead.
  • Loading branch information
ptgott committed May 12, 2022
1 parent 77e56bb commit 41370bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/pages/includes/plugins/rbac.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Using an existing Teleport cluster, create the following `user` and `role` resou
$ tctl create -f YAML_PATH.yaml
```

<Details opened={true}
scopeOnly={true}
<ScopedBlock
scope={["cloud"]}
>
Teleport Cloud requires authenticating with a role that has [`impersonation`](https://goteleport.com/docs/access-controls/guides/impersonation/) rights and can create the `access-plugin` role and user. Log in with `tsh` with a user that has this role or has a role with these `allow` rules.
Expand All @@ -29,7 +28,7 @@ spec:
verbs: ['create','update','read','list','delete']
```
</Details>
</ScopedBlock>


Create a non-interactive bot user and role called `access-plugin`.
Expand Down

0 comments on commit 41370bb

Please sign in to comment.