docs: Format code block.
This commit is contained in:
parent
a2723f488e
commit
63df2e8baa
@ -17,14 +17,15 @@ To use it in your own project, follow these steps:
|
|||||||
1. Head over to the [Netlify Identity docs](https://www.netlify.com/docs/identity) and follow the
|
1. Head over to the [Netlify Identity docs](https://www.netlify.com/docs/identity) and follow the
|
||||||
steps to get started.
|
steps to get started.
|
||||||
2. Add the following lines to your `config.yml` file:
|
2. Add the following lines to your `config.yml` file:
|
||||||
```yaml
|
|
||||||
backend:
|
```yaml
|
||||||
name: git-gateway
|
backend:
|
||||||
accept_roles: #optional - accepts all users if left out
|
name: git-gateway
|
||||||
- admin
|
accept_roles: #optional - accepts all users if left out
|
||||||
- editor
|
- admin
|
||||||
|
- editor
|
||||||
|
|
||||||
```
|
```
|
||||||
3. Optionally, you can assign roles to users in your Netlify dashboard, and then limit which
|
3. Optionally, you can assign roles to users in your Netlify dashboard, and then limit which
|
||||||
roles can access the CMS by defining the `accept_roles` field in the `config.yml` example above.
|
roles can access the CMS by defining the `accept_roles` field in the `config.yml` example above.
|
||||||
Otherwise `accept_roles` can be left out, and all Netlify Identity users on your site will have access.
|
Otherwise `accept_roles` can be left out, and all Netlify Identity users on your site will have access.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user