Skip to content

Commit

Permalink
chore: Fixes search_deployment template to fix doc structure (#1943)
Browse files Browse the repository at this point in the history
* fix template to fix doc structure

* generalise template and add it to general template
  • Loading branch information
oarbusi authored Feb 14, 2024
1 parent c6f0405 commit 090a04e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion templates/data-source.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "mongodbatlas"
page_title: {{ if .Name }}"MongoDB Atlas: {{.Name}}"{{ end }}
subcategory: {{ if .Type }}"docs_{{ .Name }}_{{.Type | lower}}"{{ end }}
sidebar_current: {{ if .Type }}"docs-{{ .ProviderShortName }}-{{ $arr := split .Type " "}}{{ range $element := $arr }}{{ $element | lower}}{{ end }}{{ $name := slice (split .Name "_") 1 }}{{ range $element := $name }}-{{ $element | lower}}{{end}}"{{ end }}
description: |-
{{ if ne .Name "" }}"Provides a {{ .Name }} data source."{{ end }}
---
Expand Down
2 changes: 1 addition & 1 deletion templates/data-sources/search_deployment.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "mongodbatlas"
page_title: "MongoDB Atlas: {{.Name}}"
subcategory: "docs_{{ .Name }}_{{.Type | lower}}"
sidebar_current: "docs-{{ .ProviderShortName }}-{{ $arr := split .Type " "}}{{ range $element := $arr }}{{ $element | lower}}{{ end }}{{ $name := slice (split .Name "_") 1 }}{{ range $element := $name }}-{{ $element | lower}}{{end}}"
description: |-
"Provides a Search Deployment data source."
---
Expand Down
2 changes: 1 addition & 1 deletion templates/resources.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "mongodbatlas"
page_title: {{ if .Name }}"MongoDB Atlas: {{.Name}}{{ end }}"
subcategory: {{ if .Type }}"docs_{{ .Name }}_{{.Type | lower}}"{{ end }}
sidebar_current: {{ if .Type }}"docs-{{ .ProviderShortName }}-{{ $arr := split .Type " "}}{{ range $element := $arr }}{{ $element | lower}}{{ end }}{{ $name := slice (split .Name "_") 1 }}{{ range $element := $name }}-{{ $element | lower}}{{end}}"{{ end }}
description: |-
{{ if .Name }}"Provides a {{ .Name }} resource."{{ end }}
---
Expand Down
2 changes: 1 addition & 1 deletion templates/resources/search_deployment.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "mongodbatlas"
page_title: "MongoDB Atlas: {{.Name}}"
subcategory: "docs_{{ .Name }}_{{.Type | lower}}"
sidebar_current: "docs-{{ .ProviderShortName }}-{{ $arr := split .Type " "}}{{ range $element := $arr }}{{ $element | lower}}{{ end }}{{ $name := slice (split .Name "_") 1 }}{{ range $element := $name }}-{{ $element | lower}}{{end}}"
description: |-
"Provides a Search Deployment resource."
---
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/search_deployment.html.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "mongodbatlas"
page_title: "MongoDB Atlas: mongodbatlas_search_deployment"
subcategory: "docs_mongodbatlas_search_deployment_data source"
sidebar_current: "docs-mongodbatlas-datasource-search-deployment"
description: |-
"Provides a Search Deployment data source."
---
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/search_deployment.html.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "mongodbatlas"
page_title: "MongoDB Atlas: mongodbatlas_search_deployment"
subcategory: "docs_mongodbatlas_search_deployment_resource"
sidebar_current: "docs-mongodbatlas-resource-search-deployment"
description: |-
"Provides a Search Deployment resource."
---
Expand Down

0 comments on commit 090a04e

Please sign in to comment.