Skip to content

Commit b04b467

Browse files
committed
Fix docs terraform registry incompatibilities
These were all reported by the github.com/bflad/tfproviderdocs tool. - Remove unused "layout" frontmatter (this is from the old docs format) - Remove unused "sidebar_current" frontmatter (this is from the old docs format) - Fix the project_level_mr_approvals.md file extension (this may have caused an issue)
1 parent 9a0059e commit b04b467

36 files changed

+9
-81
lines changed

docs/data-sources/group.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_group"
4-
sidebar_current: "docs-gitlab-data-source-group"
53
description: |-
64
Looks up a gitlab group
75
---

docs/data-sources/group_membership.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_group_membership"
4-
sidebar_current: "docs-gitlab-data-source-group-membership"
53
description: |-
64
Looks up gitlab group membership
75
---

docs/data-sources/project.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_project"
4-
sidebar_current: "docs-gitlab-data-source-project"
53
description: |-
64
View information about a project
75
---

docs/data-sources/projects.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_projects"
4-
sidebar_current: "docs-gitlab-data-source-projects"
53
description: |-
64
List projects using specific filters.
75
---

docs/data-sources/user.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_user"
4-
sidebar_current: "docs-gitlab-data-source-user"
53
description: |-
64
Looks up a gitlab user
75
---
@@ -86,4 +84,4 @@ The following arguments are supported:
8684

8785
**Note**: some attributes might not be returned depending on if you're an admin or not. Please refer to [doc][doc] for more details.
8886

89-
[doc]: https://docs.gitlab.com/ce/api/users.html#single-user
87+
[doc]: https://docs.gitlab.com/ce/api/users.html#single-user

docs/data-sources/users.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_users"
4-
sidebar_current: "docs-gitlab-data-source-users"
53
description: |-
64
Looks up gitlab users
75
---
@@ -78,4 +76,4 @@ The following attributes are exported:
7876
* `current_sign_in_at` - Current user's sign-in date.
7977

8078

81-
[users_for_admins]: https://docs.gitlab.com/ce/api/users.html#for-admins
79+
[users_for_admins]: https://docs.gitlab.com/ce/api/users.html#for-admins

docs/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "Provider: GitLab"
4-
sidebar_current: "docs-gitlab-index"
53
description: |-
64
The GitLab provider is used to interact with GitLab group or user resources.
75
---
@@ -81,4 +79,4 @@ The following arguments are supported in the `provider` block:
8179

8280
* `client_cert` - (Optional) File path to client certificate when GitLab instance is behind company proxy. File must contain PEM encoded data.
8381

84-
* `client_key` - (Optional) File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when `client_cert` is set.
82+
* `client_key` - (Optional) File path to client key when GitLab instance is behind company proxy. File must contain PEM encoded data. Required when `client_cert` is set.

docs/resources/branch_protection.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_branch_protection"
4-
sidebar_current: "docs-gitlab-resource-branch_protection"
53
description: |-
64
Protects a branch by assigning access levels to it
75
---

docs/resources/deploy_key.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_deploy_key"
4-
sidebar_current: "docs-gitlab-resource-deploy_key"
53
description: |-
64
Creates and manages deploy keys for GitLab projects
75
---
@@ -39,4 +37,4 @@ GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_
3937

4038
```
4139
$ terraform import gitlab_deploy_key.test 1:3
42-
```
40+
```

docs/resources/deploy_key_enable.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
2-
layout: "gitlab"
32
page_title: "GitLab: gitlab_deploy_key_enable"
4-
sidebar_current: "docs-gitlab-resource-deploy_key_enable"
53
description: |-
64
Enable a pre-existing deploy key in the project
75
---

0 commit comments

Comments
 (0)